Displaying 16 results from an estimated 16 matches similar to: "[LLVMdev] Wierd behavior from getAnalysis<>"
2002 Nov 03
0
[LLVMdev] getAnalysis()
On Sun, 3 Nov 2002, Scott Mikula wrote:
> I'm having trouble with using getAnalysis() to access the results of one
> pass from within another. I require the pass to be previously executed
> as follows:
>
> void MyPass::getAnalysisUsage(AnalysisUsage &Info) const {
> Info.addRequired<TDDataStructures>();
> }
Is that the only line you have? There may be
2002 Nov 03
1
[LLVMdev] getAnalysis()
Chris Lattner wrote:
> On Sun, 3 Nov 2002, Scott Mikula wrote:
> > I'm having trouble with using getAnalysis() to access the results of one
> > pass from within another. I require the pass to be previously executed
> > as follows:
> >
> > void MyPass::getAnalysisUsage(AnalysisUsage &Info) const {
> >
2002 Nov 21
0
[LLVMdev] Re: getAnalysis
On Thu, 21 Nov 2002, Juan Nicolas Ruiz wrote:
> sorry for sending this question just to you: What do I need to include
> or declare in order to be able to use an external analysis? I'm trying
> to do:
>
> DSGraph* DSG = getAnalysis<BUDataStructures>().getDSGraph(F);
>
> I have
> #include "llvm/PassAnalysisSupport.h" // getAnalysis
Please do not ever
2008 Mar 05
0
[LLVMdev] getAnalysis*() called on an analysis that was not " "'required' by pass!
Thanks.
Calling getAnalysis with a Function* argument and removing const from
iterator solved the problem.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080305/faff1821/attachment.html>
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 "
2008 Mar 05
1
[LLVMdev] getAnalysis*() called on an analysis that was not " "'required' by pass!
Hello,
I'd appreciate it if anyone can tell me what the error message means and
point out what I am doing wrong.
Thank you.
I am trying to use the result of the DominatorTree analysis in my ModulePass
class as explained in the section "Writing an LLVM Pass".
http://llvm.org/docs/WritingAnLLVMPass.html#interaction
I called the method "addRequired<DominatorTree>()"
2002 Nov 03
2
[LLVMdev] getAnalysis()
I'm having trouble with using getAnalysis() to access the results of one
pass from within another. I require the pass to be previously executed
as follows:
void MyPass::getAnalysisUsage(AnalysisUsage &Info) const {
Info.addRequired<TDDataStructures>();
}
Then I try to use it as follows:
bool MyPass::doInitialization(Module &M) {
TDDataStructures &dsgraph =
2008 Dec 02
0
[LLVMdev] Error when using getAnalysis
On Dec 2, 2008, at 10:40 AM, Jeff Yeong-Peng Hao wrote:
>
> Hi,
>
> I had a question about this as well. The documentation 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:
2015 Jun 21
2
[LLVMdev] getAnalysis<DataLayout>() Causing Compilation Error
I’m debugging SAFECode source code files, and in AllocatorInfo.cpp, in the function getObjectSize(Value* V), the function getAnalysis<DataLayout>() is called. I’ve run into this problem before, and the first time I saw it, my employer recommended I use M.getDataLayout() instead, where M was a reference to a Module. However, in getObjectSize(Value* V), there is no Module reference in the
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>();
>
>
2010 Sep 15
0
[LLVMdev] getAnalysis<LoopInfo> from ModulePass
hi,
On Wed, Sep 15, 2010 at 8:21 PM, Mariusz Grad <mariusz.grad at gmail.com> wrote:
> Hi,
>
> I wrote tiny ModulePass which iterates over functions and then uses getAnalysis<LoopInfo> in order to get informations about the loop.
> It compiles smoothly, but whenever I try to run it I got error like this:
> opt: .. PassAnalysisSupport.h:203: AnalysisType&
2008 Dec 02
1
[LLVMdev] Error when using getAnalysis
Sure. I've attached the code for the test pass I wrote, as well as the
code and bitcode for the testcase I'm running. All the functionality has
been stripped out of the pass, and the pass compiles without a problem, but
the error appears when the pass is run.
Jeff
On Tue, 2 Dec 2008 11:06:44 -0800, Devang Patel <dpatel at apple.com> wrote:
> On Dec 2, 2008, at 10:40 AM, Jeff
2017 Feb 14
2
addRequired() + getAnalysis() for new / non-legacy pass manager
Hi!
I am trying to extend the native AliasAnalysis of LLVM to use an external
analysis pass. Doing 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
2010 Sep 15
2
[LLVMdev] getAnalysis<LoopInfo> from ModulePass
Hi,
I wrote tiny ModulePass which iterates over functions and then uses getAnalysis<LoopInfo> in order to get informations about the loop.
It compiles smoothly, but whenever I try to run it I got error like this:
opt: .. PassAnalysisSupport.h:203: AnalysisType& llvm::Pass::getAnalysisID(const llvm::PassInfo*) const [with AnalysisType = llvm::LoopInfo]: Assertion `ResultPass &&
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:
2008 Dec 02
2
[LLVMdev] Error when using getAnalysis
Hi,
I had a question about this as well. The documentation 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*,