search for: call11

Displaying 4 results from an estimated 4 matches for "call11".

Did you mean: call1
2015 Nov 13
5
How to efficiently extract the calledFunction from a complex CallInst?
Hi all, Usually if we want to get the called Function we can directly use CallInst->getCalledFunction(), however, today i encounter an unusual CallInst as follows: %call11 = call double (...)* bitcast (double ()* @quantum_frand to double (...)*)() the original C source involve type cast: float u,v; extern double quantum_frand(); u = 2 * quantum_frand() - 1; v = 2 * quantum_frand() - 1; In this case, CallInst->getCalledFunction() returns a nullptr unusuall...
2011 Dec 14
0
[LLVMdev] Help with hazards
...00000 br i1 %exitcond, label %for.end9, label %for.cond2.preheader for.end9: ; preds = %for.end %call10 = tail call i32 @clock() nounwind %sub = sub nsw i32 %call10, %call1 %conv = sitofp i32 %sub to double %div = fdiv double %conv, 1.000000e+06 %call11 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([14 x i8]* @.str1, i32 0, i32 0), double %div) nounwind %call12 = tail call i32 bitcast (i32 (...)* @check to i32 (i32)*)(i32 1) nounwind ret i32 0 } declare i32 @init(...) declare i32 @clock() nounwind declare i32 @dummy(double...
2012 Dec 25
2
[LLVMdev] [DragonEgg] Strange call to @"\01__isoc99_fscanf"
...c: ; preds = %for.body %13 = load i32* %i, align 4 %inc = add nsw i32 %13, 1 store i32 %inc, i32* %i, align 4 br label %for.cond for.end: ; preds = %for.cond %14 = load %struct._IO_FILE** %wfile, align 8 %call11 = call i32 @fclose(%struct._IO_FILE* %14) %15 = load i8** @filename, align 8 %call12 = call %struct._IO_FILE* @fopen(i8* %15, i8* getelementptr inbounds ([2 x i8]* @.str6, i32 0, i32 0)) store %struct._IO_FILE* %call12, %struct._IO_FILE** %rfile, align 8 %16 = load %struct._IO_FILE** %rfile...
2013 Feb 14
1
[LLVMdev] LiveIntervals analysis problem
...%incdec.ptr.7.i.i228 = getelementptr inbounds i16* %b, i32 8 %56 = load i16* %incdec.ptr.7.i.i228, align 2, !tbaa !5 %phitmp.i229 = icmp eq i16 %56, 0 br i1 %phitmp.i229, label %land.lhs.true10, label %if.end14 land.lhs.true10: ; preds = %for.inc.7.i.i230 %call11 = call fastcc i32 @ecmp(i16* %a, i16* getelementptr inbounds ([10 x i16]* @ezero, i32 0, i32 0)) %cmp12 = icmp eq i32 %call11, 0 br i1 %cmp12, label %if.then13, label %if.end14 if.then13: ; preds = %land.lhs.true10, %land.lhs.true %incdec.ptr42.i = gete...