[llvm-branch-commits] [llvm] [DirectX] Implement the resource.store.rawbuffer intrinsic (PR #121282)

Helena Kotas via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jan 6 21:52:52 PST 2025


================
@@ -548,3 +550,85 @@ Examples:
        target("dx.TypedBuffer", f16, 1, 0) %buf, i32 %index, <4 x f16> %data)
    call void @llvm.dx.resource.store.typedbuffer.tdx.Buffer_v2f64_1_0_0t(
        target("dx.TypedBuffer", f64, 1, 0) %buf, i32 %index, <2 x f64> %data)
+
+For RawBuffer, we need two indices and we accept scalars and vectors of less
+than 4 elements. Note that we do allow vectors of 4 64-bit elements here.
----------------
hekota wrote:

```suggestion
For RawBuffer, we need two indices and we accept scalars and vectors of 4 
or less elements. Note that we do allow vectors of 4 64-bit elements here.
```

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


More information about the llvm-branch-commits mailing list