---
id: pr-tilelang-2138
repo: tile-ai/tilelang
pr: 2138
title: '[Refactor][Backend] Split tl.copy lowering by backend'
author: LeiWang1999
date: '2026-05-06'
url: https://github.com/tile-ai/tilelang/pull/2138
source_category: upstream-code
architectures:
- sm100
tags:
- fp8
- fused-op
- gemm
- mla
techniques:
- kernel-fusion
hardware_features:
- fp8
kernel_types:
- gemm
- mla
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 48998d26956487a61796100095c1388b2b570fc4
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- CMakeLists.txt
- src/backend/cpu/op/copy.cc
- src/backend/cuda/CMakeLists.txt
- src/backend/cuda/op/copy.cc
- src/backend/cuda/op/copy.h
- src/backend/cuda/op/copy_analysis.cc
- src/backend/metal/op/copy.cc
- src/backend/rocm/CMakeLists.txt
- src/backend/rocm/op/copy.cc
- src/backend/webgpu/op/copy.cc
- src/op/atomic_add.cc
- src/op/copy.cc
- src/op/copy.h
- src/transform/inject_pipeline.cc
- src/transform/instruction_annotation.cc
- src/transform/pipeline_planning.cc
- src/transform/producer_consumer_ws.cc
- tilelang/contrib/nvcc.py
- tilelang/jit/adapter/cutedsl/libgen.py
- tilelang/jit/adapter/libgen.py
- tilelang/utils/sparse.py
artifact_dir: evidence/pull-bundles/tilelang/gh-2138
head_ref_oid: 6d2b259c32cb39319367eddfd0e905583538016f
---
# [Refactor][Backend] Split tl.copy lowering by backend

- Repository: `tile-ai/tilelang`
- PR: [2138](https://github.com/tile-ai/tilelang/pull/2138)
- Decision: `Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.`
- Reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.

## Changed Paths

- `CMakeLists.txt`
- `src/backend/cpu/op/copy.cc`
- `src/backend/cuda/CMakeLists.txt`
- `src/backend/cuda/op/copy.cc`
- `src/backend/cuda/op/copy.h`
- `src/backend/cuda/op/copy_analysis.cc`
- `src/backend/metal/op/copy.cc`
- `src/backend/rocm/CMakeLists.txt`
- `src/backend/rocm/op/copy.cc`
- `src/backend/webgpu/op/copy.cc`
- `src/op/atomic_add.cc`
- `src/op/copy.cc`
- `src/op/copy.h`
- `src/transform/inject_pipeline.cc`
- `src/transform/instruction_annotation.cc`
- `src/transform/pipeline_planning.cc`
- `src/transform/producer_consumer_ws.cc`
- `tilelang/contrib/nvcc.py`
- `tilelang/jit/adapter/cutedsl/libgen.py`
- `tilelang/jit/adapter/libgen.py`
- `tilelang/utils/sparse.py`

## Evidence Bundle

`evidence/pull-bundles/tilelang/gh-2138`
