This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Interfaces] Fix DestinationStyleOpInterface for vector ops
ClosedPublic

Authored by springerm on Jul 17 2023, 8:11 AM.

Details

Summary

This revision fixes hasTensorSemantics and hasBufferSemantics for vector transfer ops, which may have a vector operand. VectorType implements ShapedType and such operands do not affect whether an op has tensor or buffer semantics. Also implement DestinationStyleOpInterface on TransferReadOp so that hasTensorSemantics/hasBufferSemantics can be called. (The op has no inits, but this makes it symmetric to TransferWriteOp.)

Diff Detail

Event Timeline

springerm created this revision.Jul 17 2023, 8:11 AM
Herald added a project: Restricted Project. · View Herald Transcript
springerm requested review of this revision.Jul 17 2023, 8:11 AM
Herald added a project: Restricted Project. · View Herald Transcript
nicolasvasilache accepted this revision.Jul 17 2023, 8:15 AM
This revision is now accepted and ready to land.Jul 17 2023, 8:15 AM
This revision was landed with ongoing or failed builds.Jul 17 2023, 8:40 AM
This revision was automatically updated to reflect the committed changes.