search for: createlowerswitchpass

Displaying 6 results from an estimated 6 matches for "createlowerswitchpass".

2019 Dec 20
3
What's the go-to method to call other transform passes in LLVM9?
Hi: In my in-house transform passes I needs to properly lower Switch/Invoke and PhiNodes, prior to LLVM9 I just call createLowerSwitchPass() and run it. However in LLVM9 doing this would assert out with error message:    Assertion failed: (Resolver && "Pass has not been inserted into a PassManager object!"), function getAnalysis, file \LLVM9/llvm/include/llvm/PassAnalysisSupport.h, line 22...
2019 Dec 26
2
Calling LowerSwitchPass causing crash in llvm 9
Hi, I am trying to call LowerSwitchPass directly in my custom pass in this way: FunctionPass *lower = createLowerSwitchPass(); lower->runOnFunction(*f); But it will crash when running lower->runOnFunction(*f) in llvm-9. I was using this method in llvm-8 and it worked fine. It seems the crash happens at the first line of the LowerSwitch::runOnFunction(Function &F) in the newer llvm: LazyValueInfo *LVI = &am...
2019 Dec 27
2
Calling LowerSwitchPass causing crash in llvm 9
.... Is there any rule to call this pass or not? > >> On Thu, Dec 26, 2019 at 6:36 PM n3v3rm03 <n3v3rm03 at gmail.com> wrote: >> Hi, >> >> I am trying to call LowerSwitchPass directly in my custom pass in this way: >> >> >> FunctionPass *lower = createLowerSwitchPass(); >> lower->runOnFunction(*f); >> >> But it will crash when running lower->runOnFunction(*f) in llvm-9. >> I was using this method in llvm-8 and it worked fine. It seems the crash happens at the first line of the LowerSwitch::runOnFunction(Function &F) in the...
2005 Oct 17
1
[LLVMdev] about switch and select instructions in SparcV9
Hi: In the file of SparcV9BurgISel.cpp, you said you didn't implement the "Switch" instruction and I also can't find how the "Select" instruction is implemented. So do you do some work to handle these two kind of instructions in other parts? Where can I find it? Thank you! -- Shuhan
2005 May 17
2
[LLVMdev] Register Allocation problem
...eda] /home/llvm/Debug/bin/llc((anonymous namespace)::SignalHandler(int)+0xcb)[0x86ac14d] ... " Is there any passes that need to occur to correct this error? For the passes in emitting assembly I have this: " PM.add(createLowerGCPass()); PM.add(createLowerInvokePass()); PM.add(createLowerSwitchPass()); PM.add(createUnreachableBlockEliminationPass()); PM.add(create<MYTARGET>ISelSimple(*this)); if(PrintMachineCode) PM.add(createMachineFunctionPrinterPass(&std::cerr)); PM.add(createRegisterAllocator()); if(PrintMachineCode) PM.add(createMachineF...
2011 Apr 05
3
[LLVMdev] Building LLVM on Solaris/Sparc
...;) const/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o vtable for llvm::cl::parser<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o llvm::createLowerSwitchPass() /n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o llvm::BasicBlock::getTerminator() /n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/PrintSCC.o llvm::createDeadInstEliminationPass() /n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/o...