This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Interfaces] Split getArrayAttrMaxRanks into 3 functions
AbandonedPublic

Authored by springerm on Aug 2 2023, 3:24 AM.

Details

Summary

getArrayAttrMaxRanks returns the number of offsets/sizes/strides of ops that implement the OffsetSizeAndStrideOpInterface. This revision splits the this interface method into 3 methods, in preparation of extracting the "offsets" part of the interface into a new interface. Also provide a default implementation for ops that implement the ViewLikeOpInterface.

Depends On: D156864

Diff Detail