Skip to content

[Tracking Issue] Adding SplitModuleByTag passΒ #70

@yzh119

Description

@yzh119

Pitch

Currently, we use PreservePreprocess and RemovePreprocess pass to filter and split a given IRModule by tag preprocessing, however, format decomposition does not always produce preprocess blocks, some of them are post-processing blocks (e.g. when we transform the format of the output matrix. We should design a more general module split pass.

Proposed Solution

mod_preprocess, mod_compute = tir.transform.SplitModuleByTag("preprocess")(mod)
mod_compute, mod_postprocess = tir.transform.SplitModuleByTag("postprocess", reverse=True)(mod)

Metadata

Metadata

Assignees

Type

No type

Projects

Status

TODO

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions