---
id: pr-tilelang-1786
repo: tile-ai/tilelang
pr: 1786
title: 'fix(intrinsics): add missing _legalize_to_buffer_region in SM70 emitter'
author: Coloured-glaze
date: '2026-02-04'
url: https://github.com/tile-ai/tilelang/pull/1786
source_category: upstream-code
architectures:
- sm100
tags:
- compiler_runtime
- intrinsic
techniques: []
hardware_features: []
kernel_types:
- compiler
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: bb0634dd59e7d8aed26d254447167cb1314a41a2
inclusion_reason: 'Treat compiler/runtime integration as part of the kernel: launch wrapper, cache/JIT behavior, generated code, and build flags need tests.'
changed_paths:
- tilelang/intrinsics/mma_sm70_macro_generator.py
artifact_dir: evidence/pull-bundles/tilelang/gh-1786
head_ref_oid: 228702332a11d4600cd5b22c58f71050ed5e1d75
---
# fix(intrinsics): add missing _legalize_to_buffer_region in SM70 emitter

- Repository: `tile-ai/tilelang`
- PR: [1786](https://github.com/tile-ai/tilelang/pull/1786)
- Decision: `Treat compiler/runtime integration as part of the kernel: launch wrapper, cache/JIT behavior, generated code, and build flags need tests.`
- Reason: Treat compiler/runtime integration as part of the kernel: launch wrapper, cache/JIT behavior, generated code, and build flags need tests.

## Changed Paths

- `tilelang/intrinsics/mma_sm70_macro_generator.py`

## Evidence Bundle

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