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

Valentin Clement バレンタイン クレメン via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 20 14:54:29 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:

I double checked in flang and we have a couple of tests (7 files) using that option but we can switch these to use `-emit-fir` or -`emit-hlfir`. 

@banach-space Since you are probably the initial author of this option, do you have any objection to make `-emit-mlir` identical for clang and flang? 



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


More information about the cfe-commits mailing list