Lines Matching defs:optLevel
42 int optLevel, function_ref<void(llvm::Module &)> initialLlvmIRCallback,
47 optLevel(optLevel), initialLlvmIRCallback(initialLlvmIRCallback),
183 int optLevel) {
184 if (optLevel < 0 || optLevel > 3)
186 << "Invalid optimization level: " << optLevel << ".";
194 (*targetMachine)->setOptLevel(static_cast<llvm::CodeGenOptLevel>(optLevel));
197 makeOptimizingTransformer(optLevel, /*sizeLevel=*/0, *targetMachine);
278 if (failed(optimizeModule(*llvmModule, optLevel)))