Go to file
Michael Gottesman f125e00e37 [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.

llvm-svn: 190388
2013-09-10 06:57:57 +00:00
clang Separate popcnt and sse4.2 feature control somewhat to match gcc behavior. 2013-09-10 06:55:47 +00:00
clang-tools-extra clang-modernize: Fix bugs in Pass-By-Value transform 2013-09-06 22:28:53 +00:00
compiler-rt Delete unused variables. 2013-09-10 03:27:07 +00:00
debuginfo-tests Auto-detect the architecture of the executable instead of using the arch of 2013-09-07 20:04:29 +00:00
libclc Parenthesize arguments for mad_hi 2013-09-09 14:36:21 +00:00
libcxx Update synopsis for list/forward_list/deque to match the allocator style of existing comment. No code change 2013-09-09 18:19:45 +00:00
libcxxabi Add ability to set OPTIONS for compile 2013-09-09 23:53:08 +00:00
lld Rename GnuLDInputGraph.h -> GnuLdInputGraph.h for consistency with other files. 2013-09-09 19:30:23 +00:00
lldb Changing the default shell to /bin/sh brought up a long-standing bug on OS X, 2013-09-10 02:09:47 +00:00
llvm [python bindings] Added code to get the length of a memory buffer. Tests are included. 2013-09-10 06:57:57 +00:00
polly TempScopInfo: Microoptimize constant conditions 2013-09-10 04:47:19 +00:00