binding compiles with llvm 3.3

This commit is contained in:
Siu Kwan Lam 2013-07-31 15:12:23 -05:00
commit 4c1b9016fb
22 changed files with 324 additions and 119 deletions

View file

@ -61,7 +61,12 @@ def auto_intrinsic_gen(incdir):
# let's do auto intrinsic generation
print("Generate intrinsic IDs")
from tools import intrgen
path = "%s/llvm/Intrinsics.gen" % incdir
if llvm_version >= (3, 3):
path = "%s/llvm/IR/Intrinsics.gen" % incdir
else:
path = "%s/llvm/Intrinsics.gen" % incdir
with open('llvm/_intrinsic_ids.py', 'w') as fout:
intrgen.gen(path, fout)