[Mlir-commits] [mlir] [ROCDL] Added missing named barrier ops (gfx1250) (PR #162488)
Krzysztof Drewniak
llvmlistbot at llvm.org
Thu Oct 9 14:09:32 PDT 2025
krzysz00 wrote:
@lialan To answer your question, the declarations I see in tests for these named barriers are
```
@bar3 = internal addrspace(3) global target("amdgcn.named.barrier", 0) poison`
```
So, at the MLIR level, you just need a `poison` global value, in LDS, of type
`!llvm.target<"amdgcn.named.barrier", 0>`
(No, I don't know what the `0` is for)
So future work will be adding `amdgpu.named_barrier @symbol`
https://github.com/llvm/llvm-project/pull/162488
More information about the Mlir-commits
mailing list