Jon Riehl
aacfce25bf
Manual merge from origin/master after applying PR#83.
2013-09-09 16:14:32 -05:00
Sergio Pascual
aae25f5e55
Remove shebangs from library code
2013-09-09 13:00:01 +02:00
Jon Riehl
a6cf8c4f71
Made some improvements to llpython.af_to_api, specifically attempting to normalize variable access so reference counting becomes the target API's responsibility.
2013-06-17 18:08:36 -05:00
Jon Riehl
fd41a93554
Added llpython.af_to_api module. Started work on a code generator that accepts address flows, and outputs an LLVM function that implements the given code object using (undefined) API calls for bytecode instructions.
2013-06-13 15:25:28 -05:00
Jon Riehl
0b24adb80a
Modified various passes to use the inspect module instead of using type comparisons or isinstance.
2013-06-07 15:30:45 -05:00
Jon Riehl
722453502c
Continued generalization of byte_flow.demo_flow_builder(), moving traversal logic into visitor function opcode_util.visit_code_args(). Modified byte_control.main() to use visit_code_args().
2013-06-06 14:08:09 -05:00
Jon Riehl
bba305774a
Moved most of llpython.tests.test_addr_flow into llpython.tests.test_byte_flow, made some modifications to various modules to facilitate proper handling of try-finally.
2013-06-05 18:52:27 -05:00
Jon Riehl
b5a15a5019
Added function to iterate through nested code objects, llpython.opcode_util.itercodeobjs(), and used it in llpython.addr_flow.
2013-06-03 19:12:19 -05:00
Jon Riehl
c890cbdd92
Attempting to improve readability of opcode value stack action map using namedtuple in llpython.opcode_util.
2013-06-03 18:00:06 -05:00
Jon Riehl
c5d95e01e1
More work on CFA for try-finally in the presence of loops.
2013-05-15 18:40:44 -05:00
Jon Riehl
d3b252531d
Updates to llpython.opcode_util to better support loop and exception control flow.
...
* Inlcuded non-argument branching opcodes in the hasjump opcode list.
* Added all the SETUP_* opcodes to the hascbranch list.
* Modified itercode() to not output the EXTENDED_ARG bytecode.
* Cleaned up extendlabels(), and made it use the hasjump opcode list uniformly.
2013-05-14 14:52:11 -05:00
Jon Riehl
6f532f164a
Working on full opcode coverage and support for exception control flow.
2013-05-14 14:52:11 -05:00
Jon Riehl
5ef00671e7
Add support for more bytecodes.
2013-05-14 14:52:11 -05:00
Jon Riehl
ffc067f852
Attempt at a fix for issue #48 .
2013-01-28 20:08:09 -06:00
Travis E. Oliphant
bbc7a4ddf0
Ready for numba/llnumba -> llvmpy/llpython
2012-11-07 12:08:32 -06:00