Commit graph

413 commits

Author SHA1 Message Date
dand-oss
db00a6b8de C++ cleanup of old C conventions - prefer C++ casting to unsafe C style casts - use templates to encapsulate casting - prefer new to malloc - apply const when possible - decalare variables as near to use as possible 2012-09-10 16:52:50 -07:00
Siu Kwan Lam
47baa49160 Merge pull request #18 from laanwj/2012_09_constantint_value
Thanks!
2012-09-10 16:41:19 -07:00
Siu Kwan Lam
cc12434f57 Add thread local 2012-09-10 16:37:20 -07:00
Ilan Schnell
16b833be2b ENH: we should use llvmpy consistently as the project name 2012-09-09 22:42:22 -05:00
Wladimir J. van der Laan
41953602bf Add ways to get the value of a ConstantInt
- property z_ext_value gets the zero-extended value using LLVMConstIntGetZExtValue
- property s_ext_value gets the sign-extended value using LLVMConstIntGetSExtValue
- add test case for both
2012-09-09 12:40:40 +02:00
Wladimir J. van der Laan
3b22d5accf Add wrapping constructor for (signed) long long
Completely analogous to how unsigned long long is handled
2012-09-09 12:04:27 +02:00
Siu Kwan Lam
8a159b35f0 refactor llvm_cbuilder 2012-09-07 17:53:22 -07:00
Siu Kwan Lam
af44641bb9 add noalias attribute to parameters 2012-09-07 17:53:22 -07:00
Siu Kwan Lam
1e4633c44d add invariant variable 2012-09-07 17:53:22 -07:00
Siu Kwan Lam
b941ae5f1f Use non-temporal hint at memory store for vectorizer.
Note: LLVM optimizer is smart enough to not use NT write if it is slower.
2012-09-07 17:53:22 -07:00
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
8505256510 Inline ufunc kernel in vectorize. (Better io throughput) 2012-09-04 10:08:07 -07:00
Siu Kwan Lam
78cde30883 Revive inline_function() 2012-09-04 10:06:36 -07:00
Siu Kwan Lam
c439c2fb40 Merge pull request #16 from laanwj/2012_08_calledfunction
Implement property CallOrInvokeInstruction.called_function.
Thanks.
2012-09-02 14:34:05 -07:00
Wladimir J. van der Laan
5bd4991f0b Implement property CallOrInvokeInstruction.called_function
Also add a testcase.
2012-09-02 13:23:47 +02: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
76c60adbca Merge pull request #15 from laanwj/2012_08_constantexpr_opcode
Implement property ConstantExpr.opcode
2012-09-01 20:10:44 -07:00
Wladimir J. van der Laan
c033ba02a4 Implement property ConstantExpr.opcode
Use LLVM C-API function `LLVMGetConstOpcode`
2012-09-01 17:33:55 +02:00
Ilan Schnell
abe5f2b42b REL: master now 0.8.3 2012-08-31 19:14:34 -05:00
Mark Wiebe
428f4ad530 Fix debug print test, make it account for some system printf variations 2012-08-31 12:18:26 -07:00
Mark Wiebe
a6e7bcb015 Skip tests using pthreads on Windows
Note: They were causing hard exits of Python, not exceptions, this
      is something that will have to be fixed in the future
2012-08-31 10:53:37 -07:00
Mark Wiebe
e7b1af043f Use the function's calling convention when doing the call in cbuilder 2012-08-30 18:13:03 -07:00
Siu Kwan Lam
a046685b2c Add calling_conv.
Set win32 api to use CC_X86_STDCALL. (need testing)
2012-08-30 12:23:53 -07:00
bryan
fb30295e62 rename to prevent import collision 2012-08-30 13:31:50 -05:00
Mark Wiebe
01b55b48f7 Add detection of whether LLVM has PTX in the windows build 0.8.2 2012-08-29 13:51:07 -07:00
Siu Kwan Lam
f985d1b034 Merge pull request #5 from bfroehle/build_fixes
Thanks for the fixes.
2012-08-27 09:48:13 -07:00
Bradley M. Froehle
0b351ad05c Use llvm-config --ldflags to get extra_link_args. 2012-08-27 08:27:59 -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
Mark Wiebe
397a81d5bd Switch to using a fake llvm-config program, so there's just one setup.py
This should help keep windows and other platforms in synch
easier.
2012-08-25 13:21:38 -07:00
Siu Kwan Lam
d390960657 Add llvm_cbuilder translate features:
* handle while loop
 * handle for loop
 * handle immediate values

Todo: handle "break" and "continue"
2012-08-23 11:43:24 -05:00
Mark Wiebe
bc2c9a24ed Support possibility of neither PTX backend being available 2012-08-23 09:27:30 -07:00
Mark Wiebe
d8461b1d63 Tweak the list of linked libraries on windows 2012-08-23 09:27:29 -07:00
Mark Wiebe
788af6d82d Disable PTX backend by default on windows 2012-08-23 09:27:28 -07:00
Mark Wiebe
31601e03cf Tweak setup-win32.py to work with structure of LLVM as installed
The PACKAGE target created by the cmake build makes an
nsis installer with a particular directory structure.
This change targets that structure.
2012-08-23 09:27:27 -07:00
Maggie Mari
212ff672c9 Merge branch 'master' of github.com:llvmpy/llvmpy 2012-08-23 11:17:10 -05:00
Maggie Mari
f771c3a86d Finished editing PythonLangImpl7.rst 2012-08-23 11:16:54 -05:00
Siu Kwan Lam
eeda441dac Added stream vectorize. 2012-08-22 13:23:52 -05:00
Siu Kwan Lam
4d773ed5ed Add alignment control to vector_load/store.
E.g: align=1 for universal alignment. default to aligned.
2012-08-21 18:32:44 -05:00
Siu Kwan Lam
d78253ebe3 Add control to alignment of ld/st inst 2012-08-21 18:28:35 -05:00
Maggie Mari
16860436d4 Finished editing PythonLangImpl6.rst. 2012-08-21 17:59:44 -05:00
Siu Kwan Lam
2218f1d49e Improve vector load store.
Changes make llvm emit parallel ld/st instead of scalar ld/st.
2012-08-21 17:26:12 -05:00
Siu Kwan Lam
5513a34e80 Add some doc and cleanup 2012-08-21 14:17:14 -05:00
Siu Kwan Lam
5319fb8c98 Add initial vector support 2012-08-21 12:33:21 -05:00
Siu Kwan Lam
562e3c1e46 Fix: if-else branch should terminate automatically. Insert unreachable to if.end block if necessary. 2012-08-21 12:30:35 -05:00
Siu Kwan Lam
d55bb95d4d Add translator to convert python code to llvm cbuilder construct 2012-08-21 12:30:35 -05:00
Maggie Mari
e7cbaea1e8 Doc editing 2012-08-20 17:52:00 -05:00
Maggie Mari
c7cbebab7b Additional doc fixes. 2012-08-20 17:11:26 -05:00
Maggie Mari
67ee2792bf Removed extraneous slashes. 2012-08-20 13:34:40 -05:00
Maggie Mari
022f12ad4f Merge branch 'master' of github.com:llvmpy/llvmpy 2012-08-20 13:26:49 -05:00