search for: getontheflypass

Displaying 10 results from an estimated 10 matches for "getontheflypass".

2008 Dec 02
2
[LLVMdev] Error when using getAnalysis
...mp;& "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed. If I remove the addRequired from getAnalysisUsage, I get this error: opt: /x/jeffhao/llvm/llvm-2.4/lib/VMCore/PassManager.cpp:1440: virtual llvm::Pass* llvm::MPPassManager::getOnTheFlyPass(llvm::Pass*, const llvm::PassInfo*, llvm::Function&): Assertion `FPP && "Unable to find on the fly pass"' failed. What else needs to be added to make the code run? Jeff On Mon, 1 Dec 2008 09:38:26 -0600, John Criswell <criswell at cs.uiuc.edu> wrote: > nitisha...
2011 Oct 25
1
[LLVMdev] Using a FunctionPass inside a CallGraphSCCPass
...minatorTree-Information-required-in-CallGraphPass-td 21968640.html I tried this but to get analysis passes on the fly I need to use FunctionPassManagerImpl in CallGraphSCCPass.cpp which I cannot because it is not part of any header file. I tried using FunctionPassManager but it does not implement getOnTheFlyPass() required by getAnalysis(). I also tried putting CGPassManager in PassManager.cpp (and therefore in libLLVMCore.a ?) but the build failed due to a cyclic dependency between libLLVMCore.a, libLLVMAnalysis.a and libLLVMipa.a. Any pointers to resolving this would be greatly appreciated. Thanks in a...
2008 Dec 02
0
[LLVMdev] Error when using getAnalysis
...) called on an analysis that was not " > "'required' by pass!"' failed. > > If I remove the addRequired from getAnalysisUsage, I get this error: > > opt: /x/jeffhao/llvm/llvm-2.4/lib/VMCore/PassManager.cpp:1440: virtual > llvm::Pass* llvm::MPPassManager::getOnTheFlyPass(llvm::Pass*, const > llvm::PassInfo*, llvm::Function&): Assertion `FPP && "Unable to find > on the > fly pass"' failed. > > What else needs to be added to make the code run? Is it possible for you to provide a reproducible test case to help us understan...
2008 Dec 02
1
[LLVMdev] Error when using getAnalysis
...that was not " >> "'required' by pass!"' failed. >> >> If I remove the addRequired from getAnalysisUsage, I get this error: >> >> opt: /x/jeffhao/llvm/llvm-2.4/lib/VMCore/PassManager.cpp:1440: virtual >> llvm::Pass* llvm::MPPassManager::getOnTheFlyPass(llvm::Pass*, const >> llvm::PassInfo*, llvm::Function&): Assertion `FPP && "Unable to find >> on the >> fly pass"' failed. >> >> What else needs to be added to make the code run? > > Is it possible for you to provide a reproducible te...
2011 Oct 15
1
[LLVMdev] pass utilizing MemoryDependenceAnalysis?
This gives me: Assertion failed: (0 && "Unable to find on the fly pass"), function getOnTheFlyPass, file PassManager.cpp #include "llvm/Module.h" #include "llvm/Analysis/MemoryDependenceAnalysis.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; struct Hello: public FunctionPass { public: static char ID; Hello(): FunctionPass(ID) { ;; } virtu...
2007 Apr 25
2
[LLVMdev] ModulePass that requires FunctionPass
...ssInfo const*)+0x26)[0x85cc88a] opt(llvm::PMDataManager::findAnalysisPass(llvm::PassInfo const*, bool)+0xb7)[0x85cc827] opt(llvm::PMDataManager::initializeAnalysisImpl(llvm::Pass*)+0x96)[0x85cd39e] opt(llvm::FPPassManager::runOnFunction(llvm::Function&)+0xff)[0x85ce667] opt(llvm::MPPassManager::getOnTheFlyPass(llvm::Pass*, llvm::PassInfo const*, llvm::Function&)+0x62)[0x85ce85e] opt(llvm::AnalysisResolver::findImplPass(llvm::Pass*, llvm::PassInfo const*, llvm::Function&)+0x33)[0x85cbc39] /home/zhiruz/AutoESL/AutoPilot/trunk/build/obj-Linux-x86-g++/Debug/lib/libLLVMHello.so(llvm::LoopInfo& llv...
2008 Dec 01
0
[LLVMdev] Error when using getAnalysis
nitisha warkari wrote: > Hi, > > I'm trying to use the function getAnalysis. This is the code I'm using : > > void getAnalysisUsage(AnalysisUsage &AU) const { > AU.addRequired<LoopInfo>(); > AU.setPreservesAll(); > } > > virtual bool runOnModule(Module &M) { > LoopInfo &LI = getAnalysis<LoopInfo>(); > >
2008 Nov 30
3
[LLVMdev] Error when using getAnalysis
Hi, I'm trying to use the function getAnalysis. This is the code I'm using : void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<LoopInfo>(); AU.setPreservesAll(); } virtual bool runOnModule(Module &M) { LoopInfo &LI = getAnalysis<LoopInfo>(); } I get following error when I try to run my pass : opt:
2011 Oct 14
0
[LLVMdev] pass utilizing MemoryDependenceAnalysis?
In runOnFunction(), you should check to see if the function F is a declaration before calling getAnalysis(F). Calling getAnalysis<FunctionPass>() on a function that is a declaration will trigger an assertion if the function is just a declaration. To see if a function is a declaration, call its isDeclaration() method (i.e. if (F->isDeclaration()) ... ) -- John T. On 10/13/11 8:09
2011 Oct 14
2
[LLVMdev] pass utilizing MemoryDependenceAnalysis?
#include "llvm/Module.h" #include "llvm/Analysis/MemoryDependenceAnalysis.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; struct Hello: public ModulePass { public: static char ID; MemoryDependenceAnalysis *MD; Hello(): ModulePass(ID) { ;; } virtual void getAnalysisUsage(AnalysisUsage &AU) const {