File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -308,8 +308,16 @@ amd_comgr_status_t COMGR::parseTargetIdentifier(StringRef IdentStr,
308
308
Ident.Processor = Ident.Features [0 ];
309
309
Ident.Features .erase (Ident.Features .begin ());
310
310
311
- size_t IsaIndex;
312
311
312
+ // TODO: Add a LIT test for this
313
+ if (IdentStr == " amdgcn-amd-amdhsa--amdgcnspirv" ) {
314
+ // Features not supported for SPIR-V
315
+ if (!Ident.Features .empty ())
316
+ return AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT;
317
+ return AMD_COMGR_STATUS_SUCCESS;
318
+ }
319
+
320
+ size_t IsaIndex;
313
321
amd_comgr_status_t Status = metadata::getIsaIndex (IdentStr, IsaIndex);
314
322
if (Status != AMD_COMGR_STATUS_SUCCESS) {
315
323
return Status;
@@ -981,6 +989,10 @@ amd_comgr_status_t AMD_COMGR_API
981
989
return AMD_COMGR_STATUS_SUCCESS;
982
990
}
983
991
992
+ if (StringRef (IsaName) == " amdgcn-amd-amdhsa--amdgcnspirv" ) {
993
+ return ActionP->setIsaName (IsaName);
994
+ }
995
+
984
996
if (!metadata::isValidIsaName (IsaName)) {
985
997
return AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT;
986
998
}
You can’t perform that action at this time.
0 commit comments