Add Value, User, Constant
This commit is contained in:
parent
e9be14ca0e
commit
e9e1f5703d
4 changed files with 20 additions and 0 deletions
|
|
@ -1,8 +1,10 @@
|
|||
PYTHON = python
|
||||
|
||||
PYMODS = raw_ostream SmallVector Type DerivedTypes StringRef
|
||||
PYMODS += Value User Constant
|
||||
PYMODS += LLVMContext AssemblyAnnotationWriter Module
|
||||
|
||||
|
||||
all: _api.so _capsule.so
|
||||
|
||||
_api.so _capsule.so: api.cpp capsule.cpp
|
||||
|
|
|
|||
5
newbinding/src/Constant.py
Normal file
5
newbinding/src/Constant.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from binding import *
|
||||
from namespace import llvm
|
||||
from User import User
|
||||
|
||||
Constant = User.Subclass()
|
||||
5
newbinding/src/User.py
Normal file
5
newbinding/src/User.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from binding import *
|
||||
from namespace import llvm
|
||||
from Value import Value
|
||||
|
||||
User = Value.Subclass()
|
||||
8
newbinding/src/Value.py
Normal file
8
newbinding/src/Value.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
from binding import *
|
||||
from namespace import llvm
|
||||
from raw_ostream import raw_ostream
|
||||
from AssemblyAnnotationWriter import AssemblyAnnotationWriter
|
||||
|
||||
Value = llvm.Class()
|
||||
print_ = Value.method(Void, raw_ostream.Ref, AssemblyAnnotationWriter.Pointer)
|
||||
print_.realname = 'print'
|
||||
Loading…
Add table
Add a link
Reference in a new issue