Commit graph

305 commits

Author SHA1 Message Date
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
4783429804 Drop unused argument for GenericValue.pointer(). 2012-07-26 15:44:53 -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
afcdd30c88 Stick with C++ for everything. 2012-07-25 18:32:21 -07:00
Siu Kwan Lam
93c25ca98b Fix _wLLVMEngineBuilderCreate. 2012-07-25 18:25:25 -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
99c7a0736e Comment out pass constants in C files. 2012-07-24 12:25:42 -07:00
Siu Kwan Lam
2d79cfa437 Replaced PASS_* constants with pass name lookup. 2012-07-23 17:39:40 -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
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
9bbeee519b Added Module.id property (getter+setter).
Updated test/asm.py to use unittest.
2012-07-20 20:15:21 -07:00
Travis E. Oliphant
8d064806a1 BUG: Add ConstantDataArray and ConstantD 2012-06-28 14:59:43 -05:00
Travis E. Oliphant
52b2bcd2c1 Fix the LLVM Object Cache key to include the class name as well.. 2012-06-21 01:48:56 -05:00
Travis E. Oliphant
7b6aac79fb Add llvm::Module::addLibrary to exposed API 2012-06-21 01:25:23 -05:00
Nicolas Pinto
bf36c50e96 BUG: fix error: ‘printf’ was not declared in this scope 2012-03-15 13:13:26 -04:00
Travis E. Oliphant
3569ba6182 Update intrinsics and other codes for the 3.1 release. 2012-03-08 11:09:22 -06:00
Travis E. Oliphant
796f5e264a Use correct casing for print method. 2012-03-08 07:18:18 -06:00
Travis E. Oliphant
88d4f62e16 Remove NumPy specific code from llvm-py 2012-03-08 05:56:37 -06:00
Travis E. Oliphant
45177bbeb0 Add make_ufunc to llvm-py and additional fixes. 2012-02-18 04:20:21 -06:00
Travis E. Oliphant
589645fd67 Update the intrinsic OPCODES for LLVM 3.0 2012-02-14 23:33:59 -06:00
Travis E. Oliphant
76edfad7c8 Fix-up opcodes that are different in 3.0 2012-02-14 16:34:36 -06:00
Travis E. Oliphant
b4f51acd64 More changes to get working on LLVM 3.0 2012-02-09 23:40:22 -06:00
Travis E. Oliphant
3120dbf29e More changes to get llvm-py to compile with LLVM 3.0 2012-02-08 09:23:58 -06:00
Travis E. Oliphant
c09903e54f Making progress towards a 3.0 version of llvm-py. 2012-02-08 01:40:03 -06:00
AndrewBC
cb9fcd70cb Fixing segfault with PyArg_ParseTuple for strings 2011-06-12 15:51:26 -05:00
AndrewBC
7035735ea4 We're warning free now :D 2011-06-12 14:00:25 -05:00
AndrewBC
46a9a86085 Fixed some old PyInt usage, drastically reduced compile-time warnings 2011-06-12 13:58:57 -05:00
AndrewBC
2c42b82799 Moar py3k updates... Still segfaulting, in PyArg_ParseTuple of _wLLVMLoadLibraryPermanently for some reason. :| 2011-06-12 05:54:08 -05:00
AndrewBC
13815fd2f3 It compiles! It also segfaults when tested! :D 2011-06-12 03:41:03 -05:00
AndrewBC
220f59f1e9 Updated PyCObject calls to use PyCapsule calls 2011-06-12 02:31:41 -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
AndrewBC
d5c2806b5d applied patch to work with llvm 2.9 from llvm-py r105 ... 84.7KB version seen here: http://code.google.com/p/llvm-py/issues/detail?id=37 2011-06-05 21:21:18 -05:00
mdevan.foobar
d7839041f6 Removed obsolete reference to ABCD pass (Issue #35)
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@104 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2010-10-24 08:54:42 +00: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
bb2d613e39 Fix incomplete merge from scratch branch
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@102 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2010-10-24 08:40:50 +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
8d4addac08 Fix build warnings
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@93 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2010-09-18 14:20:02 +00:00
mdevan.foobar
1c04eb1c87 Updated documentation, partially.
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@90 8d1e9007-1d4e-0410-b67e-1979fd6579aa
2010-08-31 07:31:34 +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