[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:38 PST 2025


================
@@ -55,6 +56,13 @@ class EmitCIRAction : public CIRGenAction {
   EmitCIRAction(mlir::MLIRContext *MLIRCtx = nullptr);
 };
 
+class EmitLLVMAction : public CIRGenAction {
+  virtual void anchor();
+
+public:
+  EmitLLVMAction(mlir::MLIRContext *MLIRCtx = nullptr);
----------------
AaronBallman wrote:

Under what circumstances does it make sense to pass a null MLIR context? (Mostly wondering why the pattern is to use a default parameter here rather than make the caller pass it explicitly.)

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


More information about the cfe-commits mailing list