Displaying 4 results from an estimated 4 matches for "isusedexternally".
2007 Jul 12
2
[LLVMdev] BasicCallGraph patch
...ude "llvm/Analysis/CallGraph.h"
+#include "llvm/Constants.h"
#include "llvm/Module.h"
#include "llvm/Instructions.h"
#include "llvm/Support/CallSite.h"
@@ -150,6 +151,19 @@
->addCalledFunction(CS, Node);
else
isUsedExternally = true;
+ } else if (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(...
2007 Jul 17
0
[LLVMdev] BasicCallGraph patch
...ot;
> +#include "llvm/Constants.h"
> # include "llvm/Module.h"
> # include "llvm/Instructions.h"
> # include "llvm/Support/CallSite.h"
> @@ -150,6 +151,19 @@
> -> addCalledFunction(CS, Node);
> else
> isUsedExternally = true;
> + } else if (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)) {
> + Cal...
2007 Jul 17
2
[LLVMdev] BasicCallGraph patch
...ants.h"
> > # include "llvm/Module.h"
> > # include "llvm/Instructions.h"
> > # include "llvm/Support/CallSite.h"
> > @@ -150,6 +151,19 @@
> > -> addCalledFunction(CS, Node);
> > else
> > isUsedExternally = true;
> > + } else if (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)...
2007 Jul 17
0
[LLVMdev] BasicCallGraph patch
...> # include "llvm/Module.h"
>> > # include "llvm/Instructions.h"
>> > # include "llvm/Support/CallSite.h"
>> > @@ -150,6 +151,19 @@
>> > -> addCalledFunction(CS, Node);
>> > else
>> > isUsedExternally = true;
>> > + } else if (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_ca...