[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 28 11:10:39 PST 2025


================
@@ -66,6 +81,17 @@ class CIRGenConsumer : public clang::ASTConsumer {
         MlirModule->print(*OutputStream, Flags);
       }
       break;
+    case CIRGenAction::OutputType::EmitLLVM: {
+      llvm::LLVMContext LLVMCtx;
+      auto LLVMModule = lowerFromCIRToLLVMIR(CI.getFrontendOpts(), MlirModule,
----------------
AaronBallman wrote:

Please spell out the type instead of using `auto`.

https://github.com/llvm/llvm-project/pull/124650


More information about the cfe-commits mailing list