search for: calledfunct

Displaying 6 results from an estimated 6 matches for "calledfunct".

Did you mean: calledfunc
2004 Nov 18
3
[LLVMdev] A few beginner level questions..
...application , for every instruction if its a call instruction I try to print out the called function as below .. void pass01a::instruct_show(Instruction* I){ if ( isa<CallInst>(*I) ){ const CallInst *CI = cast<CallInst>(I); const Function *Func = CI->getCalledFunction() ; std::cerr<<":calledFunction:"<<Func->getName(); } } Now it works fine for some application but for one of the benchmark in MIBENCH , i am getting the following error .. ++++++++++++++++++++++++ :calledFunction:opt((anonymous namespace)::PrintStackTrace()+...
2004 Nov 18
0
[LLVMdev] A few beginner level questions..
...ction if its a call > instruction I try to print out the called function as below .. > > void pass01a::instruct_show(Instruction* I){ > if ( isa<CallInst>(*I) ){ > const CallInst *CI = cast<CallInst>(I); > const Function *Func = CI->getCalledFunction() ; > std::cerr<<":calledFunction:"<<Func->getName(); > } > } > > Now it works fine for some application but for one of the benchmark in > MIBENCH , i am getting the following error .. > > ++++++++++++++++++++++++ > :calledFunction:...
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;...
2016 Jan 19
2
Why getFunction() of CallGraphNode return NULL function?
Hi all, I want to find all the called functions in each function, thus I iterate the calledFunctions of each CallGraphNode in CallGraph as follow: for (CallGraph::iterator it = CG->begin(); it != CG->end(); ++it) { CallGraphNode* node = it->second; for (CallGraphNode::iterator it2 = node->begin(); it2 != node->end(); ++it2) { Function* calledFunc = it2->second=&g...
2016 Jan 20
2
Why getFunction() of CallGraphNode return NULL function?
...*Sent:* Tuesday, January 19, 2016 5:35 PM > *To:* llvm-dev at lists.llvm.org > *Subject:* [llvm-dev] Why getFunction() of CallGraphNode return NULL > function? > > > > Hi all, > > > > I want to find all the called functions in each function, thus I iterate > the calledFunctions of each CallGraphNode in CallGraph as follow: > > > > for (CallGraph::iterator it = CG->begin(); it != CG->end(); ++it) { > > CallGraphNode* node = it->second; > > for (CallGraphNode::iterator it2 = node->begin(); it2 != node->end(); > ++it2) { &g...
2016 Jan 20
2
Why getFunction() of CallGraphNode return NULL function?
...*Sent:* Tuesday, January 19, 2016 5:35 PM > *To:* llvm-dev at lists.llvm.org > *Subject:* [llvm-dev] Why getFunction() of CallGraphNode return NULL > function? > > > > Hi all, > > > > I want to find all the called functions in each function, thus I iterate > the calledFunctions of each CallGraphNode in CallGraph as follow: > > > > for (CallGraph::iterator it = CG->begin(); it != CG->end(); ++it) { > > CallGraphNode* node = it->second; > > for (CallGraphNode::iterator it2 = node->begin(); it2 != node->end(); > ++it2) { &g...