search for: modulepassmanag

Displaying 20 results from an estimated 31 matches for "modulepassmanag".

Did you mean: modulepassmanager
2018 Jul 21
2
Registering passes on a module
Hi all, I'm trying to build passes with the PassBuilder to optimize the result of MCJIT (I assume, this is a requirement for performance). So I do this: llvm::PassBuilder passBuilder; llvm::ModulePassManager modulePassManager = passBuilder.buildPerModuleDefaultPipeline(llvm::PassBuilder::OptimizationLevel::O3); llvm::ModuleAnalysisManager moduleAnalysisManager; passBuilder.registerModuleAnalyses(moduleAnalysisManager); modulePassManager.run(*module, moduleAnalysisManager); with module be...
2020 Nov 10
1
Inliner in legacy pass manager
Hi, So, does this mean that in legacy pass manager, when I run: PM.add( someFunctionPass() ) // PM is modulePassManager it creates FunctionPassManager, runs the function pass,destroys the functionPassManager and returns control to modulePassManager? Also, you have said that this wasn't the primary reason for the introduction of the new pass manager. But then is this one of the reasons? Regards Sushant On Tu...
2020 Nov 09
2
Inliner in legacy pass manager
Hi, In following link: https://www.youtube.com/watch?reload=9&v=6X12D46sRFw They have specified that the inliner can't use DomTree/LoopInfo/MemorySSA analysis. 1. What's the reason for this? 2. Why can't we do it using getAnalysisUsage() construct? 3. Can inline use this information in the new Pass Manager? 4. What all information can we derive from DomTree to be of help to
2006 Apr 13
1
[LLVMdev] standalone llvm
...> > > >&)+0x13f)[0x89e52b7] llc(llvm::PassManagerT<llvm::FTraits>::runOnUnit(llvm::Function*)+0x17f)[0x89e4d11] llc(llvm::FunctionPassManagerT::runOnFunction(llvm::Function&)+0x25)[0x89e5583] llc(llvm::FunctionPass::runOnModule(llvm::Module&)+0xa7)[0x8989c63] llc(llvm::ModulePassManager::runPass(llvm::ModulePass*, llvm::Module*)+0x1f)[0x89e3b95] llc(llvm::PassManagerT<llvm::MTraits>::runPasses(llvm::Module*, std::map<llvm::Pass*, std::vector<llvm::Pass*, std::allocator<llvm::Pass*> >, std::less<llvm::Pass*>, std::allocator<std::pair<llvm::Pass* c...
2006 Sep 18
2
[LLVMdev] llvm-g++: Internal error
...lifyFunction(llvm::Function*)+0x2cf)[0 x838cc55] gccld((anonymous namespace)::PruneEH::runOnSCC(std::vector<llvm::CallGraphNode*, std::allocator<llvm::CallGraphNode*> > const&)+0x6e)[0x838cefe] gccld(llvm::CallGraphSCCPass::runOnModule(llvm::Module&)+0x84)[0x83c430a] gccld(llvm::ModulePassManager::runPass(llvm::ModulePass*, llvm::Module*)+0x1f)[0 x84761ef] gccld(llvm::PassManagerT<llvm::MTraits>::runPasses(llvm::Module*, std::map<llvm: :Pass*, std::vector<llvm::Pass*, std::allocator<llvm::Pass*> >, std::less<llvm:: Pass*>, std::allocator<std::pair<llvm::Pa...
2006 Sep 14
1
[LLVMdev] use LLVM to convert C++ code to C code
...+0x2d4)[0x8347eee]<br> gccld((anonymous namespace)::PruneEH::runOnSCC(std::vector<llvm::CallGraphNode*, std::allocator<llvm::CallGraphNode*> > const&)+0x76)[0x8347804]<br> gccld(llvm::CallGraphSCCPass::runOnModule(llvm::Module&)+0x99)[0x8378e29]<br> gccld(llvm::ModulePassManager::runPass(llvm::ModulePass*, llvm::Module*)+0x1b)[0x842a111]<br> gccld(llvm::PassManagerT<llvm::MTraits>::runPasses(llvm::Module*, std::map<llvm::Pass*, std::vector<llvm::Pass*, std::allocator<llvm::Pass*> >, std::less<llvm::Pass*>, std::allocator<std::pair<l...
2006 Jun 23
2
[LLVMdev] Help with error in pass
...> > > >&)+0x11c)[0x8858bca] llc(llvm::PassManagerT<llvm::FTraits>::runOnUnit(llvm::Function*)+0x16f)[0x885865f] llc(llvm::FunctionPassManagerT::runOnFunction(llvm::Function&)+0x22)[0x8858e84] llc(llvm::FunctionPass::runOnModule(llvm::Module&)+0xa6)[0x8854bd2] llc(llvm::ModulePassManager::runPass(llvm::ModulePass*, llvm::Module*)+0x1b)[0x8857541] llc(llvm::PassManagerT<llvm::MTraits>::runPasses(llvm::Module*, std::map<llvm::Pass*, std::vector<llvm::Pass*, std::allocator<llvm::Pass*> >, std::less<llvm::Pass*>, std::allocator<std::pair<llvm::Pass* c...
2006 Jun 24
0
[LLVMdev] Help with error in pass
...amp;)+0x11c)[0x8858bca] > llc(llvm::PassManagerT<llvm::FTraits>::runOnUnit(llvm::Function*)+0x16f)[0x885865f] > llc(llvm::FunctionPassManagerT::runOnFunction(llvm::Function&)+0x22)[0x8858e84] > llc(llvm::FunctionPass::runOnModule(llvm::Module&)+0xa6)[0x8854bd2] > llc(llvm::ModulePassManager::runPass(llvm::ModulePass*, > llvm::Module*)+0x1b)[0x8857541] > llc(llvm::PassManagerT<llvm::MTraits>::runPasses(llvm::Module*, > std::map<llvm::Pass*, std::vector<llvm::Pass*, std::allocator<llvm::Pass*> >> , std::less<llvm::Pass*>, std::allocator<std::p...
2006 Nov 30
0
[LLVMdev] Conditional jump or move depends on uninitialised value
...es the warning: ==12768== at 0x8D042C: llvm::llvm_ostream& llvm::llvm_ostream::operator<< <llvm::Module>(llvm::Module const&) (Streams.h:41) ==12768== by 0x8D0464: llvm::PrintModulePass::runOnModule(llvm::Module&) (PrintModulePass.h:41) ==12768== by 0xED6EB9: llvm::ModulePassManager::runPass(llvm::ModulePass*, llvm::Module*) (PassManagerT.h:849) ==12768== by 0xEED05F: llvm::PassManagerT<llvm::MTraits>::runPasses(llvm::Module*, std::map<llvm::Pass*, std::vector<llvm::Pass*, std::allocator<llvm::Pass*> >, std::less<llvm::Pass*>, std::allocator<...
2006 Jun 24
1
[LLVMdev] Help with error in pass
...ca] > > llc(llvm::PassManagerT<llvm::FTraits>::runOnUnit(llvm::Function*)+0x16f)[0x885865f] > > llc(llvm::FunctionPassManagerT::runOnFunction(llvm::Function&)+0x22)[0x8858e84] > > llc(llvm::FunctionPass::runOnModule(llvm::Module&)+0xa6)[0x8854bd2] > > llc(llvm::ModulePassManager::runPass(llvm::ModulePass*, > > llvm::Module*)+0x1b)[0x8857541] > > llc(llvm::PassManagerT<llvm::MTraits>::runPasses(llvm::Module*, > > std::map<llvm::Pass*, std::vector<llvm::Pass*, std::allocator<llvm::Pass*> > >> , std::less<llvm::Pass*>, std:...
2006 Apr 13
0
[LLVMdev] standalone llvm
On Apr 12, 2006, at 10:23 PM, Simon Burton wrote: > > Is it possible to get llvm to generate native machine code > without using gcc and friends ? Do I use lli ? llc. llc --help lists all the options. it compiles llvm bytecode files. > > I'd like to directly create executable code that i can > stick in memory somewhere and jump into (call). > > (I'm looking
2006 Dec 01
1
[LLVMdev] DSGraph::computeCalleeCallerMapping failing
....so(ipps::MemArgs::runOnSCC(std::vector<llvm::CallGraphNode*, std::allocator<llvm::CallGraphNode*> > const&)+0x3ae)[0x34c01e] ../../../../../../old_obj/Debug/bin/opt(llvm::CallGraphSCCPass::runOnModule(llvm::Module&)+0x9d)[0x86af837] ../../../../../../old_obj/Debug/bin/opt(llvm::ModulePassManager::runPass(llvm::ModulePass*, llvm::Module*)+0x1f)[0x857fe03] ../../../../../../old_obj/Debug/bin/opt(llvm::PassManagerT<llvm::MTraits>::runPasses(llvm::Module*, std::map<llvm::Pass*, std::vector<llvm::Pass*, std::allocator<llvm::Pass*> >, std::less<llvm::Pass*>, std::all...
2006 Apr 13
4
[LLVMdev] standalone llvm
Is it possible to get llvm to generate native machine code without using gcc and friends ? Do I use lli ? I'd like to directly create executable code that i can stick in memory somewhere and jump into (call). (I'm looking to use llvm in a BSD licensed project). Simon. -- Simon Burton, B.Sc. Licensed PO Box 8066 ANU Canberra 2601 Australia Ph. 61 02 6249 6940 http://arrowtheory.com
2006 Apr 26
1
[LLVMdev] LLC fail without gccld optimization on spec2000 int benchmarks
...u/resources/llvm/build2/Debug/bin/llc(llvm::FunctionPassManagerT::runOnFunction(llvm::Function&)+0x25)[0x86e00e9] /home/snir/jingyu/resources/llvm/build2/Debug/bin/llc(llvm::FunctionPass::runOnModule(llvm::Module&)+0xa5)[0x867420f] /home/snir/jingyu/resources/llvm/build2/Debug/bin/llc(llvm::ModulePassManager::runPass(llvm::ModulePass*, llvm::Module*)+0x1f)[0x86e1c11] /home/snir/jingyu/resources/llvm/build2/Debug/bin/llc(llvm::PassManagerT<llvm::MTraits>::runPasses(llvm::Module*, std::map<llvm::Pass*, std::vector<llvm::Pass*, std::allocator<llvm::Pass*> >, std::less<llvm::Pass*...
2006 Aug 14
2
[LLVMdev] Folding instructions
...t;::runOnUnit (this=0x8b02378, M=0x8b02940) at PassManagerT.h:282 #13 0x0086af54 in llvm::FunctionPassManagerT::runOnFunction (this=0x8b02360, F=@0x8b02940) at PassManagerT.h:884 #14 0x002463d4 in llvm::FunctionPass::runOnModule (this=0x8b02360, M=@0x8b00850) at Pass.cpp:249 #15 0x0086ae8c in llvm::ModulePassManager::runPass (this=0x8b005c0, P=0x8b02360, M=0x8b00850) at PassManagerT.h:837 #16 0x00888be4 in llvm::PassManagerT<llvm::MTraits>::runPasses (this=0x8b005d8, M=0x8b00850, LastUserOf=@0xbfffecd8) at PassManagerT.h:596 #17 0x0088add8 in llvm::PassManagerT<llvm::MTraits>::runOnUnit (this=0x8...
2006 Jan 10
0
[LLVMdev] passmanager, significant rework idea...
...out loop passes yet. //===----------------------------------------------------------------------===// // Pass debugging information. Often it is useful to find out what pass is // running when a crash occurs in a utility. When this library is compiled with @@ -186,6 +188,116 @@ typedef ModulePassManager PMType; }; +// TODO: Start migration towards a single passmanagert. This PMT will manage +// all passes as one, rather than having any sort of hierarchy. The trick is +// to have all the passes wrapped into a single abstract PassUnit. Each +// PassUnit will then have concrete implmentati...
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.
2020 Nov 09
0
Inliner in legacy pass manager
...ith the next function until all functions in the module have been process and only then gives control back to the coarser-grain pass manger. That is, at this point, all the FunctionPass analyses has been and is not available anymore. There is a workaround for ModulePasses using FunctionPasses: The ModulePassManager would run the FunctionPass on the requested function (without the FunctionPassManager). But it will only hold the result for one Function; if you request the analysis for a different function, it will free the previous one. This is not the primary reason for the introduction of the new pass mana...
2006 Aug 18
2
[LLVMdev] Weird behavior of llvm-ld
...ormation (P=0x85ca030) at /.../llvm/lib/VMCore/Pass.cpp:134 #3 0x0844e3b8 in llvm::PMDebug::PerformPassStartupStuff (P=0x85ca030) at PassManagerT.h:66 #4 0x08444146 in llvm::PassManagerT<llvm::MTraits>::runOnUnit (this=0x85ca048, M=0x85bf330) at PassManagerT.h:280 #5 0x0843eb26 in llvm::ModulePassManager::runOnModule (this=0x85ca030, M=@0x85bf330) at PassManagerT.h:905 #6 0x0843eebf in llvm::PassManager::run (this=0xbfe36400, M=@0x85bf330) at /.../llvm/lib/VMCore/Pass.cpp:85 #7 0x082a0361 in llvm::Optimize (M=0x85bf330) at /.../llvm/tools/llvm-ld/Optimize.cpp:189 #8 0x082a7161 in main (argc...
2006 Nov 06
2
[LLVMdev] Problems building cfrontend 4 source on SUSE 10.1
...0x087033f8 in llvm::PassManagerT<llvm::FTraits>::runPasses () > #4 0x0870412f in llvm::PassManagerT<llvm::FTraits>::runOnUnit () > #5 0x086fb59b in llvm::FunctionPassManagerT::runOnFunction () > #6 0x086f6fb9 in llvm::FunctionPass::runOnModule () > #7 0x086fb547 in llvm::ModulePassManager::runPass () > #8 0x08702329 in llvm::PassManagerT<llvm::MTraits>::runPasses () > #9 0x0870300f in llvm::PassManagerT<llvm::MTraits>::runOnUnit () > #10 0x086f65eb in llvm::ModulePassManager::runOnModule () > #11 0x086f6659 in llvm::PassManager::run () > #12 0x08256a93...