File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
llvm/test/CodeGen/DirectX/Metadata Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,16 @@ define void @test() #0 {
78
78
79
79
attributes #0 = { noinline nounwind "hlsl.shader" ="compute" }
80
80
81
+ ; CHECK: %TypedBuffer = type { <4 x half> }
82
+ ; CHECK: %TypedBuffer.0 = type { <2 x float> }
83
+ ; CHECK: %TypedBuffer.1 = type { double }
84
+ ; CHECK: %TypedBuffer.2 = type { <4 x i32> }
85
+ ; CHECK: %ByteAddressBuffer = type { i32 }
86
+ ; CHECK: %StructuredBuffer = type { i16 }
87
+ ; CHECK: %TypedBuffer.3 = type { i64 }
88
+ ; CHECK: %TypedBuffer.4 = type { <4 x float> }
89
+ ; CHECK: %TypedBuffer.5 = type { i64 }
90
+
81
91
; CHECK: @Zero = external constant %TypedBuffer
82
92
; CHECK: @One = external constant %TypedBuffer.0
83
93
; CHECK: @Two = external constant %TypedBuffer.1
Original file line number Diff line number Diff line change @@ -95,6 +95,19 @@ define void @test() #0 {
95
95
96
96
attributes #0 = { noinline nounwind "hlsl.shader" ="compute" }
97
97
98
+ ; CHECK: %RWTypedBuffer = type { <4 x half> }
99
+ ; CHECK: %RWTypedBuffer.0 = type { <2 x float> }
100
+ ; CHECK: %RWTypedBuffer.1 = type { double }
101
+ ; CHECK: %RWTypedBuffer.2 = type { <4 x i32> }
102
+ ; CHECK: %RWByteAddressBuffer = type { i32 }
103
+ ; CHECK: %RWStructuredBuffer = type { i16 }
104
+ ; CHECK: %RasterizerOrderedTypedBuffer = type { <4 x i32> }
105
+ ; CHECK: %RasterizerOrderedStructuredBuffer = type { <4 x i32> }
106
+ ; CHECK: %RasterizerOrderedByteAddressBuffer = type { i32 }
107
+ ; CHECK: %RWTypedBuffer.3 = type { i64 }
108
+ ; CHECK: %RWTypedBuffer.4 = type { <4 x float> }
109
+ ; CHECK: %RWTypedBuffer.5 = type { i64 }
110
+
98
111
; CHECK: @Zero = external constant %RWTypedBuffer
99
112
; CHECK: @One = external constant %RWTypedBuffer.0
100
113
; CHECK: @Two = external constant %RWTypedBuffer.1
You can’t perform that action at this time.
0 commit comments