[Mlir-commits] [mlir] [mlir][Affine] Genarilze the linearize(delinearize()) simplifications (PR #117637)
Krzysztof Drewniak
llvmlistbot at llvm.org
Mon Dec 2 09:33:13 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();
----------------
krzysz00 wrote:
But also it's a bit wordier - let me know if you have strong thoughts here
https://github.com/llvm/llvm-project/pull/117637
More information about the Mlir-commits
mailing list