Skip to content

Commit ccc430f

Browse files
committed
fixup: update for shader flags changes
1 parent 5e6a72a commit ccc430f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

llvm/lib/Target/DirectX/DXILShaderFlags.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static void updateFunctionFlags(ComputedShaderFlags &CSF, const Instruction &I,
5454
switch (II->getIntrinsicID()) {
5555
default:
5656
break;
57-
case Intrinsic::dx_typedBufferLoad: {
57+
case Intrinsic::dx_resource_load_typedbuffer: {
5858
dxil::ResourceTypeInfo &RTI =
5959
DRTM[cast<TargetExtType>(II->getArgOperand(0)->getType())];
6060
if (RTI.isTyped())

llvm/test/CodeGen/DirectX/ShaderFlags/typed-uav-load-additional-formats.ll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@ target triple = "dxil-pc-shadermodel6.7-library"
1616
; CHECK: Function multicomponent : 0x00002000
1717
define <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
2626
define 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
3535
define 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

Comments
 (0)