[clang] Add SPIRV support to HIPAMD toolchain (PR #75357)
Alex Voicu via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 13 11:41:12 PST 2023
================
@@ -209,6 +210,13 @@ void AMDGCN::Linker::ConstructJob(Compilation &C, const JobAction &JA,
if (JA.getType() == types::TY_LLVM_BC)
return constructLlvmLinkCommand(C, JA, Inputs, Output, Args);
+ if (Args.getLastArgValue(options::OPT_mcpu_EQ) == "generic") {
+ llvm::opt::ArgStringList TrArgs{"--spirv-max-version=1.1",
----------------
AlexVlx wrote:
I'm not sure we want to stick with 1.1 here, the Translator goes up to 1.4 at the moment - should we consider going to that instead?
https://github.com/llvm/llvm-project/pull/75357
More information about the cfe-commits
mailing list