Skip to content

mlir: dynamic shape specialization and JIT shape replacement (#671) - #883

Merged
godofecht merged 1 commit into
mainfrom
harvest/671-shape-spec
Sep 12, 2026
Merged

godofecht merged 1 commit into
mainfrom
harvest/671-shape-spec

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Closes #671. Adds specialize_shapes to rewrite dynamic tensor dims to static values for a chosen function, plus a shape_replacements option on compile_mlir_to_llvm so the JIT can lower a specialized variant. Ships a microbenchmark and 3 unit tests (passing).

Add specialize_shapes to rewrite dynamic tensor dims to static ones for
a chosen function, and a shape_replacements option on compile_mlir_to_llvm
so the JIT can lower a specialized variant. Ships a microbenchmark and
unit tests.

Co-Authored-By: Claude <[email protected]>
@godofecht
godofecht merged commit 7275283 into main Sep 12, 2026
10 checks passed
@godofecht
godofecht deleted the harvest/671-shape-spec branch September 12, 2026 13:34
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.

[MLIR Opt] Dynamic shape specialization and JIT kernel synthesis

1 participant