This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add convenience trait grouping for tensor shaped type inference
ClosedPublic

Authored by jpienaar on Feb 28 2021, 9:55 AM.

Details

Summary

For ops that produces tensor types and implement the shaped type
component interface, the type inference interface can be performed by combining
the shape type component interface with tensor type creation. Create a
grouping of these together to make it easier to specify (it cannot be added
into a list of traits, but must rather be appended/concatted as it isn't
a trait but a list of traits, so emphasize that in the name).

Diff Detail

Event Timeline

jpienaar created this revision.Feb 28 2021, 9:55 AM
jpienaar requested review of this revision.Feb 28 2021, 9:55 AM
herhut accepted this revision.Mar 1 2021, 2:22 AM
herhut added inline comments.
mlir/include/mlir/Interfaces/InferTypeOpInterface.td
129

Should this read to infer the type? It is combining the two sources of knowledge to infer a type.

This revision is now accepted and ready to land.Mar 1 2021, 2:22 AM
This revision was landed with ongoing or failed builds.Mar 1 2021, 5:21 AM
This revision was automatically updated to reflect the committed changes.
jpienaar marked an inline comment as done.