Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b96263c

Browse files
authored
[HLSL] Update global array convergence test (#193380)
Updates global array initialization convergence test to use static array of resources instead of a user-defined struct with a constructor. The test will no longer work as is once the support for user-defined constructors is removed (#193375).
1 parent bd8b993 commit b96263c

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

clang/test/CodeGenHLSL/convergence/global_array.hlsl

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,11 @@
66

77
// CHECK: [[loop_entry]]:
88
// CHECK: [[loop_token:%.*]] = call token @llvm.experimental.convergence.loop() [ "convergencectrl"(token [[entry_token]]) ]
9-
// CHECK: call spir_func void {{.*}} [ "convergencectrl"(token [[loop_token]]) ]
9+
// CHECK: call void {{.*}} [ "convergencectrl"(token [[loop_token]]) ]
1010
// CHECK: br i1 {{%.*}} label {{%.*}} label %[[loop_entry]]
1111

12-
struct S {
13-
int i;
14-
S() { i = 10; }
15-
};
12+
static RWBuffer<float> s[2];
1613

17-
static S s[2];
18-
19-
[numthreads(4,1,1)]
14+
[numthreads(1,1,1)]
2015
void main() {
2116
}
22-

0 commit comments

Comments
 (0)