This is an archive of the discontinued LLVM Phabricator instance.

[mlir][interfaces] Allow only ranked tensors/memrefs in DestinationStyleOpInterface
ClosedPublic

Authored by springerm on Oct 24 2022, 2:11 AM.

Details

Summary

We have currently no need for unranked tensors/memrefs.

Diff Detail

Event Timeline

springerm created this revision.Oct 24 2022, 2:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 24 2022, 2:11 AM
springerm requested review of this revision.Oct 24 2022, 2:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 24 2022, 2:11 AM

Just wondering, do we have an example where we need unranked DPS?

Just wondering, do we have an example where we need unranked DPS?

There is a test case in Tensor/ops.mlir that requires this, otherwise the op interface verifier fails:

%1 = tensor.insert %arg0 into %arg3[%arg1, %arg1, %arg1] : tensor<*xf32>
springerm updated this revision to Diff 470771.Oct 26 2022, 3:47 AM
springerm edited the summary of this revision. (Show Details)

update

springerm retitled this revision from [mlir][interfaces] Allow unranked tensors/memrefs in DestinationStyleOpInterface to [mlir][interfaces] Allow only ranked tensors/memrefs in DestinationStyleOpInterface.Oct 26 2022, 3:47 AM
springerm edited the summary of this revision. (Show Details)

Allowing only ranked tensors/memrefs as per offline discussion.

pifon2a accepted this revision.Oct 26 2022, 8:32 AM
This revision is now accepted and ready to land.Oct 26 2022, 8:32 AM
This revision was landed with ongoing or failed builds.Oct 27 2022, 1:25 AM
This revision was automatically updated to reflect the committed changes.