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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 21 08:36:09 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"
----------------
arsenm wrote:

Should elaborate more. This also seems like the backwards direction to define this. I would assume stricter alignment is the base requirement, and opt-in to relaxed 

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


More information about the llvm-commits mailing list