Skip to content

Commit 7d26f23

Browse files
committed
[Comgr] Support 4-field-triple for spirv
1 parent cdc1ea8 commit 7d26f23

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
@@ -346,7 +346,8 @@ amd_comgr_status_t COMGR::parseTargetIdentifier(StringRef IdentStr,
346346

347347

348348
// TODO: Add a LIT test for this
349-
if (IdentStr == "amdgcn-amd-amdhsa--amdgcnspirv") {
349+
if (IdentStr == "amdgcn-amd-amdhsa--amdgcnspirv" ||
350+
IdentStr == "amdgcn-amd-amdhsa-unknown-amdgcnspirv") {
350351
// Features not supported for SPIR-V
351352
if (!Ident.Features.empty())
352353
return AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT;

0 commit comments

Comments
 (0)