[Mlir-commits] [mlir] [mlir][Affine] Genarilze the linearize(delinearize()) simplifications (PR #117637)
Abhishek Varma
llvmlistbot at llvm.org
Tue Dec 3 22:37:42 PST 2024
================
@@ -1224,6 +1244,11 @@ def AffineLinearizeIndexOp : Affine_Op<"linearize_index",
/// Return a vector that contains the basis of the operation, removing
/// the outer bound if one is present.
SmallVector<OpFoldResult> getEffectiveBasis();
+
+ /// Return the vector with one basis element per index operand of the operation.
+ /// If there is no outer bound specified, the leading entry of this basis will be
+ /// nullptr.
+ SmallVector<OpFoldResult> getPaddedBasis();
----------------
Abhishek-Varma wrote:
Sure, no worries - but I'd still prefer making the doc comment simpler : `Same as getMixedBasis, but the leading entry will include a nullptr if no outer bound is specified`.
https://github.com/llvm/llvm-project/pull/117637
More information about the Mlir-commits
mailing list