Skip to content

Add mlir backend#78

Merged
Menooker merged 64 commits into
mainfrom
mlir
May 26, 2026
Merged

Add mlir backend#78
Menooker merged 64 commits into
mainfrom
mlir

Conversation

@Menooker
Copy link
Copy Markdown
Owner

No description provided.

Menooker and others added 30 commits May 5, 2026 21:07
LowerHelper struct splits tsMap (handles) from scalarMap (scalars).
getScalarUncached(v, offset) is the shared util for BackRefOp,
for_each_back_window block-arg pre-load and getScalar; getScalar
caches offset-0 reads in scalarMap. Both return FailureOr<Value>
threaded via KUN_ASSIGN_OR_FAIL.

test_kun_to_cuda.py adds ws_maxabs = max_k |c[t-k] - c[t]| to the
windowed test — body reads both the IterValue block-arg and outer ts
c, covering the inner-scope tsMap/scalarMap inheritance. Split
run_windowed into build_windowed + test_windowed so the N=window
build is shared across mask=0 / mask=3 runs; folded the old
run_windowed_with_mask into test_windowed(mask=...).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Menooker Menooker merged commit 977c727 into main May 26, 2026
11 of 15 checks passed
@Menooker Menooker deleted the mlir branch May 26, 2026 15:31
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.

1 participant