Currently memory intrinsics (memcpy, memset...) are handled in DXILLegalize, which runs after DXILResourceAccess. We want to run this before we transform resource pointers (dx.resource.getpointer) so that we have simpler operations to work with and can forward loads to stores cleanly.