search for: passclass

Displaying 20 results from an estimated 21 matches for "passclass".

Did you mean: baseclass
2019 Apr 02
2
How can I use llvm::LoopInfo in the runOnModule method?
...o matching function for call to ‘llvm::SkeletonPass::getAnalysis(llvm::Function*&)’ LoopInfo &LI = getAnalysis<LoopInfo>(F); ... home/**/Work/llvm-6.0.1.src/include/llvm/PassAnalysisSupport.h: In instantiation of ‘llvm::AnalysisUsage& llvm::AnalysisUsage::addRequired() [with PassClass = llvm::LoopInfo]’: /home/**/Desktop/skeleton/src/Skeleton.cpp:24:38: required from here /home/**/Work/llvm-6.0.1.src/include/llvm/PassAnalysisSupport.h:67:39: error: ‘ID’ is not a member of ‘llvm::LoopInfo’ return addRequiredID(PassClass::ID); ^ Here...
2015 Jun 08
2
[LLVMdev] Use Callgraph
Hi All, I tried to use CallGraph in llvm by adding "AU.addRequired<CallGraph>();" in getAnalysisUsage function. But it reports an error: include/llvm/PassAnalysisSupport.h:56:39: error: ‘ID’ is not a member of ‘llvm::CallGraph’ return addRequiredID(PassClass::ID); How to use it correctly? Thanks, Haopeng
2006 Jun 01
2
[LLVMdev] Status on llvm-g++ -> llc -> C backend
Does anyone have a patch or fix for the failure: *assertion "Pass::getClassPassInfo<PassClass>() && "Pass class not registered!"" failed: file "/cygdrive/c/llvm/llvm/include/llvm/PassAnalysisSupport.h", line 76 * -Ash -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20...
2006 May 24
3
[LLVMdev] Error with llc after using llvm-g++ WIN32
Hello, Ashwin. You wrote Wednesday, May 24, 2006, 11:25:11 AM: AC> "Pass::getClassPassInfo<PassClass>() "Pass class not AC> registered!"" failed: file AC> "/cygdrive/c/llvm/llvm/include/llvm/PassAnalysisSupport.h", line 76 AC> Aborted Same for me. AC> Wihtout the -march specified (using native x86 assembly) it does AC> convert it into assembly, but i...
2004 Aug 09
2
[LLVMdev] How to get LoopInfo within Pass subclass?
...This is likely to be an oversimplified view, but hopefully it's a start. 1 - in add(), discover that the pass we're requiring is a subpass, and create more of them. This is the natural place to do it, but can we do this here, or do we not know enough about the passes? 2 - in addPass(SubPassClass, ...), add those FPs to CurrentAnalyses. Should we have a map of BatcherClasses - (function, BatcherClass) pairs instead of just one BatcherClass? 3 - Provide API for the MP to get an analysis per function. (generally, for the PassClass to get analysis per SubPassClass): Instead of this: getAna...
2004 Aug 09
0
[LLVMdev] How to get LoopInfo within Pass subclass?
...the pass manager would have to clone not just the B objects, but also the A objects for every function. The other tricky thing is that we don't know how many pass objects to create until we actuall start running the pass manager (it depends on the module being run on). > 2 - in addPass(SubPassClass, ...), add those FPs to CurrentAnalyses. > Should we have a map of BatcherClasses - (function, BatcherClass) pairs > instead of just one BatcherClass? I'm not sure about this. At the time add is called, you don't know what the functions are. I think that the correct solution is to...
2019 Apr 03
3
How can I use llvm::LoopInfo in the runOnModule method?
...vm::SkeletonPass::getAnalysis(llvm::Function*&)’ >> LoopInfo &LI = getAnalysis<LoopInfo>(F); >> >> ... >> home/**/Work/llvm-6.0.1.src/include/llvm/PassAnalysisSupport.h: In instantiation of ‘llvm::AnalysisUsage& llvm::AnalysisUsage::addRequired() [with PassClass = llvm::LoopInfo]’: >> /home/**/Desktop/skeleton/src/Skeleton.cpp:24:38: required from here >> /home/**/Work/llvm-6.0.1.src/include/llvm/PassAnalysisSupport.h:67:39: error: ‘ID’ is not a member of ‘llvm::LoopInfo’ >> return addRequiredID(PassClass::ID); >>...
2019 Mar 24
3
call an existing IPO pass
...upport.h:223:38: error: ‘ID’ is not a member of ‘llvm::CalledValuePropagationPass’ return getAnalysisID<AnalysisType>(&AnalysisType::ID);\ ..... install/include/llvm/PassAnalysisSupport.h:67:39: error: ‘ID’ is not a member of ‘llvm::CalledValuePropagationPass’ return addRequiredID(PassClass::ID); ...... ----------------------------------------------------------- Looking at the source code of "CalledValuePropagationPass" ( http://llvm.org/doxygen/CalledValuePropagation_8h_source.html), I found that the class "CalledValuePropagationPass" does not have a public membe...
2006 Jun 02
0
[LLVMdev] Status on llvm-g++ -> llc -> C backend
On Thu, 1 Jun 2006, Ashwin Chandra wrote: > Does anyone have a patch or fix for the failure: > *assertion "Pass::getClassPassInfo<PassClass>() && "Pass class not > registered!"" failed: file > "/cygdrive/c/llvm/llvm/include/llvm/PassAnalysisSupport.h", line 76 I don't see that failure. We'll need more info to reproduce the issue. -Chris -- http://nondot.org/sabre/ http://llvm.org/
2006 May 25
3
[LLVMdev] Error with llc after using llvm-g++ WIN32
...Ashwin On 5/24/06, Evan Cheng <evan.cheng at apple.com> wrote: > > > On May 24, 2006, at 5:03 AM, Anton Korobeynikov wrote: > > > Hello, Ashwin. > > > > You wrote Wednesday, May 24, 2006, 11:25:11 AM: > > > > AC> "Pass::getClassPassInfo<PassClass>() "Pass class not > > AC> registered!"" failed: file > > AC> "/cygdrive/c/llvm/llvm/include/llvm/PassAnalysisSupport.h", > > line 76 > > AC> Aborted > > Same for me. > > > > AC> Wihtout the -march specified (using...
2006 May 24
0
[LLVMdev] Error with llc after using llvm-g++ WIN32
On May 24, 2006, at 5:03 AM, Anton Korobeynikov wrote: > Hello, Ashwin. > > You wrote Wednesday, May 24, 2006, 11:25:11 AM: > > AC> "Pass::getClassPassInfo<PassClass>() "Pass class not > AC> registered!"" failed: file > AC> "/cygdrive/c/llvm/llvm/include/llvm/PassAnalysisSupport.h", > line 76 > AC> Aborted > Same for me. > > AC> Wihtout the -march specified (using native x86 assembly) it does &gt...
2006 May 26
2
[LLVMdev] Error with llc after using llvm-g++ WIN32
...eng at apple.com> wrote: > > > > > > On May 24, 2006, at 5:03 AM, Anton Korobeynikov wrote: > > > > > Hello, Ashwin. > > > > > > You wrote Wednesday, May 24, 2006, 11:25:11 AM: > > > > > > AC> "Pass::getClassPassInfo<PassClass>() "Pass class not > > > AC> registered!"" failed: file > > > AC> "/cygdrive/c/llvm/llvm/include/llvm/PassAnalysisSupport.h", > > > line 76 > > > AC> Aborted > > > Same for me. > > > > > > AC>...
2006 May 25
0
[LLVMdev] Error with llc after using llvm-g++ WIN32
...> > > On 5/24/06, Evan Cheng <evan.cheng at apple.com> wrote: > > On May 24, 2006, at 5:03 AM, Anton Korobeynikov wrote: > > > Hello, Ashwin. > > > > You wrote Wednesday, May 24, 2006, 11:25:11 AM: > > > > AC> "Pass::getClassPassInfo<PassClass>() "Pass class not > > AC> registered!"" failed: file > > AC> "/cygdrive/c/llvm/llvm/include/llvm/PassAnalysisSupport.h", > > line 76 > > AC> Aborted > > Same for me. > > > > AC> Wihtout the -march specified (using...
2004 Aug 06
0
[LLVMdev] How to get LoopInfo within Pass subclass?
On Thu, 5 Aug 2004, Michael McCracken wrote: > > You're right that FunctionPass's are not supposed to have state > > (something that many people overlook :) ), however, for now, nothing > > will break if it does have state, and this is really the only way > > around this. > > I'm not sure if I can do this. The pass I'm writing is writing info >
2006 May 26
0
[LLVMdev] Error with llc after using llvm-g++ WIN32
...t; > > > > > On May 24, 2006, at 5:03 AM, Anton Korobeynikov wrote: > > > > > > > Hello, Ashwin. > > > > > > > > You wrote Wednesday, May 24, 2006, 11:25:11 AM: > > > > > > > > AC> "Pass::getClassPassInfo<PassClass>() "Pass class not > > > > AC> registered!"" failed: file > > > > AC> "/cygdrive/c/llvm/llvm/include/llvm/PassAnalysisSupport.h", > > > > line 76 > > > > AC> Aborted > > > > Same for me. > > &g...
2004 Aug 10
1
[LLVMdev] How to get LoopInfo within Pass subclass?
...the A objects for every function. > > The other tricky thing is that we don't know how many pass objects to > create until we actuall start running the pass manager (it depends on > the > module being run on). Yeah, this sounds like the key problem. >> 2 - in addPass(SubPassClass, ...), add those FPs to CurrentAnalyses. >> Should we have a map of BatcherClasses - (function, BatcherClass) >> pairs >> instead of just one BatcherClass? > > I'm not sure about this. At the time add is called, you don't know > what > the functions are. I...
2004 Aug 06
2
[LLVMdev] How to get LoopInfo within Pass subclass?
On Aug 5, 2004, at 5:30 PM, Chris Lattner wrote: > On Thu, 5 Aug 2004, Michael McCracken wrote: > >> Hi, I have a hopefully quick question. I'm writing a Pass that needs >> to >> see a whole module at a time and keep some state, so I subclassed >> Pass. >> However, I want to be able to see the Loops in each Function. Roughly, > > ok. > >>
2006 May 24
0
[LLVMdev] Error with llc after using llvm-g++ WIN32
...de and compiled and made the binaries. I took a small sample C++ file and compiled it into bytecode with "llvm-g++ -c sample.cpp". Then after using "llc -march=C sample.cpp.bc", I get the following error: llc -march=c KEYFNT.CPP.bc -f assertion "Pass::getClassPassInfo<PassClass>() && "Pass class not registered!"" failed: file "/cygdrive/c/llvm/llvm/include/llvm/PassAnalysisSupport.h", line 76 Aborted Wihtout the -march specified (using native x86 assembly) it does convert it into assembly, but is uncompilable (with some unecognized...
2006 Jan 10
0
[LLVMdev] passmanager, significant rework idea...
...n trivially get this from P->getAnalysisUsage(), likewise with the pass name. +public: + PassUnit(Traversal traversal = LINEAR, Pass *Pass) : + traversal(traversal), + + virtual const char *getPMName() const =0; + + virtual const char *getPassName() const =0; + + virtual bool runPass(PassClass *P, UnitType *M) =0; +}; + +class BBPassUnit : public PassUnit { + BasicBlockPass *BBPass; + +public: + BBPassUnit(Traversal traversal = LINEAR, BasicBlockPass *Pass) : + PassUnit::traversal(traversal), + PassUnit::Pass(static_cast<Pass*>(Pass)) + BBPassUnit::BBPass(Pass) {} +};...
2006 Jan 10
3
[LLVMdev] passmanager, significant rework idea...
The patch below basically hammers out some ideas as to where I'd like to take the passmanager in LLVM. I've tried thinking things through, but I'm still a n00b, so some criticism would be more than welcome. =) Starting from line 191 down. If you're wondering why I created a patch, well that's because I found thinking in passmanagert.h the most productive. -- Regards.