Skip to content

Commit ed2ad63

Browse files
committed
[clang][Driver] Add new the -use-spirv-backend option to enable the SPIRV backend instead of the SPIRV translator for HIP.
1 parent a2b4c0f commit ed2ad63

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

clang/include/clang/Options/Options.td

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,6 +1427,16 @@ def fhip_emit_relocatable : Flag<["-"], "fhip-emit-relocatable">,
14271427
HelpText<"Compile HIP source to relocatable">;
14281428
def fno_hip_emit_relocatable : Flag<["-"], "fno-hip-emit-relocatable">,
14291429
HelpText<"Do not override toolchain to compile HIP source to relocatable">;
1430+
def use_spirv_backend
1431+
: Flag<["-"], "use-spirv-backend">,
1432+
Group<hip_Group>,
1433+
Flags<[HelpHidden]>,
1434+
HelpText<"Use the SPIRV backend for compilation ">;
1435+
def no_use_spirv_backend
1436+
: Flag<["-"], "no-use-spirv-backend">,
1437+
Group<hip_Group>,
1438+
Flags<[HelpHidden]>,
1439+
HelpText<"Do not use the SPIRV backend for compilation ">;
14301440
}
14311441

14321442
// Clang specific/exclusive options for OpenACC.

0 commit comments

Comments
 (0)