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