[Linalg] Remove Optional from getStaticLoopRanges interface method.
authorHanhan Wang <hanchung@google.com>
Tue, 3 May 2022 12:12:51 +0000 (05:12 -0700)
committerHanhan Wang <hanchung@google.com>
Tue, 3 May 2022 12:12:54 +0000 (05:12 -0700)
commit919e459f1ba3bd3f93b50cac1077d685547250e5
treede90ba9fd49404de5ec9ededa606698c32c057cc
parentcdc5b64ed6dbdc5b5b97e85df3878654e2b0244e
[Linalg] Remove Optional from getStaticLoopRanges interface method.

It is very wrong if the ranges can't be infered. It's also checked in
verifyStructuredOpInterface, so we don't need the Optional return type.

Reviewed By: springerm

Differential Revision: https://reviews.llvm.org/D124596
mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td
mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
mlir/lib/Dialect/Linalg/Transforms/SplitReduction.cpp