Commit graph

518 commits

Author SHA1 Message Date
Siu Kwan Lam
bdac4a809d Add lazy compilation option.
Unify execution engine creation through engine-builder internally.
2013-01-16 17:52:33 -06:00
Siu Kwan Lam
91a10e6a8e Fix TargetMachine ownership in EngineBuilder. 2013-01-14 20:34:29 -06:00
Siu Kwan Lam
8b58488bbd Add GEP inbounds 2013-01-14 10:30:58 -06:00
Mark Florisson
9874d8048d Run 2to3 for python 3 install 2013-01-13 17:00:17 -06:00
Ilan Schnell
995d14e1d0 fix (Windows) issue #42 2013-01-11 11:20:24 -06:00
Siu Kwan Lam
207254fe50 Make note about preverifier bug in LLVM that *.verify() will abort upon error 2013-01-10 17:13:06 -06:00
Siu Kwan Lam
31fbc3ae64 Module.link_in should not delete other.ptr and should prevent the other.ptr from being destroyed 2013-01-10 17:10:40 -06:00
Siu Kwan Lam
a0a777e1aa llvm_cbuilder: global string should use LINKONCE_ODR 2013-01-10 16:58:50 -06:00
Siu Kwan Lam
ee62b0c96c Fix Module.link_in so it reports error and destory the other module when preserve=False 2013-01-10 16:52:25 -06:00
Siu Kwan Lam
f731332360 Builder.branch will check if the basicblock has terminator when running in debug mode. 2013-01-10 16:43:14 -06:00
Siu Kwan Lam
9dadd9f1df Use 'L' format for unsigned long long to be consistent 2013-01-10 09:44:00 -06:00
Ilan Schnell
cc8b16b9ca next version will be 0.10.0 2013-01-08 16:12:26 -06:00
Siu Kwan Lam
64880e7d69 Fix invalid use of long for address. Use unsigned long long for cross-platform 64-bit int. 2013-01-08 16:09:51 -06:00
Jon Riehl
ee2d86e86f Merge pull request #41 from valtron/master
Updated names of passes in Kaleidoscope tutorial
2013-01-08 13:47:17 -08:00
Siu Kwan Lam
371e940c83 Reverse finalizer 2013-01-07 16:39:41 -06:00
Siu Kwan Lam
5fc5ba2e66 Fix free/delete mismatch in LLVMGetNativeCodeFromModule 2013-01-07 16:39:32 -06:00
Siu Kwan Lam
8ca0e79bd0 Fix free/delete mismatch in LLVMGetBitcodeFromModule 2013-01-07 15:14:46 -06:00
Siu Kwan Lam
af6b0d7823 Suppress warning for missing loop-vectorizer feature if user is not enabling it. 2013-01-07 14:00:11 -06:00
valtron
e02cd0a977 Updated names of passes 2013-01-05 02:46:52 -07:00
Siu Kwan Lam
9571aefbe0 Add ExecutionEngine.add_global_mapping 2013-01-04 15:15:41 -06:00
Siu Kwan Lam
457cd24986 Add test for ExecutionEngine.get_pointer_to_global 2013-01-04 14:25:39 -06:00
Siu Kwan Lam
5b6a1d75f8 Fix breakage of LLVM 3.1.
Add LLVM version number in llvmpy.
2013-01-04 14:24:26 -06:00
Bradley M. Froehle
dd32ce56b1 Wrap LLVMGetPointerToGlobal & add ExecutionEngine.get_pointer_to_global. 2013-01-04 10:21:55 -06:00
Siu Kwan Lam
f01da12e16 Add CodeModel 2013-01-03 15:37:11 -06:00
Siu Kwan Lam
bc20661343 Introduce finalizer module to manage finalization of C resources. 2013-01-03 14:44:32 -06:00
Siu Kwan Lam
e8c7fcfd32 Add optional TargetMachine param to EngineBuilder.create. 2013-01-03 11:47:24 -06:00
Siu Kwan Lam
a6ed8d55f8 Add clone method to TargetData. 2013-01-03 10:17:23 -06:00
Siu Kwan Lam
3fbce4c0f9 Fix exception syntax for Py3 2013-01-03 09:56:42 -06:00
Siu Kwan Lam
e2ec14bbb9 Add test to verify new pass APIs and loop-vectorizer. 2013-01-02 17:42:28 -06:00
Siu Kwan Lam
7f9c91e2aa Add simpler API for building pass-managers given a TargetMachine. 2013-01-02 17:42:28 -06:00
Siu Kwan Lam
3b399f9d8b Adding target specific passes. 2013-01-02 17:42:28 -06:00
Siu Kwan Lam
bcc467b2b5 Add auto detect PTX/NVPTX support and disable them in the C-extension. 2013-01-02 17:42:28 -06:00
Siu Kwan Lam
ff92a05858 Begin to expose Pass class. 2013-01-02 17:42:28 -06:00
Mark Florisson
b22c023301 Make cbuilder optimizations optional 2013-01-02 19:17:12 +00:00
Siu Kwan Lam
ff51552838 Update README for LLVM 3.2. 2012-12-31 10:45:21 -06:00
Siu Kwan Lam
10e83f306f Add PassManagerBuilder.loop_vectorize property 2012-12-31 10:45:21 -06:00
Siu Kwan Lam
edcef56f05 Merge pull request #37 from ehiggs/master
Issue #34 Pypi package does not include "tools" directory
2012-12-31 08:44:50 -08:00
Ewan Higgs
d397f4c497 Issue #34 - Add tools to MANIFEST.in 2012-12-30 21:08:38 +00:00
Siu Kwan Lam
5da98dac49 Add macros to enable support for llvm3.1. 2012-12-27 17:10:12 -06:00
xol
f3e9eb0b05 Fix for llvm 3.2 - TargetData -> DataLayout 2012-12-27 14:06:47 -06:00
Siu Kwan Lam
e2e6221f25 Fix last commit 2012-12-17 14:24:05 -06:00
Jon Riehl
f2e65c6c54 Proposed fix for issue #31. 2012-12-17 14:14:31 -06:00
Siu Kwan Lam
436a12db03 Add Stephen's llvm-cbuilder examples. 2012-12-17 14:12:48 -06:00
Siu Kwan Lam
970ba92720 Merge pull request #35 from meteogrid/master
Added Instruction.erase_from_parent wrapper
2012-12-17 12:12:32 -08:00
Siu Kwan Lam
d12b145bee Merge pull request #33 from jszakmeister/fix-bugs-in-tutorial
Fix bugs in tutorial
2012-12-17 12:07:21 -08:00
Alberto Valverde
5c5f3015f7 exposed LLVMInstructionEraseFromParent 2012-12-14 23:54:49 +01:00
Siu Kwan Lam
03e54f2c12 Expose preserve flag for Module.link_in 2012-12-04 13:50:16 -06:00
John Szakmeister
b3a04c4a34 Move the closing curly branch to line up with the rest of the code. 2012-11-30 04:45:30 -05:00
John Szakmeister
78f81fec73 Fix the id matching in the kaleidoscope tutorial. 2012-11-30 04:04:14 -05:00
John Szakmeister
7c7c198953 Mark a block of code as text, and remove the python-isms.
The kaleidoscope language being implemented looks similar to Python, but
is not the same.
2012-11-30 04:01:04 -05:00