Displaying 4 results from an estimated 4 matches for "isonlyadirectcall".
2007 Jul 12
2
[LLVMdev] BasicCallGraph patch
...f (ConstantExpr* CE = dyn_cast<ConstantExpr>(*I)) {
+ for (Value::use_iterator I = CE->use_begin(), E = CE->use_end();
+ I != E; ++I)
+ if (Instruction* Inst = dyn_cast<Instruction>(*I)) {
+ CallSite CS = CallSite::get(Inst);
+ if (isOnlyADirectCall(F, CS))
+ getOrInsertFunction(Inst->getParent()->getParent())
+ ->addCalledFunction(CS, Node);
+ else
+ isUsedExternally = true;
+ } else {
+ isUsedExternally = true;
+ }
} else if (GlobalValue *GV = dy...
2007 Jul 17
0
[LLVMdev] BasicCallGraph patch
..._cast<ConstantExpr>(*I)) {
> + for (Value::use_iterator I = CE->use_begin(), E = CE->use_end();
> + I != E; ++I)
> + if (Instruction* Inst = dyn_cast<Instruction>(*I)) {
> + CallSite CS = CallSite::get(Inst);
> + if (isOnlyADirectCall(F, CS))
> + getOrInsertFunction(Inst->getParent()->getParent())
> + ->addCalledFunction(CS, Node);
> + else
> + isUsedExternally = true;
> + } else {
> + isUsedExternally = true;
> + }
>...
2007 Jul 17
2
[LLVMdev] BasicCallGraph patch
...{
> > + for (Value::use_iterator I = CE->use_begin(), E =
> CE->use_end();
> > + I != E; ++I)
> > + if (Instruction* Inst = dyn_cast<Instruction>(*I)) {
> > + CallSite CS = CallSite::get(Inst);
> > + if (isOnlyADirectCall(F, CS))
> > + getOrInsertFunction(Inst->getParent()->getParent())
> > + ->addCalledFunction(CS, Node);
> > + else
> > + isUsedExternally = true;
> > + } else {
> > + isUsedExternally...
2007 Jul 17
0
[LLVMdev] BasicCallGraph patch
...(Value::use_iterator I = CE->use_begin(), E =
>> CE->use_end();
>> > + I != E; ++I)
>> > + if (Instruction* Inst = dyn_cast<Instruction>(*I)) {
>> > + CallSite CS = CallSite::get(Inst);
>> > + if (isOnlyADirectCall(F, CS))
>> > + getOrInsertFunction(Inst->getParent()->getParent())
>> > + ->addCalledFunction(CS, Node);
>> > + else
>> > + isUsedExternally = true;
>> > + } else {
>> >...