Commit graph

811 commits

Author SHA1 Message Date
Siu Kwan Lam
d270e885cc Add ptrtoint cast in cbuilder 2013-02-22 10:43:34 -06:00
Siu Kwan Lam
42f7219c3f Allow function.verify to raise exception on error. 2013-02-22 10:43:11 -06:00
Siu Kwan Lam
175f558ce0 Add error checking for common mistake in Builder.call 2013-02-19 10:54:31 -06:00
Siu Kwan Lam
58d410b347 Merge pull request #55 from pfalcon/pfalcon
Correct if-then-else LLVM asm example.
2013-02-19 08:13:48 -08:00
Mark Florisson
081b41db60 Allow casting pointers to ints in cbuilder 2013-02-19 15:25:10 +00:00
Paul Sokolovsky
bf484aa216 Correct if-then-else LLVM asm example.
As was present vividly breaks LLVM IR constraints on SSA and basic-blocks:
same var being assigned twice, no control transfer at the end of basic block.
Compare with the original:
http://www.mdevan.org/llvm-py/kaleidoscope/PythonLangImpl5.html
2013-02-19 08:36:52 +02:00
Ilan Schnell
20d0bf9f2a add missing dummy options 2013-02-17 16:37:57 -06:00
Siu Kwan Lam
1647580a41 LinkModules should release ownership of the other module when not preserving 2013-02-16 21:54:12 -06:00
Ilan Schnell
acd6ab685b enhance setup error messages 2013-02-16 19:20:06 -06:00
Ilan Schnell
0cc2e516ac enable new llvm-config on Windows and update changelog 2013-02-16 14:29:43 -06:00
Ilan Schnell
92c9813b3e fix library name 2013-02-16 12:50:22 -06:00
Ilan Schnell
013c7d2009 add impoved version of llvm-config for Windows 2013-02-16 10:54:25 -06:00
Ilan Schnell
ffa713e332 improve error handling 2013-02-16 01:34:51 -06:00
Ilan Schnell
a7c650a458 simplified checking for valid llvm-config command 2013-02-16 01:24:27 -06:00
Ilan Schnell
079e31c474 remove unused code 2013-02-16 01:15:37 -06:00
Ilan Schnell
7813bec6e9 add error handling 2013-02-16 01:14:06 -06:00
Ilan Schnell
26c4380c2b cleanup run_2to3 in setup.py 2013-02-16 00:14:43 -06:00
Siu Kwan Lam
bf121485ad Fix problem with caching llvm.core.Value objects. 2013-02-15 13:30:50 -06:00
Siu Kwan Lam
cb00dcc52c Fix a bug in CreatInsertValue and one in ConstantInt. 2013-02-13 18:12:45 -06:00
Siu Kwan Lam
d2dc34cdd3 Try to fix invalid dtor call 2013-02-13 17:12:54 -06:00
Siu Kwan Lam
a09394cacd Fix a lots of bugs in the newbinding to pass all the tests.
NOTE: debug info has not been implemented yet.
2013-02-13 15:52:53 -06:00
Ilan Schnell
0036d55eea remove excess whitespace 2013-02-12 11:55:04 -06:00
Ilan Schnell
b4f4483809 Py3k fixes for Windows 2013-02-12 11:24:36 -06:00
Siu Kwan Lam
a97b26415e Update old API to use the new binding.
Have not run the testsuite yet.
2013-02-11 18:15:22 -06:00
Siu Kwan Lam
2d8c6f0a41 Add PassRegistry, PassSupport, TargetRegistry, TargetOptions, and functions in Host.h
And a few other fixes
2013-02-11 18:13:38 -06:00
Siu Kwan Lam
3189be4d58 Rename newbinding directory to llvmpy. 2013-02-11 10:21:13 -06:00
Siu Kwan Lam
0681d2f37e Fixes various problem in llvm.core 2013-02-08 18:22:53 -06:00
Siu Kwan Lam
230583f42d Fix bug with empty namespace 2013-02-08 18:16:26 -06:00
Siu Kwan Lam
1fb6b05715 Finished wrapper in llvm.core 2013-02-08 18:13:45 -06:00
Siu Kwan Lam
8700bbc4f1 Fix segfault on exit 2013-02-08 18:13:16 -06:00
Siu Kwan Lam
60336d1c5f Add DynamicLibrary and InlineFunction 2013-02-08 18:13:04 -06:00
Siu Kwan Lam
c66dad7ece Implement commandline namespace 2013-02-08 18:12:36 -06:00
Siu Kwan Lam
355332d6d8 Add NVPTX components 2013-02-08 18:12:07 -06:00
Siu Kwan Lam
6eae24bcf3 Set default namespace to top-level C++ namespace. 2013-02-08 18:11:19 -06:00
Siu Kwan Lam
7c39bd1f5b Refactor to allow sub-namespace declaration 2013-02-08 16:03:29 -06:00
Siu Kwan Lam
fe383ca326 More to IRBuilder and Instruction 2013-02-07 17:40:00 -06:00
Siu Kwan Lam
b9ac22d136 More to BasicBlock 2013-02-07 15:31:54 -06:00
Siu Kwan Lam
113f30ffab Add more to Instruction 2013-02-07 15:23:31 -06:00
Siu Kwan Lam
541c119fc3 Add binding for MDNode, MDString, InlineAsm 2013-02-07 14:00:38 -06:00
Siu Kwan Lam
11cc78d780 Add binding for Intrinsics.
Add support for functions that free the resource but is not a destructor.
2013-02-07 13:27:03 -06:00
Siu Kwan Lam
aa5b969961 Expand test 2013-02-06 21:31:24 -06:00
Siu Kwan Lam
cd1fa4c4d8 Add binding for Attributes, Argument, Constants, CallingConv, GlobalValue, GlobalVariable, etc. 2013-02-06 21:31:14 -06:00
Siu Kwan Lam
39de8c4003 Expand test 2013-02-05 18:49:33 -06:00
Siu Kwan Lam
9c81fa1f63 Add more functions to GlobalValue GlobalVariable, StructType and Module 2013-02-05 18:49:13 -06:00
Siu Kwan Lam
c98a1274d9 Add Linker and Assembly (IR) Parser 2013-02-05 18:48:09 -06:00
Siu Kwan Lam
450c29e052 Swap out old llvm code 2013-02-05 15:30:43 -06:00
Siu Kwan Lam
da85049eb9 Add support to emit assembly. 2013-02-05 13:47:35 -06:00
Siu Kwan Lam
168510222f Add Module bitcode writer/parser 2013-02-05 13:47:35 -06:00
Siu Kwan Lam
961c5e99e1 Re-organize 2013-02-05 13:47:35 -06:00
Siu Kwan Lam
c085bef46e Rename the tests 2013-02-05 13:47:35 -06:00