@@ -5,17 +5,17 @@ using handle_float_t = __hlsl_resource_t [[hlsl::resource_class(UAV)]] [[hlsl::c
55// CHECK: %"class.hlsl::RWBuffer" = type { target("dx.TypedBuffer", <4 x float>, 1, 0, 0)
66// CHECK: %"class.hlsl::StructuredBuffer" = type { target("dx.RawBuffer", %struct.MyStruct = type { <4 x float>, <2 x i32>, [8 x i8] }, 1, 0)
77
8- // CHECK: define void @"?fa@@YAXU__hlsl_resource_t@@uA@A@M@Z"(ptr noundef byval( target("dx.TypedBuffer", float, 1, 0, 0)) align 4 %a)
9- // CHECK: call void @"?foo1@@YAXU__hlsl_resource_t@@uA@A@M@Z"(ptr noundef byval( target("dx.TypedBuffer", float, 1, 0, 0)) align 4 %a )
10- // CHECK: declare void @"?foo1@@YAXU__hlsl_resource_t@@uA@A@M@Z"(ptr noundef byval( target("dx.TypedBuffer", float, 1, 0, 0)) align 4 )
8+ // CHECK: define void @"?fa@@YAXU__hlsl_resource_t@@uA@A@M@Z"(target("dx.TypedBuffer", float, 1, 0, 0) %a)
9+ // CHECK: call void @"?foo1@@YAXU__hlsl_resource_t@@uA@A@M@Z"(target("dx.TypedBuffer", float, 1, 0, 0)
10+ // CHECK: declare void @"?foo1@@YAXU__hlsl_resource_t@@uA@A@M@Z"(target("dx.TypedBuffer", float, 1, 0, 0))
1111
1212void foo1 (handle_float_t res);
1313
1414void fa (handle_float_t a) {
1515 foo1 (a);
1616}
1717
18- // CHECK: define void @"?fb@@YAXU__hlsl_resource_t@@uA@A@M@Z"(ptr noundef byval( target("dx.TypedBuffer", float, 1, 0, 0)) align 4 %a)
18+ // CHECK: define void @"?fb@@YAXU__hlsl_resource_t@@uA@A@M@Z"(target("dx.TypedBuffer", float, 1, 0, 0) %a)
1919void fb (handle_float_t a) {
2020 handle_float_t b = a;
2121}
0 commit comments