[Mlir-commits] [mlir] [mlir][Interface] Allow scalar operands and require ranked shaped operands in IndexingMapOpInterface (PR #179072)

Samarth Narang llvmlistbot at llvm.org
Tue Feb 17 06:11:26 PST 2026


================
@@ -14,6 +14,36 @@ namespace mlir {
 #include "mlir/Interfaces/IndexingMapOpInterface.cpp.inc"
 } // namespace mlir
 
+static LogicalResult verifyIndexingMapOperandType(Operation *op, Type t,
+                                                  unsigned operandNumber) {
+  // Scalars are allowed (treated as rank-0). verifyImpl checks the rank.
+  if (!isa<ShapedType>(t) && !isa<VectorType>(t))
----------------
snarang181 wrote:

Are you requesting a change here? It seemed reasonable to handle scalars. 

https://github.com/llvm/llvm-project/pull/179072


More information about the Mlir-commits mailing list