I have the code ready in an Transforms/Instrumentation, which would intercept my original code.I would like to use function pointer pointing to an ori ...
I have the code ready in an Transforms/Instrumentation, which would intercept my original code.I would like to use function pointer pointing to an ori ...
I have a file in which the main function calls three test functions, namely, test 1, test 2 and test 3. I want to make a pass that deletes each two of ...
} When I try to run this llvm code, it said "constant expression type mismatch". I don't know the reason for that. ...
In Execution.cpp, I can get all instructions and the values of all variables. Is there any method to get the ID or the number of each instruction. ...
My question is simple. Given an instruction of type branch, how do I extract the label out of it? For example: Should give me while.cond Should ...
I'm trying to write a pass that will check the control flow of a code. Given a br instruction, I need to access the basic blocks referred to in the la ...
I have an LLVM pass that iterates over LLVM IR code and I would like to get a directory and a filename for both the functions and basic blocks for the ...
I am looking at a llvm ir file converted from a cpp file by clang. But I found there were several functions in llvm ir file only with declaration with ...
I am writing LLVM IR code, can I call a function in another .ll file? For example: In a.ll file, there is a function foo(); Can I use this function i ...
I am trying to build LLVM from source in FreeBSD 8.4. Here are the steps i carried out Downloaded the source from http://llvm.org/releases/3.8.0/l ...
I'm trying to add LLVM to a cmake project, using cygwin as a compiler. I downloaded LLVM from cygwin's installer (just installed all of the llvm relat ...
How to see the changes made by transformation passes(like dead code elimination) in the c program.Like if I run following command on terminal it creat ...
I have some expression as a=b+c-d*e, and with the help of LLVM pass I want to make a string like this "[Hexadecimal address of 'b'] [opcode of +] [H ...
How can I add my pass before X86 AT&T-Style Assembly Printer pass? I need to change MachineFunction and save changes to the asm file. The problem ...
I'm trying to copy the CFG in function into a new function to do some operations with old one. I used CloneFunctionInto by the following code The e ...
I need to clone a function into another function by CloneFunctionInto in an LLVM function pass, to keep the original control flow graph from any chang ...
Could I insert a new edge by changing its destination, and remove another edge by its source and destination. In other words, could I replace the basi ...
I am writing a new register allocation pass on llvm. I followed the instructions here http://llvm.org/docs/WritingAnLLVMPass.html#the-machinefunctionp ...
I am writing a ModulePass and invoke it using opt -load. I would require that alloca has been promoted to registers when my pass runs, using the -mem2 ...
How to count total number of load instruction on a simple "hello world" program through LLVM ?? ...