[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:37 PDT 2026
================
@@ -216,6 +221,80 @@ static llvm::Error ExecuteIncrementalAction(CompilerInstance &CI,
return llvm::Error::success();
}
+// '#pragma clang repl optimize(<opt>)' sets the optimization level and size
+// used to emit modules for input parsed after the pragma. <opt> is an -O flag
+// spelled without the leading dash, e.g. O2 or Os.
----------------
aaronj0 wrote:
Addressed
https://github.com/llvm/llvm-project/pull/214793
More information about the cfe-commits
mailing list