[clang] [CIR] Intitial upstreaming of LibOpt pass (PR #172487)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 17 11:50:25 PST 2026
================
@@ -114,10 +114,14 @@ class CIRGenConsumer : public clang::ASTConsumer {
mlir::MLIRContext &MlirCtx = Gen->getMLIRContext();
if (!FEOptions.ClangIRDisablePasses) {
+ std::string libOptOptions = FEOptions.clangIRLibOptOptions;
+
// Setup and run CIR pipeline.
- if (runCIRToCIRPasses(MlirModule, MlirCtx, C,
- !FEOptions.ClangIRDisableCIRVerifier,
- CGO.OptimizationLevel > 0)
+ const bool enableLibOpt =
----------------
andykaylor wrote:
```suggestion
const bool EnableLibOpt =
```
https://github.com/llvm/llvm-project/pull/172487
More information about the cfe-commits
mailing list