search for: getanalysisid

Displaying 20 results from an estimated 63 matches for "getanalysisid".

Did you mean: getanalysis
2011 Oct 13
2
[LLVMdev] pass utilizing MemoryDependenceAnalysis?
...runOnFunction() method I have:        MD = &getAnalysis<MemoryDependenceAnalysis>(); The results in:        addRequired called        Assertion failed: (ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"), function getAnalysisID I do not know why. I noticed the DeadStoreElimination pass also uses this, but it does not use RegisterPass (like mine and the docs show). Instead it has lines like:        INITIALIZE_PASS_DEPENDENCY(MemoryDependenceAnalysis) This gives me:        error: C++ requires a type specifier for all decl...
2009 May 08
3
[LLVMdev] problem with analysis required
...the loops int the module itself. Since my pass requires to make module level changes including adding new types to module hence a looppass cannot be used here. I am getting the following error on running opt. opt: /root/llvm-2.4/include/llvm/PassAnalysisSupport.h:199: AnalysisType& llvm::Pass::getAnalysisID(const llvm::PassInfo*) const [with AnalysisType = llvm::LoopInfo]: Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed. <snip_gdb_trace> #4 0x083006f2 in llvm::Pass::getAnalysisID<llvm::LoopIn...
2011 Oct 13
0
[LLVMdev] pass utilizing MemoryDependenceAnalysis?
...MemoryDependenceAnalysis) is a ModulePass. When I changed my assignment to: MD = &getAnalysis<MemoryDependenceAnalysis>(F); It fixed my initial problem but left me with: Assertion failed: (ResultPass && "Unable to find requested analysis info"), function getAnalysisID On Thu, Oct 13, 2011 at 1:43 PM, ret val <retval386 at gmail.com> wrote: > I wrote a pass(that is to be loaded by opt) that I would like to use > in conjunction with MemoryDependenceAnalysis. I have tried using by > including its header and adding this to my pass: >        virtu...
2011 Oct 14
2
[LLVMdev] pass utilizing MemoryDependenceAnalysis?
...s a ModulePass. > When I changed my assignment to: >        MD = &getAnalysis<MemoryDependenceAnalysis>(F); > > It fixed my initial problem but left me with: >        Assertion failed: (ResultPass && "Unable to find requested > analysis info"), function getAnalysisID > > > On Thu, Oct 13, 2011 at 1:43 PM, ret val <retval386 at gmail.com> wrote: >> I wrote a pass(that is to be loaded by opt) that I would like to use >> in conjunction with MemoryDependenceAnalysis. I have tried using by >> including its header and adding this to m...
2008 Nov 30
3
[LLVMdev] Error when using getAnalysis
...AU.setPreservesAll(); } virtual bool runOnModule(Module &M) { LoopInfo &LI = getAnalysis<LoopInfo>(); } I get following error when I try to run my pass : opt: /net/hc295/nwarkari/llvm/llvm-2.3/include/llvm/PassAnalysisSupport.h:193: AnalysisType& llvm::Pass::getAnalysisID(const llvm::PassInfo*) const [with AnalysisType = llvm::LoopInfo]: Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed. opt[0x83cfa9d] /lib/tls/libc.so.6(abort+0xe9)[0x15d289] /lib/tls/libc.so.6(__assert...
2010 Oct 20
5
[LLVMdev] Pass Incompatibility
I have a transformation where I'd like to use both DominatorTree (for ExtractCodeRegion), and DemoteRegisterToMemory (i.e., reg2mem). The transformation is phased, so all occurrences of getAnalysis<DominatorTree>(Function) happen before any occurrence of getAnalysisID<FunctionPass>(&DemoteRegisterToMemoryID, Function). If I register these two passes with DominatorTree first, I get the following assert. PassAnalysisSupport.h:239: AnalysisType& llvm::Pass::getAnalysisID(const void*, llvm::Function&) [with AnalysisType = llvm::DominatorTree]: As...
2017 Jan 26
2
AAResultsWrapperPass assertion in 3.9
Hi, Migrating from 3.5 to 3.9. There is a module pass that uses alias analysis started breaking at runtime: llvm/lnx64/llvm/include/llvm/PassAnalysisSupport.h:236: AnalysisType& llvm::Pass::getAnalysisID(llvm::AnalysisID) const [with AnalysisType = llvm::AAResultsWrapperPass; llvm::AnalysisID = const void*]: Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed. What does this mean? I have this line in my...
2010 Oct 20
0
[LLVMdev] Pass Incompatibility
...5 AM, Luke Dalessandro wrote: > I have a transformation where I'd like to use both DominatorTree (for ExtractCodeRegion), and DemoteRegisterToMemory (i.e., reg2mem). The transformation is phased, so all occurrences of getAnalysis<DominatorTree>(Function) happen before any occurrence of getAnalysisID<FunctionPass>(&DemoteRegisterToMemoryID, Function). I believe that reg2mem is a transform pass, correct? If so, then you should not be making it a prerequisite for your pass. Instead, whatever is scheduling the set of transform passes (e.g, the user on the opt command line or the so...
2011 Nov 09
1
[LLVMdev] loadable passes with dependencies?
Awesome, that let me get far enough to trip: Assertion failed: (ResultPass && "Unable to find requested analysis info"), function getAnalysisID Is there something else I forgot? On Tue, Nov 8, 2011 at 5:47 PM, John Criswell <criswell at illinois.edu> wrote: > On 11/8/11 4:34 PM, ret val wrote: >> >> I still have the addRequired: >>         virtual void getAnalysisUsage(AnalysisUsage&AU) const { >>    ...
2011 Oct 14
0
[LLVMdev] pass utilizing MemoryDependenceAnalysis?
...When I changed my assignment to: >> MD =&getAnalysis<MemoryDependenceAnalysis>(F); >> >> It fixed my initial problem but left me with: >> Assertion failed: (ResultPass&& "Unable to find requested >> analysis info"), function getAnalysisID >> >> >> On Thu, Oct 13, 2011 at 1:43 PM, ret val<retval386 at gmail.com> wrote: >>> I wrote a pass(that is to be loaded by opt) that I would like to use >>> in conjunction with MemoryDependenceAnalysis. I have tried using by >>> including its hea...
2010 May 08
0
[LLVMdev] [Fwd: Error while running my pass with opt]
But this is already present in my pass. And I am not able to understand the cause for the error: opt: /home/ambika/llvm_3/llvm-2.6/include/llvm/PassAnalysisSupport.h:203: AnalysisType& llvm::Pass::getAnalysisID(const llvm::PassInfo*) const [with AnalysisType = llvm::DominatorTree]: Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed. What can possibly cause this. Any ideas will also help. Tobias Grosser wr...
2008 Dec 02
2
[LLVMdev] Error when using getAnalysis
...umentation about writing a pass shows an example like what John wrote, calling a function pass within a module pass on a per function basis. However, if I code it that way, I still get the same error: opt: /x/jeffhao/llvm/llvm/include/llvm/PassAnalysisSupport.h:232: AnalysisType& llvm::Pass::getAnalysisID(const llvm::PassInfo*, llvm::Function&) [with AnalysisType = llvm::LoopInfo]: Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed. If I remove the addRequired from getAnalysisUsage, I get this error...
2010 May 08
3
[LLVMdev] [Fwd: Error while running my pass with opt]
Hi, you need something like this in your pass: void YourPass::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<DominatorTree>(); } because you need to specify which analysis you are using. Tobi
2008 Dec 01
0
[LLVMdev] Error when using getAnalysis
...n look at the Module::iterator on the LLVM doxygen web pages: http://llvm.org/doxygen/hierarchy.html -- John T. > > > I get following error when I try to run my pass : > > opt: /net/hc295/nwarkari/llvm/llvm-2.3/include/llvm/PassAnalysisSupport.h:193: AnalysisType& llvm::Pass::getAnalysisID(const llvm::PassInfo*) const [with AnalysisType = llvm::LoopInfo]: Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed. > opt[0x83cfa9d] > /lib/tls/libc.so.6(abort+0xe9)[0x15d289] > /lib/tls/lib...
2011 Oct 15
1
[LLVMdev] pass utilizing MemoryDependenceAnalysis?
...assignment to: >>>        MD =&getAnalysis<MemoryDependenceAnalysis>(F); >>> >>> It fixed my initial problem but left me with: >>>        Assertion failed: (ResultPass&&  "Unable to find requested >>> analysis info"), function getAnalysisID >>> >>> >>> On Thu, Oct 13, 2011 at 1:43 PM, ret val<retval386 at gmail.com>  wrote: >>>> >>>> I wrote a pass(that is to be loaded by opt) that I would like to use >>>> in conjunction with MemoryDependenceAnalysis. I have tried us...
2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
..., ret val wrote: >> >> >> >> Sorry to keep dragging this out on you. Im now getting: Assertion >> >> failed: (ResultPass&&  "getAnalysis*() called on an analysis that was >> >> not " "'required' by pass!"), function getAnalysisID >> >> >> >> But I already have: >> >> void getAnalysisUsage(AnalysisUsage&AU) const { >> >>                AU.addRequired<DominatorTree>(); >> >> } >> >> >> >> And changed the bottom of my pass too: >&g...
2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
Sorry to keep dragging this out on you. Im now getting: Assertion failed: (ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"), function getAnalysisID But I already have: void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<DominatorTree>(); } And changed the bottom of my pass too: char Hello::ID = 0; namespace llvm { void initializeHelloPass(llvm::PassRegistry&); } INITIALIZE_PASS_BEGIN(Hello, "hello", &qu...
2020 Oct 02
2
Pass dependency error
...ctKernelsPass works fine but i am getting the error for SimplifyGEPPass and i can't figure out why. Are FunctionPasses not supposed to be used inside ModulePasses like that? I also tried some llvm pass (MemorySSAWrapperPass) but i'm getting the same error: AnalysisType &llvm::Pass::getAnalysisID(llvm::AnalysisID) const [AnalysisType = llvm::MemorySSAWrapperPass]: Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' f I would really appreciate some help with this. PS. I'm on LLVM 10, building th...
2010 May 09
2
[LLVMdev] [Fwd: Error while running my pass with opt]
...assManager (I think). If you post your getAnalysisUsage() method, I can take a quick look to see if you're doing something that I know is unsupported by PassManager. -- John T. > opt: /home/ambika/llvm_3/llvm-2.6/include/llvm/PassAnalysisSupport.h:203: > AnalysisType& llvm::Pass::getAnalysisID(const llvm::PassInfo*) const > [with AnalysisType = llvm::DominatorTree]: Assertion `ResultPass && > "getAnalysis*() called on an analysis that was not " "'required' by > pass!"' failed. > > What can possibly cause this. Any ideas will also...
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
...7:33 PM, ret val wrote: >>>>> Sorry to keep dragging this out on you. Im now getting: Assertion >>>>> failed: (ResultPass&& "getAnalysis*() called on an analysis that was >>>>> not " "'required' by pass!"), function getAnalysisID >>>>> >>>>> But I already have: >>>>> void getAnalysisUsage(AnalysisUsage&AU) const { >>>>> AU.addRequired<DominatorTree>(); >>>>> } >>>>> >>>>> And changed the bottom...