Displaying 20 results from an estimated 47 matches for "tmp10".
Did you mean:
tmp1
2007 Jul 23
2
[LLVMdev] LHS of an expression
hello all,
If i have an IR instruction of the form
%tmp10 = call sbyte* %malloc( uint 4 ) ; <sbyte*> [#uses=1]
%tmp10 = cast sbyte* %tmp10 to int* ; <int*> [#uses=1]
store int* %tmp10, int** %t
which is nothin but a malloc call how can i get %tmp into maybe a variable
set.
If i have a store instruction then it is pretty...
2007 Jul 23
2
[LLVMdev] LHS of an expression
...loc inst as well.
bcos i cannot have a different set for only instructions.
can there be some way that i can get only the Value* and not the entire
Instruction* ?
Please help.
Thanks.
Hope my doubt is not that silly..
> Hi Abhinav,
>
>> If i have an IR instruction of the form
>> %tmp10 = call sbyte* %malloc( uint 4 ) ; <sbyte*> [#uses=1]
>> %tmp10 = cast sbyte* %tmp10 to int* ; <int*> [#uses=1]
>> store int* %tmp10, int** %t
>>
>> which is nothin but a malloc call how can i get %tmp into maybe a
>> variable
>> s...
2007 Jul 23
0
[LLVMdev] LHS of an expression
Hi Abhinav,
> If i have an IR instruction of the form
> %tmp10 = call sbyte* %malloc( uint 4 ) ; <sbyte*> [#uses=1]
> %tmp10 = cast sbyte* %tmp10 to int* ; <int*> [#uses=1]
> store int* %tmp10, int** %t
>
> which is nothin but a malloc call how can i get %tmp into maybe a variable
> set.
>
> If i have a sto...
2014 May 22
2
[LLVMdev] RFC: Indexing of structs vs arrays in getelementpointer
...%dm, i1 %tmp4, i64 %tmp9, i64 %tmp19) {
bb:
br i1 %tmp4, label %bb1, label %bb2
bb1: ; preds = %bb5
%tmp10 = getelementptr inbounds %struct2* %dm, i64 %tmp9, i32 0
br label %bb3
bb2: ; preds = %.lr.p...
2007 Jul 24
0
[LLVMdev] LHS of an expression
...Some other instruction's in my list. This is bad!");
}
}
// Process the LHSs vector.
Does this help? Or did I get it wrong? :-)
-bw
> Thanks.
> Hope my doubt is not that silly..
> > Hi Abhinav,
> >
> >> If i have an IR instruction of the form
> >> %tmp10 = call sbyte* %malloc( uint 4 ) ; <sbyte*> [#uses=1]
> >> %tmp10 = cast sbyte* %tmp10 to int* ; <int*> [#uses=1]
> >> store int* %tmp10, int** %t
> >>
> >> which is nothin but a malloc call how can i get %tmp into maybe a
> >...
2011 Feb 22
2
[LLVMdev] Clone a function and change signature
...struct.MT*>
[#uses=1]
call void @MTPoint_DIRECT(%struct.MT* %tmp6, i32* %xx, i32* %yy) nounwind
%tmp8 = load i32* %xx, align 4, !dbg !1026 ; <i32> [#uses=1]
%tmp9 = trunc i32 %tmp8 to i16, !dbg !1026 ; <i16> [#uses=1]
store i16 %tmp9, i16* %x, align 2, !dbg !1026
%tmp10 = load i32* %yy, align 4, !dbg !1027 ; <i32> [#uses=1]
%tmp11 = trunc i32 %tmp10 to i16, !dbg !1027 ; <i16> [#uses=1]
store i16 %tmp11, i16* %y, align 2, !dbg !1027
ret void
return: ; preds = %entry
ret void
}
define internal v...
2015 Jun 11
4
[LLVMdev] Question about NoWrap flag for SCEVAddRecExpr
...nds [1024 x float], [1024 x float]* @y,
> i64 0, i64 %k.01
> %tmp6 = load float, float* %tmp5, align 8, !tbaa !2
> %tmp7 = fadd float %tmp4, %tmp6
> store float %tmp7, float* %tmp3, align 16, !tbaa !2
> %tmp8 = or i64 %k.01, 1
> %tmp9 = shl nsw i64 %tmp8, 1
> %tmp10 = getelementptr inbounds [1024 x float], [1024 x float]*
> @x, i64 0, i64 %tmp9
> %tmp11 = load float, float* %tmp10, align 8, !tbaa !2
> %tmp12 = getelementptr inbounds [1024 x float], [1024 x float]*
> @y, i64 0, i64 %tmp8
> %tmp13 = load float, float* %tmp12, align 4, !tb...
2015 Jun 10
3
[LLVMdev] Question about NoWrap flag for SCEVAddRecExpr
I am testing vectorization on the following test case:
float x[1024], y[1024];
void myloop1() {
for (long int k = 0; k < 512; k++) {
x[2*k] = x[2*k]+y[k];
}
}
Vectorization failed due to "unsafe dependent memory operation". I traced
the LoopAccessAnalysis.cpp and found the reason is the NoWrapFlag for
SCEVAddRecExpr is not set and consequently the
2010 Sep 10
1
[LLVMdev] Missing Optimization Opportunities
...=1]
%tmp6 = and i32 %tmp, -256 ; <i32> [#uses=2]
%tmp7 = icmp eq i32 %tmp6, 168296704 ; <i1> [#uses=1]
%tmp8 = icmp eq i32 %tmp3, 168296448 ; <i1> [#uses=2]
%tmp9 = icmp ne i32 %tmp6, 168296704 ; <i1> [#uses=1]
%tmp10 = and i1 %tmp8, %tmp9 ; <i1> [#uses=1]
%tmp11 = load i32* @src-ip ; <i32> [#uses=1]
%tmp12 = and i32 %tmp11, -16777216 ; <i32> [#uses=1]
%tmp13 = icmp eq i32 %tmp12, 721420288 ; <i1> [#uses=3]
%tmp14 = and...
2014 May 23
2
[LLVMdev] RFC: Indexing of structs vs arrays in getelementpointer
...;
>
>
>
>
>
> %struct1 = type { i32, i32 }
> %struct2 = type { %struct1, %struct1 }
> ; Function Attrs: ssp uwtable
> define i32 @test1(%struct2* %dm, i1 %tmp4, i64 %tmp9, i64 %tmp19) {
> bb:
> br i1 %tmp4, label %bb1, label %bb2
> bb1: ; preds = %bb5
> %tmp10 = getelementptr inbounds %struct2* %dm, i64 %tmp9, i32 0
> br label %bb3
>
> bb2: ; preds = %.lr.ph.i.i
> %tmp20 = getelementptr inbounds %struct2* %dm, i64 %tmp9, i32 1
> br label %bb3
>
> bb3: ; preds = %bb2, %bb1
> %phi = phi %struct1* [ %tmp10, %bb1 ], [ %tmp20, %bb2 ]...
2010 Jan 29
2
[LLVMdev] 64bit MRV problem: { float, float, float} -> { double, float }
...%tmp18.i.i = shl i96 %tmp17.i.i, 32 ; <i96> [#uses=1]
%tmp19.i = zext i96 %tmp18.i.i to i128 ; <i128> [#uses=1]
%tmp8.i = lshr i128 %tmp19.i, 32 ; <i128> [#uses=1]
%tmp9.i = trunc i128 %tmp8.i to i32 ; <i32> [#uses=1]
%tmp10.i = bitcast i32 %tmp9.i to float ; <float> [#uses=1]
store float %2, float* %resX, align 4
store float %tmp10.i, float* %resY, align 4
store float %0, float* %resZ, align 4
ret void
}
llvm-gcc4.2-2.5 generates the following code for the same example:
define void @test(doubl...
2013 Oct 27
2
[LLVMdev] Missed optimization opportunity with piecewise load shift-or'd together?
...= getelementptr inbounds i8* %x_arg, i64 3
%tmp2 = load i8* %tmp1, align 1
%tmp3 = zext i8 %tmp2 to i32
%tmp4 = shl nuw nsw i32 %tmp3, 24
%tmp6 = getelementptr inbounds i8* %x_arg, i64 2
%tmp7 = load i8* %tmp6, align 1
%tmp8 = zext i8 %tmp7 to i32
%tmp9 = shl nuw nsw i32 %tmp8, 16
%tmp10 = or i32 %tmp9, %tmp4
%tmp12 = getelementptr inbounds i8* %x_arg, i64 1
%tmp13 = load i8* %tmp12, align 1
%tmp14 = zext i8 %tmp13 to i32
%tmp15 = shl nuw nsw i32 %tmp14, 8
%tmp16 = or i32 %tmp10, %tmp15
%tmp19 = load i8* %x_arg, align 4
%tmp20 = zext i8 %tmp19 to i32
%tmp21 = or i32...
2008 Jan 06
4
[LLVMdev] Another memory fun
...i32 0, i32 0 ; <i8*> [#uses=2]
store i8 109, i8* %tmp1, align 16
%tmp4 = getelementptr [8 x i8]* %str1, i32 0, i32 1 ; <i8*> [#uses=1]
store i8 111, i8* %tmp4, align 1
%tmp7 = getelementptr [8 x i8]* %str1, i32 0, i32 2 ; <i8*> [#uses=1]
store i8 116, i8* %tmp7, align 1
%tmp10 = getelementptr [8 x i8]* %str1, i32 0, i32 3 ; <i8*> [#uses=1]
store i8 104, i8* %tmp10, align 1
%tmp13 = getelementptr [8 x i8]* %str1, i32 0, i32 4 ; <i8*> [#uses=1]
store i8 101, i8* %tmp13, align 1
%tmp16 = getelementptr [8 x i8]* %str1, i32 0, i32 5 ; <i8*> [#uses=1]...
2010 Jan 29
0
[LLVMdev] 64bit MRV problem: { float, float, float} -> { double, float }
...6 %tmp17.i.i, 32 ; <i96> [#uses=1]
> %tmp19.i = zext i96 %tmp18.i.i to i128 ; <i128> [#uses=1]
> %tmp8.i = lshr i128 %tmp19.i, 32 ; <i128> [#uses=1]
> %tmp9.i = trunc i128 %tmp8.i to i32 ; <i32> [#uses=1]
> %tmp10.i = bitcast i32 %tmp9.i to float ; <float> [#uses=1]
> store float %2, float* %resX, align 4
> store float %tmp10.i, float* %resY, align 4
> store float %0, float* %resZ, align 4
> ret void
> }
Likewise, here it is reasonable to expect the optimizers to be able...
2011 Feb 22
0
[LLVMdev] Clone a function and change signature
...call void @MTPoint_DIRECT(%struct.MT* %tmp6, i32* %xx, i32* %yy)
> nounwind
> %tmp8 = load i32* %xx, align 4, !dbg !1026 ; <i32> [#uses=1]
> %tmp9 = trunc i32 %tmp8 to i16, !dbg !1026 ; <i16> [#uses=1]
> store i16 %tmp9, i16* %x, align 2, !dbg !1026
> %tmp10 = load i32* %yy, align 4, !dbg !1027 ; <i32> [#uses=1]
> %tmp11 = trunc i32 %tmp10 to i16, !dbg !1027 ; <i16> [#uses=1]
> store i16 %tmp11, i16* %y, align 2, !dbg !1027
> ret void
>
> return: ; preds = %entry
> r...
2014 May 22
4
[LLVMdev] RFC: Indexing of structs vs arrays in getelementpointer
...i32, i32 }
bb1:
%tmp10 = getelementptr inbounds %struct2* %tmp1, i64 %tmp9
br label %bb3
bb2:...
2008 Jan 12
1
[LLVMdev] Labels
...ytextlen = global i32 0
@yytext = global i8* null
@yylimit = global i32 0
@yypos = global i32 0
@yybuflen = global i32 0
@stdin = external global %struct._IO_FILE*
@yy = weak global i32 0
define i32 @yyrefill()
{
entry:
%tmp842 = load i32* @yybuflen, align 4
%tmp943 = load i32* @yypos, align 4
%tmp1044 = sub i32 %tmp842, %tmp943
%tmp1145 = icmp slt i32 %tmp1044, 512
br i1 %tmp1145, label %bb, label %bb13
bb:
%tmp2.rle = phi i32 [ %tmp842, %entry ], [ %tmp8, %bb ]
%tmp3 = shl i32 %tmp2.rle, 1
store i32 %tmp3, i32* @yybuflen, align 4
%tmp5 = load i8** @yybuf, align 4
%tmp6 = tail call i8*...
2008 Feb 10
2
[LLVMdev] Instrumenting virtual function calls
...constant2 ; <
%"struct.Q::BinaryOperation<bool,bool,bool,Q::AddOperator>"*> [#uses=2]
%tmp9.i = getelementptr
%"struct.Q::BinaryOperation<bool,bool,bool,Q::AddOperator>"* %this,
i32 0, i32 2, i32 0 ; <%"struct.Q::Function"**> [#uses=1]
%tmp10.i = load %"struct.Q::Function"** %tmp9.i, align 4 ; <
%"struct.Q::Function"*> [#uses=2]
%tmp17.i = getelementptr
%"struct.Q::BinaryOperation<bool,bool,bool,Q::AddOperator>"* %this,
i32 0, i32 1, i32 0 ; <%"struct.Q::Function"**> [#us...
2013 Nov 08
3
[LLVMdev] Loads moving across barriers
...ace(1)* %arrayidx3, align 8
store <2 x float> %tmp4, <2 x float> addrspace(3)* %arrayidx, align 8
tail call void @__amdil_barrier_local() #0
%cmp = icmp ult i32 %1, 5
br i1 %cmp, label %if.then, label %if.end
if.then: ; preds = %entry
%tmp10 = load <2 x float> addrspace(3)* %arrayidx, align 8
%tmp16 = mul i32 %1, 2
%arrayidx17 = getelementptr <2 x float> addrspace(3)* %data0, i32 %tmp16
store <2 x float> %tmp10, <2 x float> addrspace(3)* %arrayidx17, align 8
br label %if.end
if.end:...
2011 Jul 06
1
[LLVMdev] Error on using DataStructureAnalysis
...ction is:
define linkonce_odr void @_ZN9__gnu_cxx13new_allocatorIjE9constructEPjRKj(%"class.__gnu_cxx::new_allocator"* %this, i32* %__p, i32* %__val) align 2
The callsite is:
call void @_ZN9__gnu_cxx13new_allocatorIjE9constructEPjRKj(%"class.__gnu_cxx::new_allocator"* %3, i32* %tmp10, i32* %tmp11)
Does anybody have a clue what could be wrong or what has to be checked
before executing?
Best
Andreas