Skip to content

Commit fb10877

Browse files
author
Salinas, David
authored
[Comgr] Support 4-field-triple for Spirv (llvm#3732)
2 parents 6778db2 + 4773e06 commit fb10877

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

amd/comgr/src/comgr.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ amd_comgr_status_t COMGR::parseTargetIdentifier(StringRef IdentStr,
310310

311311

312312
// TODO: Add a LIT test for this
313-
if (IdentStr == "amdgcn-amd-amdhsa--amdgcnspirv") {
313+
if (IdentStr == "amdgcn-amd-amdhsa--amdgcnspirv" ||
314+
IdentStr == "amdgcn-amd-amdhsa-unknown-amdgcnspirv") {
314315
// Features not supported for SPIR-V
315316
if (!Ident.Features.empty())
316317
return AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT;

0 commit comments

Comments
 (0)