[llvm] [AMDGPU] Add target feature require-naturally-aligned-buffer-access (PR #115479)

Piotr Sobczak via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 21 09:17:08 PST 2024


================
@@ -119,6 +119,12 @@ def FeatureUnalignedDSAccess : SubtargetFeature<"unaligned-ds-access",
   "Hardware supports unaligned local and region loads and stores"
 >;
 
+def FeatureRequireNaturallyAlignedBufferAccess : SubtargetFeature<"require-naturally-aligned-buffer-access",
+  "RequireNaturallyAlignedBufferAccess",
+  "true",
+  "Requires natural alignment of buffer accesses"
----------------
piotrAMD wrote:

Maybe defining the new feature with 'alignment' in its name is unfortunate. This is really about extra out-of-bounds guarantees that are normally not required.
I will add some more describing text here, similar to what I added in the comment in SIISelLowering.cpp.

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


More information about the llvm-commits mailing list