This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Add bounded recursion declaration to FMAOp -> LLVM conversion.
ClosedPublic

Authored by nicolasvasilache on Nov 15 2021, 4:19 AM.

Details

Summary

FMAOp -> LLVM conversion is done progressively by peeling off 1 dimension from FMAOp at each pattern iteration. Add the recursively bounded property declaration to the pattern so that the rewriter can apply it multiple times.

Without this, FMAOps with 3+D do not lower to LLVM.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Nov 15 2021, 4:19 AM
ftynse accepted this revision.Nov 15 2021, 4:35 AM
This revision is now accepted and ready to land.Nov 15 2021, 4:35 AM