@@ -16,26 +16,26 @@ target triple = "dxil-pc-shadermodel6.7-library"
1616; CHECK: Function multicomponent : 0x00002000
1717define <4 x float > @multicomponent () #0 {
1818 %res = call target ("dx.TypedBuffer" , <4 x float >, 1 , 0 , 0 )
19- @llvm.dx.handle.fromBinding (i32 0 , i32 0 , i32 1 , i32 0 , i1 false )
20- %val = call <4 x float > @llvm.dx.typedBufferLoad (
19+ @llvm.dx.resource.handlefrombinding (i32 0 , i32 0 , i32 1 , i32 0 , i1 false )
20+ %val = call <4 x float > @llvm.dx.resource.load.typedbuffer (
2121 target ("dx.TypedBuffer" , <4 x float >, 1 , 0 , 0 ) %res , i32 0 )
2222 ret <4 x float > %val
2323}
2424
2525; CHECK: Function onecomponent : 0x00000000
2626define float @onecomponent () #0 {
2727 %res = call target ("dx.TypedBuffer" , float , 1 , 0 , 0 )
28- @llvm.dx.handle.fromBinding (i32 0 , i32 0 , i32 1 , i32 0 , i1 false )
29- %val = call float @llvm.dx.typedBufferLoad (
28+ @llvm.dx.resource.handlefrombinding (i32 0 , i32 0 , i32 1 , i32 0 , i1 false )
29+ %val = call float @llvm.dx.resource.load.typedbuffer (
3030 target ("dx.TypedBuffer" , float , 1 , 0 , 0 ) %res , i32 0 )
3131 ret float %val
3232}
3333
3434; CHECK: Function noload : 0x00000000
3535define void @noload (<4 x float > %val ) #0 {
3636 %res = call target ("dx.TypedBuffer" , <4 x float >, 1 , 0 , 0 )
37- @llvm.dx.handle.fromBinding (i32 0 , i32 0 , i32 1 , i32 0 , i1 false )
38- call void @llvm.dx.typedBufferStore (
37+ @llvm.dx.resource.handlefrombinding (i32 0 , i32 0 , i32 1 , i32 0 , i1 false )
38+ call void @llvm.dx.resource.store.typedbuffer (
3939 target ("dx.TypedBuffer" , <4 x float >, 1 , 0 , 0 ) %res , i32 0 ,
4040 <4 x float > %val )
4141 ret void
0 commit comments