Skip to content

Commit de20dbc

Browse files
authored
[Comgr] Support 4-field-triple for Spirv
1 parent 7f42812 commit de20dbc

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)