diff --git a/mlir/include/mlir/Interfaces/ViewLikeInterface.h b/mlir/include/mlir/Interfaces/ViewLikeInterface.h --- a/mlir/include/mlir/Interfaces/ViewLikeInterface.h +++ b/mlir/include/mlir/Interfaces/ViewLikeInterface.h @@ -29,7 +29,7 @@ }; class OffsetSizeAndStrideOpInterface; -LogicalResult verify(OffsetSizeAndStrideOpInterface op); +LogicalResult verifyOffsetSizeAndStrideOp(OffsetSizeAndStrideOpInterface op); } // namespace mlir /// Include the generated interface declarations. diff --git a/mlir/include/mlir/Interfaces/ViewLikeInterface.td b/mlir/include/mlir/Interfaces/ViewLikeInterface.td --- a/mlir/include/mlir/Interfaces/ViewLikeInterface.td +++ b/mlir/include/mlir/Interfaces/ViewLikeInterface.td @@ -445,7 +445,8 @@ }]; let verify = [{ - return ::mlir::verify(::mlir::cast<::mlir::OffsetSizeAndStrideOpInterface>($_op)); + return ::mlir::verifyOffsetSizeAndStrideOp( + ::mlir::cast<::mlir::OffsetSizeAndStrideOpInterface>($_op)); }]; } diff --git a/mlir/lib/Interfaces/ViewLikeInterface.cpp b/mlir/lib/Interfaces/ViewLikeInterface.cpp --- a/mlir/lib/Interfaces/ViewLikeInterface.cpp +++ b/mlir/lib/Interfaces/ViewLikeInterface.cpp @@ -34,7 +34,8 @@ return success(); } -LogicalResult mlir::verify(OffsetSizeAndStrideOpInterface op) { +LogicalResult +mlir::verifyOffsetSizeAndStrideOp(OffsetSizeAndStrideOpInterface op) { std::array maxRanks = op.getArrayAttrMaxRanks(); // Offsets can come in 2 flavors: // 1. Either single entry (when maxRanks == 1).