Displaying 4 results from an estimated 4 matches for "getelemetptr".
Did you mean:
getelementptr
2011 Aug 27
4
[LLVMdev] How to break/iterate over nested instructions.
Hi Duncan,
Why to break?
I wish to analyse all the operands of getelemetptr instructions. For which I
iterate over the code and get the instruction of interest by
getopcode == getelementptr. But the getelementptrs in this form as in my
last mail are getting away from my pass. So i wish to break it. I have a
work around if breaking is not possible, but I think it may be a c...
2011 Aug 28
0
[LLVMdev] How to break/iterate over nested instructions.
...bounds (which were relatively few in real programs). That's
something I'll have to fix when I reintroduce BreakConstantGEPs into
mainline SAFECode.
:)
-- John T.
On 8/27/2011 2:31 PM, Manish Gupta wrote:
> Hi Duncan,
>
> Why to break?
> I wish to analyse all the operands of getelemetptr instructions. For
> which I iterate over the code and get the instruction of interest by
> getopcode == getelementptr. But the getelementptrs in this form as in
> my last mail are getting away from my pass. So i wish to break it. I
> have a work around if breaking is not possible, bu...
2011 Aug 27
0
[LLVMdev] How to break/iterate over nested instructions.
Hi Manish,
> I wish to iterate over all instructions (where opCode == desired_opCode). I
> could iterate over all the instruction expect the nested instructions like:
>
> %add.ptr229 = getelementptr inbounds i8* getelementptr inbounds ([4096 x i8]*
> @_Func1, i32 0, i32 0), i64 %idx.ext228
this is not a nested instruction. The inner getelementptr is a ConstantExpr
(a constant)
2011 Aug 27
2
[LLVMdev] How to break/iterate over nested instructions.
Dear All,
I wish to iterate over all instructions (where opCode == desired_opCode). I
could iterate over all the instruction expect the nested instructions like:
%add.ptr229 = getelementptr inbounds i8* getelementptr inbounds ([4096 x
i8]* @_Func1, i32 0, i32 0), i64 %idx.ext228
I wish to break this nested instruction in two instructions. Please let me
know if there is already existing method