Skip to content

Commit ee0e82c

Browse files
committed
add InferAS
1 parent 2457b1a commit ee0e82c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,8 @@ bool NVPTXTTIImpl::collectFlatAddressOperands(SmallVectorImpl<int> &OpIndexes,
564564
case Intrinsic::nvvm_isspacep_global:
565565
case Intrinsic::nvvm_isspacep_local:
566566
case Intrinsic::nvvm_isspacep_shared:
567-
case Intrinsic::nvvm_isspacep_shared_cluster: {
567+
case Intrinsic::nvvm_isspacep_shared_cluster:
568+
case Intrinsic::nvvm_prefetch_tensormap:{
568569
OpIndexes.push_back(0);
569570
return true;
570571
}
@@ -587,6 +588,9 @@ Value *NVPTXTTIImpl::rewriteIntrinsicWithAddressSpace(IntrinsicInst *II,
587588
return ConstantInt::get(II->getType(), *R);
588589
return nullptr;
589590
}
591+
case Intrinsic::nvvm_prefetch_tensormap: {
592+
return nullptr;
593+
}
590594
}
591595
return nullptr;
592596
}

0 commit comments

Comments
 (0)