Displaying 3 results from an estimated 3 matches for "tmp125".
Did you mean:
tmp12
2011 Feb 24
2
[LLVMdev] Get Element Ptr inst
Given 2 GEPs as follows,
%tmp124 = getelementptr inbounds %struct.termbox* %termptr.1, i32 0, i32 5,
!dbg !1051 ; <[2 x i16]*> [#uses=1]
%tmp125 = getelementptr inbounds [2 x i16]* %tmp124, i64 0, i64 0, !dbg
!1051 ; <i16*> [#uses=1]
can I replace the 2nd one with
%tmp126 = getelementptr inbounds %struct.termbox* %termptr.1, i32 0, i32 5,
i64 0, i64 0 ; <i16*>
When I try to create this instruction i get the follwoing error,...
2011 Feb 24
0
[LLVMdev] Get Element Ptr inst
On 2/24/11 10:39 AM, Arushi Aggarwal wrote:
> Given 2 GEPs as follows,
>
> %tmp124 = getelementptr inbounds %struct.termbox* %termptr.1, i32 0,
> i32 5, !dbg !1051 ; <[2 x i16]*> [#uses=1]
> %tmp125 = getelementptr inbounds [2 x i16]* %tmp124, i64 0, i64 0,
> !dbg !1051 ; <i16*> [#uses=1]
>
> can I replace the 2nd one with
>
> %tmp126 = getelementptr inbounds %struct.termbox* %termptr.1, i32 0,
> i32 5, i64 0, i64 0 ; <i16*>
You should double-check the LangRef...
2011 Feb 24
1
[LLVMdev] Get Element Ptr inst
..., John Criswell <criswell at illinois.edu>wrote:
> On 2/24/11 10:39 AM, Arushi Aggarwal wrote:
>
>> Given 2 GEPs as follows,
>>
>> %tmp124 = getelementptr inbounds %struct.termbox* %termptr.1, i32 0, i32
>> 5, !dbg !1051 ; <[2 x i16]*> [#uses=1]
>> %tmp125 = getelementptr inbounds [2 x i16]* %tmp124, i64 0, i64 0, !dbg
>> !1051 ; <i16*> [#uses=1]
>>
>> can I replace the 2nd one with
>>
>> %tmp126 = getelementptr inbounds %struct.termbox* %termptr.1, i32 0, i32
>> 5, i64 0, i64 0 ; <i16*>
>>
>
&...