This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Add callback-based builders for `linalg.(indexed_)generic`.
ClosedPublic

Authored by pifon2a on Jun 17 2020, 12:35 PM.

Diff Detail

Event Timeline

pifon2a created this revision.Jun 17 2020, 12:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 17 2020, 12:35 PM
nicolasvasilache accepted this revision.Jun 17 2020, 1:37 PM
This revision is now accepted and ready to land.Jun 17 2020, 1:37 PM
ftynse requested changes to this revision.Jun 17 2020, 2:30 PM

Thanks! I have a small remark about block manipulation, it should go through builder now that we have it available.

mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
84

Nit: invert the condition and return early

86

Please, use builder.createBlock() instead, otherwise it may conflict with the rewriter; and also pass the argument types directly to that call.

112

Same as above

This revision now requires changes to proceed.Jun 17 2020, 2:30 PM
pifon2a updated this revision to Diff 272016.Jun 19 2020, 4:52 AM
pifon2a marked 3 inline comments as done.

Address the comments.

ftynse accepted this revision.Jun 19 2020, 4:53 AM
This revision is now accepted and ready to land.Jun 19 2020, 4:53 AM
This revision was automatically updated to reflect the committed changes.