Updating to python 3 with 2to3. Check llvm/py3k_update.diff and llvm/py3k_update.out for the output from this.
This commit is contained in:
parent
ddbe7ad06a
commit
6d50a337ad
29 changed files with 3455 additions and 143 deletions
|
|
@ -16,7 +16,7 @@ b = Builder.new(block)
|
|||
val = Constant.int(Type.int(), 42)
|
||||
bswap = Function.intrinsic(mod, INTR_BSWAP, [Type.int()])
|
||||
b.call(bswap, [val])
|
||||
print mod
|
||||
print(mod)
|
||||
|
||||
# the output is:
|
||||
#
|
||||
|
|
@ -50,7 +50,7 @@ cos2 = b.call(pow, [cosx, Constant.int(Type.int(), 2)], "cos2")
|
|||
onemc2 = b.sub(one, cos2, "onemc2")
|
||||
sin = b.call(sqrt, [onemc2], "sin")
|
||||
b.ret(sin)
|
||||
print mod
|
||||
print(mod)
|
||||
|
||||
#
|
||||
# ; ModuleID = 'test'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue