File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -553,6 +553,14 @@ class OpLowerer {
553
553
});
554
554
}
555
555
556
+ [[nodiscard]] bool lowerGetPointer (Function &F) {
557
+ // These should have already been handled in DXILResourceAccess, so we can
558
+ // just clean up the dead prototype.
559
+ assert (F.user_empty () && " getpointer operations should have been removed" );
560
+ F.eraseFromParent ();
561
+ return false ;
562
+ }
563
+
556
564
[[nodiscard]] bool lowerTypedBufferStore (Function &F) {
557
565
IRBuilder<> &IRB = OpBuilder.getIRB ();
558
566
Type *Int8Ty = IRB.getInt8Ty ();
@@ -706,6 +714,9 @@ class OpLowerer {
706
714
case Intrinsic::dx_handle_fromBinding:
707
715
HasErrors |= lowerHandleFromBinding (F);
708
716
break ;
717
+ case Intrinsic::dx_resource_getpointer:
718
+ HasErrors |= lowerGetPointer (F);
719
+ break ;
709
720
case Intrinsic::dx_typedBufferLoad:
710
721
HasErrors |= lowerTypedBufferLoad (F, /* HasCheckBit=*/ false );
711
722
break ;
You can’t perform that action at this time.
0 commit comments