[llvm] [AMDGPU] Using feature to define vmem cacheline size (PR #207884)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 16:53:00 PDT 2026


================
@@ -409,6 +409,15 @@ class SubtargetFeatureInstCacheLineSize <int Value> : SubtargetFeature <
 def FeatureInstCacheLineSize64  : SubtargetFeatureInstCacheLineSize<64>;
 def FeatureInstCacheLineSize128 : SubtargetFeatureInstCacheLineSize<128>;
 
+class SubtargetFeatureDataCacheLineSize <int Value> : SubtargetFeature <
+  "datacachelinesize"#Value,
+  "DataCacheLineSize",
+  !cast<string>(Value),
+  "Data (VMEM) cache line size in bytes."
+>;
+
+def FeatureDataCacheLineSize128 : SubtargetFeatureDataCacheLineSize<128>;
----------------
Shoreshen wrote:

Hi @ro-i , please see my previous comment reply to @arsenm, I will double check if pre gfx12 target support prefetch (has s_prefetch instructions)

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


More information about the llvm-commits mailing list