search for: coolhersh

Displaying 5 results from an estimated 5 matches for "coolhersh".

2010 Jan 31
2
[LLVMdev] Segmentation Fault
Hello, I am learning to write passes in LLVM and currently using LLVM 2.6. I followed the steps mentioned to write the helloworld pass and when i run it using opt, I get a Seg Fault. Not able to figure out why this is happening. It would be great if someone can point out where I am going wrong. Thanks. Hersh. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2010 Jan 31
0
[LLVMdev] Segmentation Fault
May be you need to debug your code and see. Rajika On Sun, Jan 31, 2010 at 9:48 AM, Hersh.S. Iyer <coolhersh at gmail.com> wrote: > Hello, > > I am learning to write passes in LLVM and currently using LLVM 2.6. I > followed the steps mentioned to write the helloworld pass and when i run it > using opt, I get a Seg Fault. Not able to figure out why this is happening. > It would be gre...
2009 Nov 16
1
[LLVMdev] extracting data and operands
Hi, I wish to implement dead code elimination as a pass in llvm. This is not the same as unreachable block. For this, I plan to go ahead like this : In each function Identify the store and branch operations Identify the operands involved in these operations. Build the UD chain of these and check if there is any variable that is not used and mark its definition (the entire instruction)
2009 Nov 14
4
[LLVMdev] CFG using LLVM
Hi, I am a new user of LLVM. I am using it as the IR for a compiler for a subset of LUA. I have the .ll file ready and it executes fine when passed to the llvm interpreter. Now, I wish to perform a few optimizations to the code starting with dead code elimination. For this I would need the CFG. I am very new to all of this stuff. Please help me out guys. The way I want to proceed is to start at
2009 Nov 16
1
[LLVMdev] CFG using LLVM
I used successors to find the basic blocks that can be visited and those that cannot be reached. My pass just prints out those blocks which can be reached. The problem is that I want to include this in my compiler code rather than as a separate .cpp file which will perform the pass when I use 'opt'. I have seen that there is something called a PassManager class. Will this help me any way ?