Displaying 3 results from an estimated 3 matches for "classllvm_1_1getelementptrinst".
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
2014 Nov 22
2
[LLVMdev] How to get the indices in an getelementptr Value?
...gt; (@globalArg in your example) and idx_begin/idx_end iterators to access
> indexes. You can find a short description of these functions in
> documentation [1], or look at examples of their uses in the code, e.g.
> in lib/Transforms/InstCombine/*.cpp.
>
> [1] http://llvm.org/doxygen/classllvm_1_1GetElementPtrInst.html
>
> Best regards,
> Michael
>
> On Nov 22, 2014, at 12:32 AM, Qiuping Yi <yiqiuping at gmail.com> wrote:
>
> Hi, all
>
> I am a LLVM user. I want to get every element in the next instruction:
>
> %0 = load i32* getelementptr inbounds (%struct.Args* @globa...
2014 Nov 22
3
[LLVMdev] How to get the indices in an getelementptr Value?
..._end iterators to access
> >> indexes. You can find a short description of these functions in
> >> documentation [1], or look at examples of their uses in the code, e.g.
> in
> >> lib/Transforms/InstCombine/*.cpp.
> >>
> >> [1] http://llvm.org/doxygen/classllvm_1_1GetElementPtrInst.html
> >>
> >> Best regards,
> >> Michael
> >>
> >> On Nov 22, 2014, at 12:32 AM, Qiuping Yi <yiqiuping at gmail.com> wrote:
> >>
> >> Hi, all
> >>
> >> I am a LLVM user. I want to get every element in the next i...