search for: setcodegenoptlevel

Displaying 3 results from an estimated 3 matches for "setcodegenoptlevel".

2019 Aug 13
4
ORC v2 question
...heir CodeGen opt-level. JITTargetMachineBuilder defaults to CodeGenOpt::None, and ExecutionEngineBuilder default to CodeGenOpt::Default. > > What happens if you make the following modification to your setup? > > auto JTMB = llvm::orc::JITTargetMachineBuilder::detectHost(); > JTMB->setCodeGenOptLevel(CodeGenOpt::Default); // <-- Explicitly set Codegen opt level > auto dataLayout = JTMB->getDefaultDataLayoutForTarget(); > No change. Regards
2019 Aug 14
3
ORC v2 question
...ITTargetMachineBuilder defaults to CodeGenOpt::None, and ExecutionEngineBuilder default to CodeGenOpt::Default. > > > > What happens if you make the following modification to your setup? > > > > auto JTMB = llvm::orc::JITTargetMachineBuilder::detectHost(); > > JTMB->setCodeGenOptLevel(CodeGenOpt::Default); // <-- Explicitly set Codegen opt level > > auto dataLayout = JTMB->getDefaultDataLayoutForTarget(); > > I am not sure what to make of that. What happens if you print TM->getOptLevel() right before running CodeGen? Once your have explicitly set it I would...
2019 Aug 13
3
ORC v2 question
Hi Lang, On Tue, 13 Aug 2019 at 20:47, Lang Hames <lhames at gmail.com> wrote: > > Sorry for the delayed reply. Looks like you have figured out how to solve your issue already. Out of interest, what did you need to do? Do you have anything that you would like to see added to http://llvm.org/docs/ORCv2.html ? > Sorry my post was misleading. I figured out below which was part of the