This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add InlinerInterface to bufferization dialect
ClosedPublic

Authored by Hardcode84 on Dec 3 2021, 2:08 PM.

Diff Detail

Event Timeline

Hardcode84 created this revision.Dec 3 2021, 2:08 PM
Hardcode84 requested review of this revision.Dec 3 2021, 2:08 PM

Can you add a test please?

Most (all?) other dialects don't have tests for this, do we really need it here?

mehdi_amini accepted this revision.Dec 4 2021, 11:16 AM

Most (all?) other dialects don't have tests for this, do we really need it here?

I would expect all of them to have a test for it, otherwise it's an oversight really (mlir/test/Dialect/Tosa/inlining.mlir, mlir/test/Dialect/Linalg/inlining.mlir, and mlir/test/Transforms/inlining.mlir covers Arithmetic).

I suspect for the dialects that got created from the split of StandardDialect they didn't get dedicated tests during the various refactoring (they probably should have though).

This revision is now accepted and ready to land.Dec 4 2021, 11:16 AM
mehdi_amini added inline comments.Dec 4 2021, 11:18 AM
mlir/lib/Dialect/Bufferization/IR/BufferizationDialect.cpp
47

Actually can you keep a one line doc before each method to indicate which case they cover.

One of these methods actually can be removed as this dialect doesn't have ops with nested regions.

This revision was automatically updated to reflect the committed changes.