Skip to content

[REFACTOR][TIR] Remove buffer type and axis separators#20019

Open
tqchen wants to merge 1 commit into
apache:mainfrom
tqchen:tvm-phase-out-axes-separator-and-buffer-type
Open

[REFACTOR][TIR] Remove buffer type and axis separators#20019
tqchen wants to merge 1 commit into
apache:mainfrom
tqchen:tvm-phase-out-axes-separator-and-buffer-type

Conversation

@tqchen

@tqchen tqchen commented Jul 16, 2026

Copy link
Copy Markdown
Member

Rationale

axes_separator and buffer_type (auto-broadcast buffers) add representation and propagation complexity that is not needed for flat-buffer use cases. This change removes those surfaces and standardizes buffer handling on the default flat layout. Backward compatibility for compact JSON containing the removed fields is intentionally out of scope.

Changes

  • Remove the reflected buffer fields and their C++, Python, packed-function, TVMScript, and printer surfaces.
  • Remove auto-broadcast binding and axis-separator propagation from TIR, S-TIR, Relax, and backend lowering.
  • Simplify buffer flattening and reconstruction for the supported flat-buffer contract.
  • Remove tests that only exercised the phased-out features while preserving default flat-buffer coverage.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the concepts of axis_separators and buffer_type (including kAutoBroadcast) from the TIR and Relax buffer representations, layout transformation passes, and scheduling APIs. This simplifies buffer definitions, constructors, and FFI bindings across C++ and Python, and cleans up associated tests and scheduling primitives such as SetAxisSeparator. I have no feedback to provide as there are no review comments.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@tqchen tqchen force-pushed the tvm-phase-out-axes-separator-and-buffer-type branch from b3db6ff to e120b11 Compare July 16, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants