Add TIR Schedule and TIR support for consumer fusion#106
Draft
guillon wants to merge 5 commits into
Draft
Conversation
guillon
force-pushed
the
dev/cguillon/tir-schedule
branch
from
July 22, 2026 17:36
221f792 to
cfb4805
Compare
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
guillon
force-pushed
the
dev/cguillon/tir-schedule
branch
3 times, most recently
from
July 23, 2026 19:47
a57e21e to
bfc8e58
Compare
guillon
force-pushed
the
dev/cguillon/tir-schedule
branch
from
July 24, 2026 01:14
bfc8e58 to
adfd220
Compare
guillon
force-pushed
the
dev/cguillon/tir-schedule
branch
from
July 24, 2026 02:13
adfd220 to
1239736
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
TVM's legacy TE scheduling API is no longer available in recent TVM releases. Add an opt-in TIR scheduling path while preserving the existing TE path and XTC scheduling interface.
Description
This introduces schedulable/scheduled TVM expression abstractions that lower TE expressions to either TE schedules or TIR
PrimFuncschedules. The TVM scheduler now emits TIR transformations for tiling, interchange, caching, buffering, unrolling, vectorization, parallelization, and producer/consumer fusion. Compilation, IR dumping, C emission, and library generation handle both schedule forms, including TVM version differences.The TIR path can be selected with the backend
tir_scheduleoption or the exploration CLI's--tir-scheduleflag.LoopNestnow records and displaysfuse_producer_atandfuse_consumer_atannotations, with the latter exposed through the scheduler interface. FileCheck coverage includes scheduled matmul and fused producer/consumer graphs, while retaining TE fusion coverage.Commits
fuse_producer_attoLoopNest.fuse_consumer_atscheduling primitive and TVM TIR support.Discussion
The TIR path is currently still optional, the TE scheduling remains the default. It my be changed in the future.