[clang] [llvm] [AMDGPU] Add target intrinsic for s_prefetch_data (PR #107133)
Shilei Tian via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 3 10:53:18 PDT 2024
================
@@ -19489,6 +19489,12 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID,
F, {EmitScalarExpr(E->getArg(0)), EmitScalarExpr(E->getArg(1)),
EmitScalarExpr(E->getArg(2)), EmitScalarExpr(E->getArg(3))});
}
+ case AMDGPU::BI__builtin_amdgcn_s_prefetch_data: {
+ llvm::Value *Ptr = EmitScalarExpr(E->getArg(0));
----------------
shiltian wrote:
`emitBuiltinWithOneOverloadedType` doesn't have to have a return value
https://github.com/llvm/llvm-project/pull/107133
More information about the cfe-commits
mailing list