Displaying 7 results from an estimated 7 matches for "llvmcpi".
Did you mean:
llvmcpy
2017 Jan 12
2
llvmcpy: yet another Python binding for LLVM
Hi, I wrote yet another [1,2] Python binding for LLVM! I'm doing this
because llvmlite has some serious limitations: 1) it cannot parse an
existing IR, only create new modules [3], 2) it keeps its own
representation of the IR (which is less memory efficient than the LLVM
one), and 3) each llvmlite version supports a single LLVM version.
Considering that my need is to load modules of hundreds
2018 Jan 01
0
Is there a python binding, or any other script binding, that has access to individual instructions?
Hi,
On 1/1/2018 07:26, Yuri via llvm-dev wrote:
> I was thinking to make a simple code analysis tool to, for example,
> find all system calls that have unchecked return codes, but I can't
> find a binding for any scripting language. And I am averse to writing
> this in C++.
One possible choice would be llvmcpy -- Python bindings used by the
rev.ng (https://rev.ng/) project:
2018 Jan 01
5
Is there a python binding, or any other script binding, that has access to individual instructions?
There is llvmlite http://llvmlite.readthedocs.io/en/latest/ , but it
doesn't seem to support reading individual instructions, based on these
docs.
I was thinking to make a simple code analysis tool to, for example, find
all system calls that have unchecked return codes, but I can't find a
binding for any scripting language. And I am averse to writing this in C++.
Thanks,
Yuri
2017 Oct 31
2
A query language for LLVM IR (XPath)
As much as I'm not a fan of most XML things, this application of XPath is *inspired*.
This would be a great testing/query tool for tests.
It would also be a great way to prototype passes.
Looking forward to seeing something like this in llvm/tools/ !
Cheers
> On 1 Nov 2017, at 04:00, Sean Silva via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> This is so cool! I once
2017 Oct 29
2
A query language for LLVM IR (XPath)
Hi, sometimes when dealing with LLVM IR getting to a desired point of
the code is a bit cumbersome, in particular if you're instrumenting
existing code. A lot of nested loops and if checks.
Maybe all of this could be avoided by employing a query language. Since
an LLVM module can be seen as a sort of tree with attributes, I think
that reusing an existing query language for XML would be
2018 Apr 04
0
Fault while using AAResultsWrapperPass in LLVM 5.0.1
...c RegisterStandardPasses
RegisterMyPass(PassManagerBuilder::EP_ModuleOptimizerEarly, registerCPI);
static RegisterStandardPasses
RegisterMyPass0(PassManagerBuilder::EP_EnabledOnOptLevel0, registerCPI);
And compiled with the following command:
comp_3:
clang -Xclang -load -Xclang ${LLVM_LIB}/LLVMCPI.so -O0 -c test.c
clang -Xclang -load -Xclang ${LLVM_LIB}/LLVMCPI.so -O0 -c fun_lib.c
cc *.o ${CPI_LIB}
I get the following errors:
clang -Xclang -load -Xclang /home/zhangjun/tools/llvm/llvm-build/lib/LLVMCPI.so -O0 -c test.c
Pass 'Unnamed pass: implement Pass::getPassName()' is not init...
2018 Feb 07
0
C to LLVM IR in python
Hi,
I am currently trying to convert C to LLVM IR in python. Till now, I have
achieved the task by calling clang in python, but I would like to find
something that can allow me to take a file in python and turn it to LLVM
IR. I looked at some tools online, such as pycparser and llvmcpy, but it
seems like the tool ends at generating the AST but not the IR. Can anyone
suggest other tools that I can