[clang] [clang-repl][CodeGen] Add setOptLevel, #pragma clang repl optimize(N) (PR #214793)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 31 03:59:51 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.
----------------
vgvassilev wrote:
```suggestion
// spelled without the leading dash, e.g. O0, O1,...
```
please enumerate what's currently supported.
https://github.com/llvm/llvm-project/pull/214793
More information about the cfe-commits
mailing list