Lines Matching refs:OLvl
58 CodeGenOpt::Level &OLvl) { in getOptLevel() argument
60 OLvl = CodeGenOpt::Default; in getOptLevel()
64 case '0': OLvl = CodeGenOpt::None; break; in getOptLevel()
65 case '1': OLvl = CodeGenOpt::Less; break; in getOptLevel()
66 case '2': OLvl = CodeGenOpt::Default; break; in getOptLevel()
67 case '3': OLvl = CodeGenOpt::Aggressive; break; in getOptLevel()
96 static std::string OptLLVM(const std::string &IR, CodeGenOpt::Level OLvl) { in OptLLVM() argument
116 codegen::getExplicitCodeModel(), OLvl)); in OptLLVM()
133 AddOptimizationPasses(Passes, OLvl, 0); in OptLLVM()
154 static void CreateAndRunJITFunc(const std::string &IR, CodeGenOpt::Level OLvl) { in CreateAndRunJITFunc() argument
175 builder.setOptLevel(OLvl); in CreateAndRunJITFunc()
205 RunFuncOnInputs(f, (OLvl == CodeGenOpt::None) ? UnoptArrays : OptArrays); in CreateAndRunJITFunc()
219 CodeGenOpt::Level OLvl; in HandleLLVM() local
220 getOptLevel(ExtraArgs, OLvl); in HandleLLVM()
223 std::string OptIR = OptLLVM(IR, OLvl); in HandleLLVM()
225 CreateAndRunJITFunc(OptIR, OLvl); in HandleLLVM()