search for: resultpass

Displaying 20 results from an estimated 56 matches for "resultpass".

2009 Apr 30
1
[LLVMdev] Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed.
Hello, I have two passes, A and B. A is a function pass. B is a module pass. Each uses their getAnalysisUsage() method to .addRequired() several passes, and each .setPreserveAll()s. **Pass B requires pass A**. But, when I call getAnalysis<A> from within B, it exclaims: Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed. Clearly, that is nonsense, because I require that pass. Under what circumstances can this happen, and why? -- Nick Johnson
2020 Oct 02
2
Pass dependency error
Hi all, I am getting the infamous error: Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' but i really don't understand why. I have: voidInstrumentationPass::getAnalysisUsage(llvm::AnalysisUsage&AU) const{     AU.setPreservesAll();     AU.addRequired<De...
2011 Oct 13
2
[LLVMdev] pass utilizing MemoryDependenceAnalysis?
...        errs() << "addRequired called\n";         AU.addRequired<MemoryDependenceAnalysis>();        } And in my 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...
2011 Oct 13
0
[LLVMdev] pass utilizing MemoryDependenceAnalysis?
My pass(that I want to use 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...
2011 Oct 14
2
[LLVMdev] pass utilizing MemoryDependenceAnalysis?
...al386 at gmail.com> wrote: > My pass(that I want to use 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 Memory...
2008 Nov 30
3
[LLVMdev] Error when using getAnalysis
...p;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_fail+0x101)[0x154da1] opt(_ZNK4llvm4Pass13getAnalysisIDINS_8LoopInfoEEERT_PKNS_8PassInfo...
2017 Jan 26
2
AAResultsWrapperPass assertion in 3.9
...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 "required" list: void XidanePass::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<AAResultsW...
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: &g...
2011 Oct 14
0
[LLVMdev] pass utilizing MemoryDependenceAnalysis?
...ote: >> My pass(that I want to use 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...
2010 May 08
0
[LLVMdev] [Fwd: Error while running my pass with opt]
...ut 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 wrote: > Hi, > > you need something like this in your pass: > > void YourPass::get...
2008 Dec 02
2
[LLVMdev] Error when using getAnalysis
...ule 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: opt: /x/jeffhao/llvm/llvm-2.4/lib/VMCore/PassManager.cpp:1440: virtual llvm::Pass* llvm::MPPassManage...
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
...archy.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/libc.so.6(__assert_fail+0x101)[0x154da1] > opt(_ZNK4llvm4Pass13getAnalysisIDINS_8LoopInfo...
2011 Oct 15
1
[LLVMdev] pass utilizing MemoryDependenceAnalysis?
...ass(that I want to use 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) tha...
2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
...>> Thanks >> >> On Tue, Nov 8, 2011 at 2:28 PM, Tobias Grosser <tobias at grosser.es> wrote: >> > On 11/08/2011 07: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 { >> >&gt...
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: ch...
2010 May 09
2
[LLVMdev] [Fwd: Error while running my pass with opt]
...ou'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 help. > > Tobias Grosser wrote: > >> Hi, >> >> you need something like...
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
...t;>> Thanks >>> >>> On Tue, Nov 8, 2011 at 2:28 PM, Tobias Grosser<tobias at grosser.es> wrote: >>>> On 11/08/2011 07: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 { &g...
2017 Feb 14
2
addRequired() + getAnalysis() for new / non-legacy pass manager
...ing this with the legacy pass manager works fine through calling addRequired() in the getAnalysisUsage and getAnalysis() in function runOnFunction(). In the new pass manager, I haven't found a similar way of doing this. When running opt with -O3, I encounter the following error: >Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed. Changing to getAnalysisIfAvailable() makes the pass not crash, but then I assume I am not using the external analysis pass to its full extent. So, the question is as such...
2008 Jul 17
2
[LLVMdev] Pass Added as Required fails assert
...On another machine, whenever the second pass is run, it consistently fails the assertion: opt: /home/tmason/llvm/llvm/include/llvm/PassAnalysisSupport.h:193: AnalysisType& llvm::Pass::getAnalysisID(const llvm::PassInfo*) const [with AnalysisType = <unnamed>::LdStCallCounter]: Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed. We have modified opt.cpp with the following lines: addPass(PM, createLdStCallCounter()); // tmason addPass(PM, createLAMPProfilerPass()); // tmason We...