Displaying 3 results from an estimated 3 matches for "globalarg".
2014 Nov 22
3
[LLVMdev] How to get the indices in an getelementptr Value?
...iuping at gmail.com> wrote:
> > Hi Michael,
> >
> > Thank you very much.
> >
> > But idx_begin/idx_end iterators can only be used through a getelementptr
> > instruction, right? However, I think value "i32* getelementptr inbounds
> > (%struct.Args* @globalArg, i64 0, i32 2)" itself is not a getelementptr
> > instruction, so? Or could you tell me how can I get a getelementptr
> > instruction first from this value?
> >
> >
> > --------------------------------------------
> > Qiuping Yi
> > Institute Of Softwa...
2014 Nov 22
2
[LLVMdev] How to get the indices in an getelementptr Value?
Hi, all
I am a LLVM user. I want to get every element in the next instruction:
%0 = load i32* getelementptr inbounds (%struct.Args* @globalArg, i64 0, i32
2), align 4, !dbg !85, !clap !86
Now I can only get value "i32* getelementptr inbounds (%struct.Args*
@globalArg, i64 0, i32 2)" through "getOperand(0)",
but I can not get "%struct.Args* @globalArg", "i64 0", and "i32 2" in this
instruc...
2014 Nov 22
2
[LLVMdev] How to get the indices in an getelementptr Value?
Hi Michael,
Thank you very much.
But idx_begin/idx_end iterators can only be used through a getelementptr
instruction, right? However, I think value "i32* getelementptr inbounds
(%struct.Args* @globalArg, i64 0, i32 2)" itself is not a getelementptr
instruction, so? Or could you tell me how can I get a getelementptr
instruction first from this value?
--------------------------------------------
Qiuping Yi
Institute Of Software
Chinese Academy of Sciences
On Sat, Nov 22, 2014 at 4:49 PM, Mic...