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 {
553553 });
554554 }
555555
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+
556564 [[nodiscard]] bool lowerTypedBufferStore (Function &F) {
557565 IRBuilder<> &IRB = OpBuilder.getIRB ();
558566 Type *Int8Ty = IRB.getInt8Ty ();
@@ -706,6 +714,9 @@ class OpLowerer {
706714 case Intrinsic::dx_handle_fromBinding:
707715 HasErrors |= lowerHandleFromBinding (F);
708716 break ;
717+ case Intrinsic::dx_resource_getpointer:
718+ HasErrors |= lowerGetPointer (F);
719+ break ;
709720 case Intrinsic::dx_typedBufferLoad:
710721 HasErrors |= lowerTypedBufferLoad (F, /* HasCheckBit=*/ false );
711722 break ;
You can’t perform that action at this time.
0 commit comments