Commit graph

86 commits

Author SHA1 Message Date
Siu Kwan Lam
fbb7208b85 add invariant load
add related test
2012-09-06 20:00:01 -07:00
Siu Kwan Lam
82117d899e add support for metadata.
add related test.
2012-09-06 15:47:23 -07:00
Siu Kwan Lam
78cde30883 Revive inline_function() 2012-09-04 10:06:36 -07:00
Siu Kwan Lam
5d14461c84 Fix ConstantExpr opcode to use C++ enum values.
Note: C++ opcode is different from C opcode values.
Add ConstantExpr opcode name.
Add test for these.
2012-09-01 20:53:33 -07:00
Siu Kwan Lam
38d4de35bb Make it possible to pass LLVM options from environment variables.
These options are parsed like commandline options to llc.
2012-08-26 21:00:56 -07:00
Ilan Schnell
46c185f530 remove unused test module 2012-08-19 17:17:05 -05:00
Ilan Schnell
501c3d0f61 move native tests 2012-08-19 17:08:34 -05:00
Ilan Schnell
274a9e9cd2 finished moving passes tests 2012-08-19 16:26:01 -05:00
Ilan Schnell
b15046ad99 fixed file mode of test files 2012-08-19 01:27:42 -05:00
Ilan Schnell
d6fdd31883 Merge branch 'issue8-py2.6' 2012-08-18 22:10:16 -05:00
Siu Kwan Lam
1ed2049395 add method to retrieve host cpu name
add stub method to enginebuilder to setMCPU and setMAttrs -- these are not implemented in llvm3.1
2012-08-18 17:32:40 -07:00
Siu Kwan Lam
d1bcdd05d1 add NVPTX for LLVM 3.2;
auto-gen _intrinsic_ids.py  in setup.py;
2012-08-18 15:29:26 -07:00
Siu Kwan Lam
8eb6a34d54 Replace fprintf with exception 2012-08-15 15:22:08 -07:00
Siu Kwan Lam
1b7fc6c803 Add test for target machines (native + PTX) 2012-08-14 16:56:33 -07:00
Ilan Schnell
72f7fc4a99 more Py26 test fixes 2012-08-12 23:31:47 -05:00
Ilan Schnell
e0f18ae9de fixed uses.py for Python 2.6 2012-08-12 23:24:12 -05:00
Ilan Schnell
f54e195121 more Python 2.6 test fixes 2012-08-12 23:21:45 -05:00
Ilan Schnell
7f3550f93d fix more tests for Python 2.6 2012-08-12 23:12:55 -05:00
Ilan Schnell
2c25966dd6 backporting assertIs and assertIsNot to objcache.py 2012-08-12 23:05:53 -05:00
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