History log of /external/llvm/bindings/python/llvm/tests/base.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
37a8807323672ab0bb366272e5a798b8e63752a4 11-Sep-2013 Michael Gottesman <mgottesman@apple.com> [python-bindings] Added code for loading a module from bitcode, getset its datalayout, getset its target, dump it, print it to a file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190458 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/python/llvm/tests/base.py
653212fdd1f5b5eea1c5b7d4d28b3f6c8fd05bba 10-Sep-2013 Michael Gottesman <mgottesman@apple.com> [python bindings] Added code to get the length of a memory buffer. Tests are included.

This is a part of a series of patches that have been sitting fallow on a
personal branch that I have been messing with for a bit.

The patches start to flesh out the python llvm-c wrapper to the point where you can:

1. Load Modules from Bitcode/Dump/Print them.
2. Iterate over Functions from those modules/get their names/dump them.
3. Iterate over the BasicBlocks from said function/get the BB's name/dump it.
4. Iterate over the Instructions in said BasicBlocks/get the instructions
name/dump the instruction.

My main interest in developing this was to be able to gather statistics about
LLVM IR using python scripts to speed up statistical profiling of different IR
level transformations (hence the focus on printing/dumping/getting names).

This is a gift from me to the LLVM community = ).

I am going to be committing the patches slowly over the next bit as I have time
to prepare the patches.

The overall organization follows the c-api like the bindings that are already
implemented.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190388 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/python/llvm/tests/base.py
a8d873e178d45024db9c0ef6a25c6867424785f7 21-Mar-2012 Anders Waldenborg <anders@0x63.nu> [python] Add some paths where to find test binary

Adds /usr/lib/debug early to list, as some systems (debian) have unstripped libs in there
Adds /lib/i386-linux-gnu for systems that does multiarch (debian)



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153174 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/python/llvm/tests/base.py
359595413071ff706b484a875a23a4a7d1508f50 21-Mar-2012 Anders Waldenborg <anders@0x63.nu> [python] Mark get_test_binary as not being a test

get_test_binary is a helper method, not a test, make sure nosetests
doesn't pick it up as a test.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153173 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/python/llvm/tests/base.py
61e22cd85cd4c84fff391da67018c92bf21a8e19 10-Mar-2012 Gregory Szorc <gregory.szorc@gmail.com> [llvm.py] Implement interface to object files

It is now possible to load object files and scan over sections, symbols,
and relocations! Includes test code with partial coverage.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152482 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/bindings/python/llvm/tests/base.py