Updated documentation, partially.
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@90 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
aa6a406c46
commit
1c04eb1c87
28 changed files with 551 additions and 522 deletions
|
|
@ -2,10 +2,15 @@
|
|||
|
||||
import os
|
||||
|
||||
NCOLS = 4
|
||||
INF = '../llvm/_intrinsic_ids.py'
|
||||
OUTF = '../www/src/intrinsics.csv'
|
||||
|
||||
intrs = []
|
||||
for line in file('../llvm/_intrinsic_ids.py'):
|
||||
for line in file(INF):
|
||||
if line.startswith('INTR_'):
|
||||
if 'INTR_ARM_' not in line and \
|
||||
if 'INTR_ALPHA_' not in line and \
|
||||
'INTR_ARM_' not in line and \
|
||||
'INTR_BFIN_' not in line and \
|
||||
'INTR_PPC_' not in line and \
|
||||
'INTR_SPU_' not in line and \
|
||||
|
|
@ -13,7 +18,8 @@ for line in file('../llvm/_intrinsic_ids.py'):
|
|||
'INTR_XCORE_' not in line:
|
||||
intrs.append(line.split()[0])
|
||||
|
||||
outf = open(OUTF, 'wt')
|
||||
i = 0
|
||||
while i < len(intrs):
|
||||
print "`" + "`,`".join(intrs[i:min(i+3,len(intrs)+1)]) + "`"
|
||||
i += 3
|
||||
print >>outf, "`" + "`,`".join(intrs[i:min(i+NCOLS,len(intrs)+1)]) + "`"
|
||||
i += NCOLS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue