search for: moduletriple

Displaying 17 results from an estimated 17 matches for "moduletriple".

2016 Mar 23
2
Help with pass manager
...y 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::string lookuperror; const Target *moduletarget = TargetRegistry::lookupTarget(MArch, moduletriple, lookuperror); if (!modu...
2016 Mar 24
2
Help with pass manager
...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::string lookuperror; >> const Target *moduletarget = TargetRegistry::lookupTarget...
2016 Mar 24
0
Help with pass manager
...s 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::string lookuperror; > const Target *moduletarget = TargetRegistry::lookupTarget(MArch, moduletriple, lo...
2016 Mar 24
2
Help with pass manager
...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::string lookuperror; >>>> const Tar...
2016 Mar 24
0
Help with pass manager
...er. >>> 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::string lookuperror; >>> const Target *moduletarget = Targ...
2016 Mar 24
2
Help with pass manager
...blem 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::string loo...
2016 Mar 24
0
Help with pass manager
...g 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::string lookuperror; >>&g...
2016 Mar 24
2
Help with pass manager
...;>>>>>> >>>>>>>> >>>>>>>> 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()); >>>>>>>> >>>...
2016 Mar 24
0
Help with pass manager
...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()); >>>>>>> >>>>>>>...
2016 Mar 24
0
Help with pass manager
...;>> >>>>>>>>> >>>>>>>>> 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()); >>>>>>>>>...
2016 Mar 24
2
Help with pass manager
...gt;>>>>>>>> >>>>>>>>>> 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()); >>>>>>&g...
2016 Mar 24
0
Help with pass manager
...gt;>>>>> >>>>>>>>>>> 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()); >>>&g...
2016 Mar 30
1
Help with pass manager
...gt;>> >>>>>>>>>>>> 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()); &g...
2013 Oct 27
3
[LLVMdev] Why is the loop vectorizer not working on my function?
...you create your own (you are not using opt but configure your own pass manager)? Here is what opt does when it sets up its pass pipeline. You need to have your/the target add the target’s analysis passes: opt.cpp: PassManager Passes; … // Add target library info and data layout. Triple ModuleTriple(M->getTargetTriple()); TargetMachine *Machine = 0; if (ModuleTriple.getArch()) Machine = GetTargetMachine(Triple(ModuleTriple)); OwningPtr<TargetMachine> TM(Machine); // Add internal analysis passes from the target machine. if (TM.get()) TM->addAnalysisPasses(Passes);...
2013 Oct 27
0
[LLVMdev] Why is the loop vectorizer not working on my function?
...your own pass manager)? > > Here is what opt does when it sets up its pass pipeline. > > You need to have your/the target add the target’s analysis passes: > > opt.cpp: > > PassManager Passes; > > … // Add target library info and data layout. > > Triple ModuleTriple(M->getTargetTriple()); > TargetMachine *Machine = 0; > if (ModuleTriple.getArch()) > Machine = GetTargetMachine(Triple(ModuleTriple)); > OwningPtr<TargetMachine> TM(Machine); > > // Add internal analysis passes from the target machine. > if (TM.get(...
2013 Oct 26
0
[LLVMdev] Why is the loop vectorizer not working on my function?
I would need this to work when calling the vectorizer through the function pass manager. Unfortunately I am having the same problem there: LV: The Widest type: 32 bits. LV: The Widest register is: 32 bits. It's not picking the target information, although I tried with and without the target triple in the module. Any idea what could be wrong? Frank On 26/10/13 15:54, Hal Finkel wrote:
2013 Oct 26
3
[LLVMdev] Why is the loop vectorizer not working on my function?
----- Original Message ----- > >>> LV: The Widest type: 32 bits. > >>> LV: The Widest register is: 32 bits. > > Yep, we don’t pick up the right TTI. > > Try -march=x86-64 (or leave it out) you already have this info in the > triple. > > Then it should work (does for me with your example below). That may depend on what CPU is picks by default; Frank,