[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

Manuel Carrasco via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 15 02:25:19 PDT 2025


================
@@ -1421,6 +1421,16 @@ def fhip_emit_relocatable : Flag<["-"], "fhip-emit-relocatable">,
   HelpText<"Compile HIP source to relocatable">;
 def fno_hip_emit_relocatable : Flag<["-"], "fno-hip-emit-relocatable">,
   HelpText<"Do not override toolchain to compile HIP source to relocatable">;
+def use_experimental_spirv_backend
----------------
mgcarrasco wrote:

Ty. If we don't require a member variable, then `defm` does not seem to be the right option (see how `gpu_bundle_output` and `no_gpu_bundle_output` are defined).

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


More information about the cfe-commits mailing list