================
@@ -110,9 +110,10 @@ class CIRGenConsumer : public clang::ASTConsumer {
 
     if (!FEOptions.ClangIRDisablePasses) {
       // Setup and run CIR pipeline.
+      bool EnableLoweringPrepare = Action != CIRGenAction::OutputType::EmitCIR;
----------------
AmrDeveloper wrote:

I updated it locally to run the pass unconditionally from 
`lowerDirectlyFromCIRToLLVMIR`. Now, we need a way to pass `clang::ASTContext` 
to lowerDirectlyFromCIRToLLVMIR that will be used in `cir-opt` (We need to 
register the pass to be able to use it in the test) and `cir-translate`, and in 
those, we don't have ASTContext.

I am trying to see if we can not depend on the ASTContext in the LP or create a 
default context to use in opt and translate 🤔.

https://github.com/llvm/llvm-project/pull/154107
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to