Skip to content

Commit

Permalink
Merge branch 'amd-staging' of https://github.com/ROCm/SPIRV-LLVM-Tran…
Browse files Browse the repository at this point in the history
…slator into amd-staging
  • Loading branch information
AlexVlx committed Nov 17, 2024
2 parents 320f8e7 + ba8701e commit d8d839e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/SPIRV/SPIRVWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -756,9 +756,10 @@ SPIRVType *LLVMToSPIRVBase::transPointerType(SPIRVType *ET, unsigned AddrSpc) {
!BM->shouldEmitFunctionPtrAddrSpace())
return transPointerType(ET, SPIRAS_Private);
if (BM->isAllowedToUseExtension(ExtensionID::SPV_KHR_untyped_pointers) &&
!(ET->isTypeArray() || ET->isTypeVector() || ET->isSPIRVOpaqueType() ||
!(ET->isTypeArray() || ET->isTypeVector() || ET->isTypeStruct() ||
ET->isSPIRVOpaqueType() ||
(M->getTargetTriple() == "spirv64-amd-amdhsa" &&
ET->getOpCode() == OpTypeFunction))) {
ET->getOpCode() == OpTypeFunction))) {
TranslatedTy = BM->addUntypedPointerKHRType(
SPIRSPIRVAddrSpaceMap::map(static_cast<SPIRAddressSpace>(AddrSpc)));
} else {
Expand Down

0 comments on commit d8d839e

Please sign in to comment.