search for: moduletoobjectfil

Displaying 13 results from an estimated 13 matches for "moduletoobjectfil".

Did you mean: moduletoobjectfile
2016 Mar 24
2
Help with pass manager
So we come back to my earlier comment: can you produce a one-file, < 100 lines that reproduce the issue? -- Mehdi > On Mar 24, 2016, at 10:16 AM, Lorenzo Laneve <lore97drk at icloud.com> wrote: > > Those lines of code are in a function that is called before calling the moduleToObjectFile() function > > On Mar 24, 2016, at 6:07 PM, Mehdi Amini <mehdi.amini at apple.com <mailto:mehdi.amini at apple.com>> wrote: > >> You may want to try adding this code (copy/pasted from llc.cpp): >> >> // Initialize targets first, so that --version shows r...
2016 Mar 24
0
Help with pass manager
...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*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, llvm::LLVMContext&) at Compiler/builders/llc.cpp:189 On Mar 24, 2016, at 6:21 PM, Mehdi Amini <mehdi.amini at apple.com <mailto:mehdi.amini at apple.com>>...
2016 Mar 30
1
Help with pass manager
...er::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*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, llvm::LLVMContext&) at Compiler/builders/llc.cpp:189 > > >> On Mar 24, 2016, at 6:21 PM, Mehdi Amini <mehdi.amini at apple.com> wrote: >> >...
2016 Mar 24
2
Help with pass manager
...to: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 pr...
2016 Mar 24
0
Help with pass manager
Those lines of code are in a function that is called before calling the moduleToObjectFile() function > On Mar 24, 2016, at 6:07 PM, Mehdi Amini <mehdi.amini at apple.com> wrote: > > You may want to try adding this code (copy/pasted from llc.cpp): > > // Initialize targets first, so that --version shows registered targets. > InitializeAllTargets(); >...
2016 Mar 24
2
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 about the crash. > > >> Sometimes it doesn't c...
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.com> wrote: > > Assu...
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 crash because TargetRegistry::lookupTarg...
2016 Mar 24
2
Help with pass manager
...eve <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. >&gt...
2016 Mar 24
0
Help with pass manager
...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. >> >> >&gt...
2016 Mar 24
0
Help with pass manager
...: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 abou...
2016 Mar 23
2
Help with pass manager
...of code from llc, and I used it to write a function that creates an object (or assembly) file from an IR module. It compiles without any problems. But program crashes when it reaches add() method of the pass manager. Can you help me figuring out what’s the problem please? here is my function int moduleToObjectFile(llvm::Module *module, std::string &srcname, llvm::LLVMContext &Context) { SMDiagnostic error; Triple moduletriple = Triple(module->getTargetTriple()); if (moduletriple.getTriple().empty()) moduletriple.setTriple(sys::getDefaultTargetTriple()); std::stri...
2016 Mar 24
0
Help with pass manager
...used it to write a function that creates an object (or assembly) file from an IR module. > It compiles without any problems. But program crashes when it reaches add() method of the pass manager. > Can you help me figuring out what’s the problem please? here is my function > > > int moduleToObjectFile(llvm::Module *module, std::string &srcname, llvm::LLVMContext &Context) { > SMDiagnostic error; > Triple moduletriple = Triple(module->getTargetTriple()); > > if (moduletriple.getTriple().empty()) > moduletriple.setTriple(sys::getDefaultTargetTrip...