add NVPTX for LLVM 3.2;

auto-gen _intrinsic_ids.py  in setup.py;
This commit is contained in:
Siu Kwan Lam 2012-08-18 15:29:26 -07:00
commit d1bcdd05d1
9 changed files with 99 additions and 1961 deletions

0
tools/__init__.py Normal file
View file

View file

@ -6,7 +6,7 @@
import sys
def gen(f):
def gen(f, out=sys.stdout):
intr = []
maxw = 0
flag = False
@ -26,7 +26,8 @@ def gen(f):
idx = 1
for i in intr:
s = 'INTR_' + i.upper()
print('%s = %d' % (s.ljust(maxw), idx))
out.write('%s = %d\n' % (s.ljust(maxw), idx))
idx += 1
gen(sys.argv[1])
if __name__ == '__main__':
gen(sys.argv[1])