[clang] [CIR] Initial implementation of lowering CIR to MLIR (PR #127835)

Valentin Clement バレンタイン クレメン via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 19 10:27:51 PST 2025


================
@@ -2958,6 +2958,8 @@ defm clangir : BoolFOption<"clangir",
   BothFlags<[], [ClangOption, CC1Option], "">>;
 def emit_cir : Flag<["-"], "emit-cir">, Visibility<[ClangOption, CC1Option]>,
   Group<Action_Group>, HelpText<"Build ASTs and then lower to ClangIR">;
+def emit_cir_mlir : Flag<["-"], "emit-cir-mlir">, Visibility<[CC1Option]>, Group<Action_Group>,
----------------
clementval wrote:

Yeah we have currently two options. `-emit-fir` and ` -emit-hlfir`. These are dump the IR at different level. But as Andy mentioned, it is with the fir or hlfir dialect. 

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


More information about the cfe-commits mailing list