This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Add a helper class to help lowering operations with/without function calls
ClosedPublic

Authored by Peiming on May 12 2023, 1:34 PM.

Diff Detail

Event Timeline

Peiming created this revision.May 12 2023, 1:34 PM
Herald added a project: Restricted Project. · View Herald Transcript
Peiming requested review of this revision.May 12 2023, 1:34 PM
aartbik added inline comments.May 15 2023, 10:22 PM
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.h
75

period at end

88

here and a few below, missing period

123

you have fully mastered MLIR when you start to use CRTP in your helper classes ;-)

136

saying TypeRange and ValueRange here for the two fields is not very informative in addition to the already given types. You really want to say, The types of all returned results and The values of all input parameters.

138

typo: implementation

mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
889

is it possible to keep this class at the original place (at least for this revision) so that I can get a better diff on the original and new code?

aartbik added inline comments.May 16 2023, 8:52 AM
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
972

I assume this will become a flag eventually, but for now simply do

/*genCall=*/true

when you add the flag, make sure to add a CHECK test for a situation with and without inlining
(does not have to test all variables and details, but the method outline at least)

Peiming updated this revision to Diff 522652.May 16 2023, 9:03 AM
Peiming marked 6 inline comments as done.

address comments.

Peiming updated this revision to Diff 522653.May 16 2023, 9:04 AM

align changes.

aartbik accepted this revision.May 16 2023, 10:07 AM
This revision is now accepted and ready to land.May 16 2023, 10:07 AM
Peiming updated this revision to Diff 522685.May 16 2023, 10:08 AM

address comments.

This revision was landed with ongoing or failed builds.May 16 2023, 10:22 AM
This revision was automatically updated to reflect the committed changes.