search for: rahulgoyal34

Displaying 4 results from an estimated 4 matches for "rahulgoyal34".

2010 Jun 03
3
[LLVMdev] Distinguish Global variables from functions
Hey all... I was writing a Function pass to print all the functions using runonFunction() method .but it is printing one global variable "x" at the same time which i just dont know how is getting there.how can i avoid "x" from printing?? . Here is the framgment of code of my pass namespace { // Hello - The first implementation, without getAnalysisUsage. struct Test2 :
2010 Jun 03
0
[LLVMdev] Distinguish Global variables from functions
hii Please find attached herewith the "hello.cpp" file. also one interesting point is that if i declare the global variable "x" after any function declaration then it is not printed . Rahul On Thu, Jun 3, 2010 at 11:14 PM, RAHUL GOYAL <rahulgoyal34 at gmail.com> wrote: > Hey all... > > I was writing a Function pass to print all the functions using > runonFunction() method .but it is printing one global variable "x" at the > same time which i just dont know how is getting there.how can i avoid "x" > f...
2010 Jun 03
2
[LLVMdev] Getting rid of the dangling names of functions
Hi all, I am a beginner in llvm trying to write some basic passes like printing the name of all the functions in "Hello.cpp" file attached underneath. Also find attached "hello.cpp" on which i am testing the pass .When i run the command: "opt -load $HOME/llvm/src/Debug/lib/TEMP.so -hello < hello.bc > /dev/null" .The output shown is Hello: _GLOBAL__I_x Hello:
2010 Jun 23
1
[LLVMdev] LLVM help
Sir I am trying to get the constant 2 in instruction y=x+2; Its intermediate representaton is like %y=add nsw i32 %x , 2 If I use getOperand(2).getName() then I get null string. How can I get the value 2 ? Regards Rahul Goyal -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100623/21222621/attachment.html>