This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg][python] Add attribute support to the OpDSL.
ClosedPublic

Authored by gysit on Jun 22 2021, 6:59 AM.

Details

Summary

Extend the OpDSL with index attributes. After tensors and scalars, index attributes are the third operand type. An index attribute represents a compile-time constant that is limited to index expressions. A use cases are the strides and dilations defined by convolution and pooling operations.

The patch only updates the OpDSL. The C++ yaml codegen is updated by a followup patch.

Diff Detail

Event Timeline

gysit created this revision.Jun 22 2021, 6:59 AM
gysit requested review of this revision.Jun 22 2021, 6:59 AM
nicolasvasilache accepted this revision.Jun 24 2021, 1:20 AM
This revision is now accepted and ready to land.Jun 24 2021, 1:20 AM
gysit updated this revision to Diff 354172.Jun 24 2021, 2:20 AM

Rebase.

This revision was landed with ongoing or failed builds.Jun 24 2021, 2:41 AM
This revision was automatically updated to reflect the committed changes.