[llvm-branch-commits] [clang] [CIR] Add options to emit ClangIR and enable the ClangIR pipeline (PR #89030)
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Apr 17 22:07:03 PDT 2024
================
@@ -2876,6 +2876,15 @@ def flax_vector_conversions : Flag<["-"], "flax-vector-conversions">, Group<f_Gr
def flimited_precision_EQ : Joined<["-"], "flimited-precision=">, Group<f_Group>;
def fapple_link_rtlib : Flag<["-"], "fapple-link-rtlib">, Group<f_Group>,
HelpText<"Force linking the clang builtins runtime library">;
+
+/// ClangIR-specific options - BEGIN
+def fclangir_enable : Flag<["-"], "fclangir-enable">, Visibility<[ClangOption, CC1Option]>,
----------------
MaskRay wrote:
+1 to -fclangir and -fno-clangir.
You can use `BoolFOption` to define two options at one time. Ensure that only the positive form gets a `CC1Option` (so that `clang -cc1 -fno-clangir` is invalid`)
https://github.com/llvm/llvm-project/pull/89030
More information about the llvm-branch-commits
mailing list