[llvm-branch-commits] [llvm] [AMDGPU][SIMemoryLegalizer] Lower single-wave workgroup scope to wavefront in absence of LDSDMA (PR #224065)

Sameer Sahasrabuddhe via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Oct 5 01:59:15 PDT 2026


================
@@ -1401,6 +1401,101 @@ struct AAAMDGPUMinAGPRAlloc
 
 const char AAAMDGPUMinAGPRAlloc::ID = 0;
 
+/// Deduce the function attribute "amdgpu-no-async"
+struct AAAMDGPUNoAsync : public StateWrapper<BooleanState, AbstractAttribute> {
+  using Base = StateWrapper<BooleanState, AbstractAttribute>;
+  AAAMDGPUNoAsync(const IRPosition &IRP, Attributor &A) : Base(IRP) {}
+
+  /// Create an abstract attribute view for the position \p IRP.
+  static AAAMDGPUNoAsync &createForPosition(const IRPosition &IRP,
+                                            Attributor &A) {
+    if (IRP.getPositionKind() == IRPosition::IRP_FUNCTION)
----------------
ssahasra wrote:

```suggestion
    assert(IRP.getPositionKind() == IRPosition::IRP_FUNCTION);
```

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


More information about the llvm-branch-commits mailing list