This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] add affine parsing to new surface syntax for STEA
ClosedPublic

Authored by aartbik on Jun 30 2023, 1:14 PM.

Details

Summary

(1) uses the previously introduce API to reuse AffineExpr parser without codedup
(2) solves the look-ahead problem when parsing level spec

Diff Detail

Event Timeline

aartbik created this revision.Jun 30 2023, 1:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2023, 1:14 PM
aartbik requested review of this revision.Jun 30 2023, 1:14 PM
Peiming accepted this revision.Jun 30 2023, 2:02 PM
Peiming added inline comments.
mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMapParser.cpp
192

should be "if no level variable is ..." (I think?)

mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMapParser.h
24–33

seems that all kinds of brackets are used ;-)

This revision is now accepted and ready to land.Jun 30 2023, 2:02 PM
aartbik marked 2 inline comments as done.Jun 30 2023, 2:07 PM
aartbik added inline comments.
mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMapParser.cpp
192

right you are! or should I say, right you is ;-)

mlir/lib/Dialect/SparseTensor/IR/Detail/DimLvlMapParser.h
24–33

yeah, perhaps we can use < > to somewhere other than the arrow ;-)

aartbik updated this revision to Diff 536421.Jun 30 2023, 2:07 PM
aartbik marked 2 inline comments as done.

comment, rebased main

This revision was landed with ongoing or failed builds.Jun 30 2023, 2:49 PM
This revision was automatically updated to reflect the committed changes.