search for: glob_var

Displaying 2 results from an estimated 2 matches for "glob_var".

Did you mean: global_var
2008 Jan 14
0
[LLVMdev] Extraction of constant operands from the instruction
...a numerical value, it does not displays any value at all, i checked using the hasName() method, for the constant operands the hasName() returns 0. Is there anyway I can display/extract these constant values from the instruction ? Another question: For and example IR like below, %tmp6 = load i32* @glob_var, align 4 ; <i32> [#uses=1] How can i extract the name of the instruction i.e. %tmp6 Regards Prabhat -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080114/1edcf234/attachment.html>
2008 Jan 04
0
[LLVMdev] Extraction of Arguments Passed to a Function
...8* %tmp noalias , i32 %tmp1 ) ; <i32> [#uses=0] %tmp3 = load i32* %i, align 4 ; <i32> [#uses=1] %tmp4 = add i32 %tmp3, 1 ; <i32> [#uses=1] store i32 %tmp4, i32* %i, align 4 br label %bb5 bb5: ; preds = %bb, %entry %tmp6 = load i32* @glob_var, align 4 ; <i32> [#uses=1] %tmp7 = load i32* %limit_addr, align 4 ; <i32> [#uses=1] %tmp8 = add i32 %tmp7, %tmp6 ; <i32> [#uses=1] %tmp9 = load i32* %i, align 4 ; <i32> [#uses=1] %tmp10 = icmp sge i32 %tmp8, %tmp9 ; <i1&g...