[clang] [llvm] [DirectX][SPIRV] Consistent names for HLSL resource intrinsics (PR #120466)

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 18 10:58:36 PST 2024


================
@@ -208,37 +208,44 @@ Examples:
 
 .. code-block:: llvm
 
-   ; RWBuffer<float4> Buf : register(u5, space3)
-   %buf = call target("dx.TypedBuffer", <4 x float>, 1, 0, 0)
-               @llvm.dx.handle.fromBinding.tdx.TypedBuffer_f32_1_0(
-                   i32 3, i32 5, i32 1, i32 0, i1 false)
-
-   ; RWBuffer<int> Buf : register(u7, space2)
-   %buf = call target("dx.TypedBuffer", i32, 1, 0, 1)
-               @llvm.dx.handle.fromBinding.tdx.TypedBuffer_i32_1_0t(
-                   i32 2, i32 7, i32 1, i32 0, i1 false)
-
-   ; Buffer<uint4> Buf[24] : register(t3, space5)
-   %buf = call target("dx.TypedBuffer", <4 x i32>, 0, 0, 0)
-               @llvm.dx.handle.fromBinding.tdx.TypedBuffer_i32_0_0t(
-                   i32 2, i32 7, i32 24, i32 0, i1 false)
-
-   ; struct S { float4 a; uint4 b; };
+   ;
+RWBuffer<float4> Buf : register(u5, space3) % buf =
----------------
bogner wrote:

Fixed (and built docs locally). A few lines in this file were reformatted incorrectly.

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


More information about the llvm-commits mailing list