[clang] [llvm] [AMDGPU] Add target intrinsic for s_prefetch_data (PR #107133)

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 3 11:04:03 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));
----------------
rampitec wrote:

Hm, ok, The description of the function is misleading. Done.

https://github.com/llvm/llvm-project/pull/107133


More information about the llvm-commits mailing list