Migrate to LLVM 2.8 (rc2)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@96 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
7df2fc911a
commit
ab4ef428b6
12 changed files with 940 additions and 832 deletions
|
|
@ -36,7 +36,7 @@ def test_jit_ctypes():
|
|||
|
||||
bb = mult.append_basic_block("entry")
|
||||
builder = Builder.new(bb)
|
||||
tmp = builder.mul( mult.args[0], mult.args[1] )
|
||||
tmp = builder.fmul( mult.args[0], mult.args[1] )
|
||||
builder.store( tmp, mult.args[2] )
|
||||
builder.ret(llvm.core.Constant.int(ty_errcode, 0))
|
||||
|
||||
|
|
|
|||
|
|
@ -576,10 +576,11 @@ def do_passmanager():
|
|||
print " Testing class PassManager"
|
||||
pm = PassManager.new()
|
||||
pm.add(TargetData.new(''))
|
||||
for i in range(1, 90):
|
||||
if i not in (PASS_OPTIMAL_EDGE_PROFILER,
|
||||
PASS_EDGE_PROFILER, PASS_PROFILE_LOADER, PASS_AAEVAL):
|
||||
pm.add(i)
|
||||
for i in [getattr(llvm.passes, x) for x in \
|
||||
dir(llvm.passes) if x.startswith('PASS_') and x not in \
|
||||
('PASS_OPTIMAL_EDGE_PROFILER', 'PASS_EDGE_PROFILER', \
|
||||
'PASS_PROFILE_LOADER', 'PASS_AAEVAL')]:
|
||||
pm.add(i)
|
||||
pm.run(Module.new('a'))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue