search for: call6

Displaying 11 results from an estimated 11 matches for "call6".

Did you mean: call
2012 Apr 01
1
[LLVMdev] Create Instruction
Hi! I've have Instruction in my code: ... %call6 = call i32 %9(%class.A* %call3, i32 2) ... And I want to get something like this: ... %11 = icmp eq i32 (%class.D*, i32)* %10, @_ZThn4_N1D1xEi br i1 %11, label %12, label %14 ; <label>:12 ; preds = %7 %13 = bitcast %class.A* %call3 to %class.D*...
2012 Mar 29
1
[LLVMdev] Problem recognizing nested select operations
...s = %entry %cmp1 = icmp slt i32 %0, 0 %cond = select i1 %cmp1, i32 0, i32 %0 br label %cond.end4 cond.end4: ; preds = %cond.false, %entry %cond5 = phi i32 [ 255, %entry ], [ %cond, %cond.false ] store i32 %cond5, i32* %a, align 4, !tbaa !0 %call6 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([7 x i8]* @.str1, i32 0, i32 0), i32 %cond5) nounwind ret i32 0 } -------------------------- snip ------------------------------ But the following output is much more efficient in this case: -------------------------- snip ------------...
2016 Jan 28
2
Find the instructions where a particular value is defined
...; preds = %if.end, %if.then 77 %2 = load i32, i32* %a, align 4 78 %call5 = call dereferenceable(272) %"class.std::basic_ostream"* @_ZNSolsEi(%"class.std::basic_ostream"* @_ZSt4cout, i32 %2) 79 %3 = load i32, i32* %b, align 4 80 %call6 = call dereferenceable(272) %"class.std::basic_ostream"* @_ZNSolsEi(%"class.std::basic_ostream"* %call5, i32 %3) 81 ret i32 0 at line 79 of the IR, I have found %b. Now I would like to find lines 61 and 70 where %b has been assigned with some values using store instruction....
2015 Aug 21
2
The semantics of the fptrunc instruction with an example of incorrect optimisation
...LVM IR reveals why ``` define i32 @main() #0 { entry: %call = tail call i32 @fesetround(i32 0) #2 %call2 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), double 0x3FD3333340000000) #2 %call3 = tail call i32 @fesetround(i32 2048) #2 %call6 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 0x3FD3333340000000) #2 %call7 = tail call i32 @fesetround(i32 1024) #2 %call10 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0,...
2014 Jan 14
2
[LLVMdev] Question About the LLVM IR unnamed values!
...intf(i8* getelementptr inbounds ([14 x i8]* @.str, i32 0, i32 0), i32* %a) %call4 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([14 x i8]* @.str1, i32 0, i32 0), i32* %b) %call5 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([14 x i8]* @.str2, i32 0, i32 0), i32* %e) %call6 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([14 x i8]* @.str, i32 0, i32 0), i32* %d) %call7 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([14 x i8]* @.str, i32 0, i32 0), i32* %g) %call8 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([14 x i8]* @.str, i3...
2016 Jan 28
2
Find the instructions where a particular value is defined
Sorry, I should ask the following: finds all the instructions of a function where a particular variable is defined? Lets consider the following code snippet: 1. void foo(){ 2. int a, b; 3. if(a > 10) 4. b = 10; 5. if(a<10) 6. b = 5; 7. cout << b; 8. } I would like to know the instructions where variable b can be be defined, i.e, in this case, the instructions 4 and 6. On Wed,
2011 Dec 14
0
[LLVMdev] Help with hazards
...@X, i32 0, i32 %inc.1429 store double %add.15, double* %arrayidx5.15, align 8, !tbaa !0 %inc.15 = add nsw i32 %i.013, 16 %exitcond.15 = icmp eq i32 %inc.15, 16000 br i1 %exitcond.15, label %for.end, label %for.body4 for.end: ; preds = %for.body4 %call6 = tail call i32 @dummy(double* getelementptr inbounds ([16000 x double]* @X, i32 0, i32 0), double* getelementptr inbounds ([16000 x double]* @Y, i32 0, i32 0), double* getelementptr inbounds ([16000 x double]* @Z, i32 0, i32 0), double* getelementptr inbounds ([16000 x double]* @U, i32 0, i32 0),...
2019 Aug 05
2
LLVM crashing while trying to build SPEC with Clang
Hello, I am building the SPEC 2006 Benchmark with Clang as the compiler. I have written a function pass in LLVM and I am trying to run that for SPEC by invoking the pass in the build options of SPEC. The build options of SPEC are in a *.cfg config file, which allows us to specify the choice of compiler while building SPEC. (https://www.spec.org/cpu2006/Docs/install-guide-unix.html) The pass
2012 Dec 25
2
[LLVMdev] [DragonEgg] Strange call to @"\01__isoc99_fscanf"
...%6 = load %struct._IO_FILE** %wfile, align 8 %tobool = icmp ne %struct._IO_FILE* %6, null br i1 %tobool, label %if.end7, label %if.then5 if.then5: ; preds = %if.end %7 = load %struct._IO_FILE** @stderr, align 8 %8 = load i8** @filename, align 8 %call6 = call i32 (%struct._IO_FILE*, i8*, ...)* @fprintf(%struct._IO_FILE* %7, i8* getelementptr inbounds ([28 x i8]* @.str4, i32 0, i32 0), i8* %8) store i32 1, i32* %retval br label %return if.end7: ; preds = %if.end store i32 0, i32* %i, align 4 br lab...
2018 Aug 23
2
[RFC] "Properly" Derive Function/Argument/Parameter Attributes
...@internal_ret1_rw(i32* %r1, i32* %w0) %call2 = call i32* @internal_ret0_nw(i32* %r0, i32* %w0) %call3 = call i32* @internal_ret0_nw(i32* %w0, i32* %w0) %call4 = call i32* @external_ret2_nrw(i32* %r0, i32* %r1, i32* %w0) %call5 = call i32* @external_ret2_nrw(i32* %r1, i32* %r0, i32* %w0) %call6 = call i32* @external_sink_ret2_nrw(i32* %r0, i32* %r1, i32* %w0) %call7 = call i32* @external_sink_ret2_nrw(i32* %r1, i32* %r0, i32* %w0) %call8 = call i32* @internal_ret0_nw(i32* %r1, i32* %w0) br label %return return: ; preds = %if.end, %if.then...
2013 Feb 14
1
[LLVMdev] LiveIntervals analysis problem
...lign 2, !tbaa !5 %7 = load i16* %pe, align 2, !tbaa !5 store i16 %7, i16* %incdec.ptr.4.i, align 2, !tbaa !5 %call = call fastcc i32 @eshift(i16* %arraydecay, i32 -5) br i1 %denorm.0, label %if.then60, label %if.end74 if.then60: ; preds = %if.end48 %call62 = call fastcc i32 @enormlz(i16* %arraydecay) %cmp63 = icmp sgt i32 %call62, 144 br i1 %cmp63, label %if.then65, label %if.else if.then65: ; preds = %if.then60 store i16 0, i16* %incdec.ptr.i, align 2, !tbaa !5 store i16 0, i16* %incdec.ptr.1.i, align...