[clang] [clang-repl][CodeGen] Add setOptLevel, #pragma clang repl optimize(N) (PR #214793)
Aaron Jomy via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 22 15:02:11 PDT 2026
================
@@ -533,6 +617,21 @@ llvm::Expected<IncrementalExecutor &> Interpreter::getExecutionEngine() {
return *IncrExecutor.get();
}
+void Interpreter::setOptLevel(unsigned OptLevel, unsigned OptSize) {
+ CodeGenerator *CG = Act->getCodeGen();
+ if (!CG)
+ return;
+
+ CodeGenOptions CGO = getCompilerInstance()->getCodeGenOpts();
----------------
aaronj0 wrote:
Yes, this is no longer required and can be obtained directly from the CompileInvocation. Addressed
https://github.com/llvm/llvm-project/pull/214793
More information about the cfe-commits
mailing list