pan/midgard: Add mir_rewrite_dst_tag helper