[clang] [flang] [flang][cuda] Add -fcuda option (PR #84944)

Slava Zakharin via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 12 09:42:12 PDT 2024


================
@@ -6488,6 +6488,9 @@ defm stack_arrays : BoolOptionWithoutMarshalling<"f", "stack-arrays",
 defm loop_versioning : BoolOptionWithoutMarshalling<"f", "version-loops-for-stride",
   PosFlag<SetTrue, [], [ClangOption], "Create unit-strided versions of loops">,
    NegFlag<SetFalse, [], [ClangOption], "Do not create unit-strided loops (default)">>;
+
+def fcuda : Flag<["-"], "fcuda">, Group<f_Group>,
----------------
vzakhari wrote:

I wonder if we also want to wire it to clang's `-x cuda` option.  It might be good to use the same flags for clang/flang in makefiles/cmake.  Though, I am not sure if the meaning of the two options is exactly the same.  Maybe someone else knows.

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


More information about the cfe-commits mailing list