Skip to content

TVM/MLIR: refact with PlainNodeSchedule/LoopNest - #110

Open
guillon wants to merge 9 commits into
xtc-tools:mainfrom
guillon:dev/cguillon/tvm-refactor
Open

TVM/MLIR: refact with PlainNodeSchedule/LoopNest#110
guillon wants to merge 9 commits into
xtc-tools:mainfrom
guillon:dev/cguillon/tvm-refactor

Conversation

@guillon

@guillon guillon commented Jul 28, 2026

Copy link
Copy Markdown
Member

Motivation

Depends upon PR #106 . Ref only to last 2 commit.

Refactor TVM Schedulers TE/TIR to use a new PlainNodeScheduler/PlainNodeSchedule objects and convert through LoopNestBuilder before schedule is emitted.

Refactor MlirNodeScheduler to use PlainNodeScheduler/PlainNodeSchedule. Still use MlirNodeSchedule (actually derived from PlainNodeSchedule) for Transform dialect generation. Though refactored loop_nest construction with LoopNestBuilder on call to get_loop_nest().

Description

Add PlainNodeSchedule[r] and conversion to LoopNest through LoopNestBuilder.

Update TVM TE Emitter and TIR Emmiter to use LoopNest instead of the former TVMPlainSchedule object.

Update MlirNodeSchedule to use these also.

Commits

Ref to last 2 commit:

  • tvm: refactor for TVM
  • mlir: refactor for MLIR

Discussion

n/a

@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

@guillon
guillon force-pushed the dev/cguillon/tvm-refactor branch from 07f2ace to 6bebe42 Compare July 28, 2026 13:05
@guillon
guillon force-pushed the dev/cguillon/tvm-refactor branch from 6bebe42 to ffb6ee2 Compare July 28, 2026 13:17
@guillon guillon changed the title TVM: refactor TVMScheduler with PlainNodeSchedule/LoopNest TVM/MIR: refact with PlainNodeSchedule/LoopNest Jul 28, 2026
@guillon
guillon marked this pull request as ready for review July 28, 2026 14:23
@guillon
guillon requested a review from qaco July 28, 2026 14:23
@guillon guillon changed the title TVM/MIR: refact with PlainNodeSchedule/LoopNest TVM/MLIR: refact with PlainNodeSchedule/LoopNest Jul 28, 2026
@guillon guillon added the refactor Refactoring or simplification of code label Jul 28, 2026
@guillon
guillon force-pushed the dev/cguillon/tvm-refactor branch from 3b361a1 to c93629e Compare July 28, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactoring or simplification of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants