search for: schedulepass

Displaying 20 results from an estimated 75 matches for "schedulepass".

2013 Jun 21
2
[LLVMdev] About writing a modulePass in addPreEmitPass() for NVPTX
...VPTX, but I encounter an assertion failed when executing clang. Here is my error message. ==== Pass 'NVPTX Assembly Printer' is not initialized. Verify if there is a pass dependency cycle. Required Passes: llc: /home/pyyu/local/llvm/lib/IR/PassManager.cpp:637: void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI && "Expected required passes to be initialized"' failed. 0 llc 0x000000000176cd86 llvm::sys::PrintStackTrace(_IO_FILE*) + 38 1 llc 0x000000000176d00d 2 llc 0x000000000176ca5c 3 libpthread.so.0 0x00007f9867638c...
2012 Oct 30
2
[LLVMdev] Error when trying to chain two llvm transform passes
...> > void getAnalysisUsage(AnalysisUsage &AU)const{ > AU.setPreservesCFG(); > AU.addRequired<First_Pass>(); > > } Assertion failed: (PI && "Expected required passes to be initialized"), function schedulePass, file PassManager.cpp, line 597. I register the passes using RegisterPass function call. What else should I be doing? I appreciate your help!! regards, Ashwin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachme...
2013 Dec 02
2
[LLVMdev] Segmentation fault when traverse call graph
...as: CallGraph CG = this->getAnalysis<CallGraph>; for (CallGraph::const_iterator i = CG.begin(); i != CG.end(); ++i) { .... } However, I encountered a segmentation fault with the next core dump information. What should I do? llvm::PassInfo::createPass() const + 4 llvm::PMTopLevelManager::schedulePass(llvm::Pass*) llvm::PassManager::add(llvm::Pass*) ... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131202/c8daa472/attachment.html>
2009 Aug 10
2
[LLVMdev] How to use a FunctionPass in a ModulePass?
...238 5 opt 0x08507bc5 llvm::Pass* llvm::callDefaultCtor<llvm::TargetData>() + 0 6 opt 0x08507be2 llvm::Pass* llvm::callDefaultCtor<llvm::TargetData>() + 29 7 opt 0x08596996 llvm::PassInfo::createPass() const + 126 8 opt 0x0859156a llvm::PMTopLevelManager::schedulePass(llvm::Pass*) + 284 9 opt 0x085915f1 llvm::PMTopLevelManager::schedulePass(llvm::Pass*) + 419 10 opt 0x0859b9ec llvm::FunctionPassManagerImpl::add(llvm::Pass*) + 30 11 opt 0x085917ab llvm::MPPassManager::addLowerLevelRequiredPass(llvm::Pass*, llvm::Pass*) + 315 12 opt 0x...
2011 Dec 06
2
[LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
...false, false) 2679 However when I run Clang with my pass enabled, I get the following error: $ clang_build_Linux/Release+Asserts/bin/clang -fthread-sanitizer -c t.c CREATE clang: /usr/local/google/tsan-llvm/data-race-test/clang_src/lib/VMCore/PassManager.cpp:634: void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI && "Expected required passes to be initialized"' failed. 0 clang 0x0000000001d1757f 1 clang 0x0000000001d197f2 2 libpthread.so.0 0x00007fe8a157d8f0 3 libc.so.6 0x00007fe8a086ca75 gsignal + 53 4 libc.so.6 0x00007f...
2016 Mar 24
2
Help with pass manager
...com>> wrote: > >> On Mar 23, 2016, at 5:41 PM, Lorenzo Laneve <lore97drk at icloud.com <mailto:lore97drk at icloud.com>> wrote: >> >> The stack trace: >> llvm::PMTopLevelManager::addImmutablePass(llvm::ImmutablePass*) >> llvm::PMTopLevelManager::schedulePass(llvm::Pass*) >> moduleToObjectFile(llvm::Module*,std::string&,llvm::LLVMContext&) > > > Without mapping to line numbers this is not very helpful: moduleToObjectFile never calls schedulePass. > > Also you didn't answer my previous question about the crash. > &...
2016 Mar 24
2
Help with pass manager
...icloud.com <mailto:lore97drk at icloud.com>> wrote: >>>>>>>> >>>>>>>> The stack trace: >>>>>>>> llvm::PMTopLevelManager::addImmutablePass(llvm::ImmutablePass*) >>>>>>>> llvm::PMTopLevelManager::schedulePass(llvm::Pass*) >>>>>>>> moduleToObjectFile(llvm::Module*,std::string&,llvm::LLVMContext&) >>>>>>> >>>>>>> >>>>>>> Without mapping to line numbers this is not very helpful: moduleToObjectFile never calls s...
2011 Dec 06
0
[LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
Hi Alexander, I had the same error: sincos: /home/marcusmae/rpmbuild/BUILD/llvm/lib/VMCore/PassManager.cpp:635: void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI && "Expected required passes to be initialized"' failed. The solution was to add: PassRegistry &Registry = *PassRegistry::getPassRegistry(); initializeCore(Registry); initializeScalarOpts(Registry); initializeIPO(Registry); initializ...
2016 Mar 24
0
Help with pass manager
...on addImmutablePass, file llvm-3.8.0.src/lib/IR/LegacyPassManager.cpp, line 764. Here is the complete stack trace, which says where to find the assert: in llvm::PMTopLevelManager::addImmutablePass(llvm::ImmutablePass*) at llvm-3.8.0.src/lib/IR/LegacyPassManager.cpp:764 in llvm::PMTopLevelManager::schedulePass(llvm::Pass*) at llvm-3.8.0.src/lib/IR/LegacyPassManager.cpp:697 in llvm::legacy::PassManagerImpl::add(llvm::Pass*) at llvm-3.8.0.src/lib/IR/LegacyPassManager.cpp:410 in llvm::legacy::PassManager::add(llvm::Pass*) at llvm-3.8.0.src/lib/IR/LegacyPassManager.cpp:1755 in moduleToObjectFile(llvm::Module...
2016 Mar 30
1
Help with pass manager
...llvm-3.8.0.src/lib/IR/LegacyPassManager.cpp, line 764. > > Here is the complete stack trace, which says where to find the assert: > > in llvm::PMTopLevelManager::addImmutablePass(llvm::ImmutablePass*) at llvm-3.8.0.src/lib/IR/LegacyPassManager.cpp:764 > in llvm::PMTopLevelManager::schedulePass(llvm::Pass*) at llvm-3.8.0.src/lib/IR/LegacyPassManager.cpp:697 > in llvm::legacy::PassManagerImpl::add(llvm::Pass*) at llvm-3.8.0.src/lib/IR/LegacyPassManager.cpp:410 > in llvm::legacy::PassManager::add(llvm::Pass*) at llvm-3.8.0.src/lib/IR/LegacyPassManager.cpp:1755 > in moduleToObjectFi...
2016 Mar 24
0
Help with pass manager
> On Mar 23, 2016, at 5:41 PM, Lorenzo Laneve <lore97drk at icloud.com> wrote: > > The stack trace: > llvm::PMTopLevelManager::addImmutablePass(llvm::ImmutablePass*) > llvm::PMTopLevelManager::schedulePass(llvm::Pass*) > moduleToObjectFile(llvm::Module*,std::string&,llvm::LLVMContext&) Without mapping to line numbers this is not very helpful: moduleToObjectFile never calls schedulePass. Also you didn't answer my previous question about the crash. > Sometimes it doesn't cras...
2016 Mar 24
2
Help with pass manager
The stack trace: llvm::PMTopLevelManager::addImmutablePass(llvm::ImmutablePass*) llvm::PMTopLevelManager::schedulePass(llvm::Pass*) moduleToObjectFile(llvm::Module*,std::string&,llvm::LLVMContext&) Sometimes it doesn't crash because TargetRegistry::lookupTarget() returns an error which says it doesn't support the current target > On Mar 24, 2016, at 1:14 AM, Mehdi Amini <mehdi.amini at apple...
2016 Mar 24
2
Help with pass manager
...t; On Mar 23, 2016, at 5:41 PM, Lorenzo Laneve <lore97drk at icloud.com <mailto:lore97drk at icloud.com>> wrote: >>>> >>>> The stack trace: >>>> llvm::PMTopLevelManager::addImmutablePass(llvm::ImmutablePass*) >>>> llvm::PMTopLevelManager::schedulePass(llvm::Pass*) >>>> moduleToObjectFile(llvm::Module*,std::string&,llvm::LLVMContext&) >>> >>> >>> Without mapping to line numbers this is not very helpful: moduleToObjectFile never calls schedulePass. >>> >>> Also you didn't answ...
2016 Mar 04
4
Regarding Usage of opt
...---------------------------------------------- Pass 'SI Lower control flow pseudo instructions' is not initialized. Verify if there is a pass dependency cycle. Required Passes: opt-trunk: /tmp/llvm-builder/llvm-source-trunk/lib/IR/LegacyPassManager.cpp:668: void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI && "Expected required passes to be initialized"' failed. -------------------------------------------------------------- Error End -------------------------------------------------------------- Question 2: Some passes depend on other dependencies....
2013 Mar 15
2
[LLVMdev] write a simple MachineFunctionPass
..., "mycfg", false, false); bool CFGexplorator::runOnMachineFunction(MachineFunction &MF) { return false; } I get the error : Pass 'mycfg' is not initialized. Verify if there is a pass dependency cycle. Required Passes: opt: PassManager.cpp:638: void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI && "Expected required passes to be initialized"' failed. So I have to initialize the pass. But in my all other passes I did not any initialization and I don't want to use INITIALIZE_PASS since I have to recompile the llvm file that is keeping...
2016 Mar 24
0
Help with pass manager
...> >>> On Mar 23, 2016, at 5:41 PM, Lorenzo Laneve <lore97drk at icloud.com <mailto:lore97drk at icloud.com>> wrote: >>> >>> The stack trace: >>> llvm::PMTopLevelManager::addImmutablePass(llvm::ImmutablePass*) >>> llvm::PMTopLevelManager::schedulePass(llvm::Pass*) >>> moduleToObjectFile(llvm::Module*,std::string&,llvm::LLVMContext&) >> >> >> Without mapping to line numbers this is not very helpful: moduleToObjectFile never calls schedulePass. >> >> Also you didn't answer my previous question...
2011 Nov 15
1
[LLVMdev] add pass to O2. use as "clang -O2 .."
...that I don't have to compile to IR, opt, and then llc to binary manually. Now I am trying to add my pass to O2 by mimicking LICM pass. I add a line "MPM.add(createMyPass());" in PassManagerBuilder::populateModulePassManager, and got assertion fail "void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI && "Expected required passes to be initialized"' failed." I can't figure out how to solve this? thanks for any inputs. yuanfang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pip...
2012 Oct 30
0
[LLVMdev] Error when trying to chain two llvm transform passes
On 10/30/2012 4:10 PM, Ashwin kumar wrote: > > Assertion failed: (PI && "Expected required passes to be initialized"), > function schedulePass, file PassManager.cpp, line 597. > > > I register the passes using RegisterPass function call. What else should > I be doing? Initializing them. Are you using INITIALIZE_PASS_DEPENDENCY, INITIALIZE_AG_DEPENDENCY, etc? -Krzysztof -- Qualcomm Innovation Center, Inc. is a member of C...
2012 Oct 31
1
[LLVMdev] Lifetime analysis of variables within a module
...tervals/LiveVariables/LiveRange to obtain the live range for a given variable of interest? BTW, do you know any working example of using MachineFunctionPass or LiveIntervals LLVM passes? Every time I use it, opt generates output such as: opt: PassManager.cpp:597: void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI && "Expected required passes to be initialized"' failed. 0 libLLVM-3.1.so 0x00007f42eb6469ef ... 7 libLLVM-3.1.so 0x00007f42eb1ccafa llvm::PMTopLevelManager::schedulePass(llvm::Pass*) + 1226 Thank you in advance !!!!
2013 Feb 22
0
[LLVMdev] An error:Pass 'Runtime Evaluation' is not initialized
...val.so -Eval < code2.bc', i meet an error: Pass 'HSA Supported Runtime Evaluation' is not initialized. Verify if there is a pass dependency cycle. Required Passes: opt: /home/ccwang/software/LLVM/LLVM3.2/llvm-3.2.src/lib/VMCore/PassManager.cpp:616: void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI && "Expected required passes to be initialized"' failed. 0 opt 0x00000000011a649f 1 opt 0x00000000011a69c9 2 libpthread.so.0 0x00007fc102e21cb0 3 libc.so.6 0x00007fc102073425 gsignal + 53 4 libc.so.6 0x00007f...