Commit graph

117 commits

Author SHA1 Message Date
Siu Kwan Lam
bed4f24cbd Added Module.to_native_object() and Module.to_native_assembly().
Added test for these new functions.
2012-08-09 15:41:55 -07:00
Siu Kwan Lam
9ff0b4e8ab Merge pull request #7 from bfroehle/test_uses
test_uses: Fix unexpected keyword argument 'end' with `nosetests uses.py`
2012-08-07 18:26:23 -07:00
Bradley M. Froehle
d3548e5377 test_uses: Fix unexpected keyword argument 'end' with nosetests uses.py
Logging does not know about the keyword argument 'end'. The existing
code works only because the default logging level prevents debug messages
from running.  When running the test under `nosetests` the debug messages
are enabled leading to the error.
2012-08-07 15:56:05 -07:00
Bradley M. Froehle
938763ef07 Fix broken testall.py (NameError: PASS_AGGRESSIVE_DCE)
Commit 2d79cfa43 renamed PASS_AGGRESSIVE_DCE -> PASS_ADCE but missed
an instance in one test.
2012-08-07 15:38:06 -07:00
Siu Kwan Lam
5e15b27909 Atomic load/store must explicit define alignment. 2012-08-03 14:13:22 -07:00
Siu Kwan Lam
f479f85676 Add memory fence 2012-08-03 12:30:01 -07:00
Siu Kwan Lam
6ac0f3c369 Add atomic load/store 2012-08-03 11:56:59 -07:00
Siu Kwan Lam
4d763680f6 Add easier atomic api 2012-08-03 10:28:17 -07:00
Siu Kwan Lam
fb72ab5c8d Add the rest of atomic op. 2012-08-03 10:14:09 -07:00
Siu Kwan Lam
acad5c9d8b Added atomic cmpxchg. 2012-08-02 17:54:40 -07:00
Siu Kwan Lam
9d068fd582 Add methods to set volatile inst. 2012-08-02 16:51:42 -07:00
Siu Kwan Lam
9aadd489c3 Python3 ready. Py2.7 and Py3 working. Drop PyCObject for all.
Pre Py2.7 support should be possible by including  "capsulethunk.h". (See llvm/wrap.h)
2012-07-26 15:25:23 -07:00
Siu Kwan Lam
0ca676eb8c Fix Py3 incompatible in tests. 2012-07-25 19:55:22 -07:00
Siu Kwan Lam
5bb4b8affb Added EngineBuilder.
Added test/enginebuilder.
2012-07-25 15:31:18 -07:00
Siu Kwan Lam
6a02c36f04 Added PassManagerBuilder.
Updated test/passes.py for PassManagerBuilder.
2012-07-24 23:42:28 -07:00
Siu Kwan Lam
2d79cfa437 Replaced PASS_* constants with pass name lookup. 2012-07-23 17:39:40 -07:00
Siu Kwan Lam
6fb55db69d Added test for constants -- int, float, double, string, struct, vector. 2012-07-23 13:05:11 -07:00
Siu Kwan Lam
54a0a95faf Fix missing return in llvm/core.py and do some refactoring;
Update test/testall.py.

TODO: Need to update the passes.
2012-07-23 09:27:24 -07:00
Siu Kwan Lam
c9902ab8cf Add opaque StructType;
Remove test/typehandle.py;
Add test/opaque.py to demonstrate recursive type.
2012-07-22 15:14:52 -07:00
Siu Kwan Lam
b71d22b570 Update StructType to LLVM 3.x (incomplete).
Bring back StructType.elements.
2012-07-22 00:00:04 -07:00
Siu Kwan Lam
c68c5b0aac Continue to update test to use unittest.
Replace custom class strstream with StringIO.
2012-07-21 20:27:14 -07:00
Siu Kwan Lam
badac267cc Fix: Object cache was removing objects properly.
Continue to update test to use unittest.
2012-07-21 15:57:39 -07:00
Siu Kwan Lam
a9370d933d Updated more tests to use unittest. 2012-07-20 21:46:23 -07:00
Siu Kwan Lam
9bbeee519b Added Module.id property (getter+setter).
Updated test/asm.py to use unittest.
2012-07-20 20:15:21 -07:00
AndrewBC
46a9a86085 Fixed some old PyInt usage, drastically reduced compile-time warnings 2011-06-12 13:58:57 -05:00
AndrewBC
6d50a337ad Updating to python 3 with 2to3. Check llvm/py3k_update.diff and llvm/py3k_update.out for the output from this. 2011-06-11 20:39:16 -05:00
mdevan.foobar
ae61530aff Use extract_value instead of getresult (Bryan Silverthorn) (Issue #34)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@103 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2010-10-24 08:46:59 +00:00
mdevan.foobar
b7fa3e8fa1 Added llvm.core.Argument.alignment
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@101 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2010-10-15 10:33:37 +00:00
mdevan.foobar
ab4ef428b6 Migrate to LLVM 2.8 (rc2)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@96 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2010-09-30 13:22:13 +00:00
mdevan.foobar
aa6a406c46 Add and remove function attributes (Krzysztof Goj)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@89 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2010-08-03 16:31:41 +00:00
mdevan.foobar
b7200e59b1 Removed the deprecated ModuleProvider class
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@88 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2010-07-26 16:36:02 +00:00
mdevan.foobar
73b37ee632 Fix fadd,fsub,fmul (Aaron S Lav)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@87 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2010-07-25 09:19:21 +00:00
mdevan.foobar@gmail.com
d51eb76fec Updated for LLVM 2.7 (will not work with LLVM 2.6). Work-in-progress.
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@86 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2010-07-24 18:15:49 +00:00
mdevan.foobar
5901f8d32b Migrate to LLVM 2.6 (KS Sreeram) (Issue #25)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@83 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2009-10-28 06:02:04 +00:00
mdevan.foobar
c6e12fd929 Disabled tail call for now, works only on call instructions
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@82 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2009-09-20 12:33:22 +00:00
mdevan.foobar
430c5cee9b Example for calling functions via ctypes (Andrew Straw)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@80 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2009-09-20 09:31:28 +00:00
mdevan.foobar
6cb58c97d7 does not throw property for Function (Andrew Straw)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@79 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2009-09-20 09:25:14 +00:00
mdevan.foobar
b2d8ff38a8 More properties/methods for TargetData.
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@73 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2009-03-01 08:34:04 +00:00
mdevan.foobar
dbb67d4502 Set execute bit on python scripts
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@71 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2009-02-25 17:48:53 +00:00
mdevan.foobar
d5328ef255 Value.uses API
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@70 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2009-02-25 17:41:37 +00:00
mdevan.foobar
8b6109d8eb Added User class, moved operands to User, cleanup
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@69 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2009-02-25 11:04:25 +00:00
mdevan.foobar
10843ec2ec Cleanup and fixes
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@68 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2009-02-24 10:02:19 +00:00
mdevan.foobar
231aa4a5c4 Code cleanup, pylint, updated README, CHANGELOG
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@67 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2009-02-23 11:24:12 +00:00
mdevan.foobar
2eeb7630a1 Added instruction operands (Seth Warn)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@66 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2009-02-23 07:56:23 +00:00
mdevan.foobar
1b4b807884 Avoid object aliasing (with Seth Warn)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@65 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2009-02-23 06:49:30 +00:00
mdevan.foobar
a339b69193 Enable BasicBlock.function API
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@63 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2009-02-21 16:40:01 +00:00
mdevan.foobar
6028e1765b Module.link_in and Instruction.is_volatile APIs added (Seth Warn)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@62 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2009-02-21 10:02:46 +00:00
mdevan.foobar
58ceb85afb Fix for issue #10.
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@59 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2009-01-10 11:00:00 +00:00
mdevan.foobar
3bbc5685a8 Added vicmp, vfmp. Updated docs. Support FreeBSD.
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@51 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2008-11-22 16:46:32 +00:00
mdevan.foobar
95cef74480 Migrated to LLVM 2.4.
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@50 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2008-11-21 12:17:42 +00:00