Some modifications for emitting mutable alloca slots done
This commit is contained in:
parent
b65b1c0c73
commit
b63f55ee97
2 changed files with 918 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Chapter 5 - Extending the language: User-defined Operators
|
||||
# Chapter 6 - Extending the language: User-defined Operators
|
||||
|
||||
from collections import namedtuple
|
||||
from ctypes import CFUNCTYPE, c_double
|
||||
|
|
@ -742,9 +742,6 @@ class LLVMCodeGenerator(object):
|
|||
self.func_symtab = {}
|
||||
# Create the function skeleton from the prototype.
|
||||
func = self._codegen(node.proto)
|
||||
|
||||
|
||||
|
||||
# Create the entry BB in the function and set the builder to it.
|
||||
bb_entry = func.append_basic_block('entry')
|
||||
self.builder = ir.IRBuilder(bb_entry)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue