diff --git a/mlir/lib/Dialect/AffineOps/AffineOps.cpp b/mlir/lib/Dialect/AffineOps/AffineOps.cpp --- a/mlir/lib/Dialect/AffineOps/AffineOps.cpp +++ b/mlir/lib/Dialect/AffineOps/AffineOps.cpp @@ -1185,14 +1185,14 @@ if (map.getNumDims() != numDims) return p.emitError( p.getNameLoc(), - "dim operand count and integer set dim count must match"); + "dim operand count and affine map dim count must match"); unsigned numDimAndSymbolOperands = result.operands.size() - currentNumOperands; if (numDims + map.getNumSymbols() != numDimAndSymbolOperands) return p.emitError( p.getNameLoc(), - "symbol operand count and integer set symbol count must match"); + "symbol operand count and affine map symbol count must match"); // If the map has multiple results, make sure that we parsed the min/max // prefix. diff --git a/mlir/test/IR/invalid.mlir b/mlir/test/IR/invalid.mlir --- a/mlir/test/IR/invalid.mlir +++ b/mlir/test/IR/invalid.mlir @@ -535,7 +535,7 @@ func @bound_symbol_mismatch(%N : index) { affine.for %i = #map1(%N) to 100 { - // expected-error@-1 {{symbol operand count and integer set symbol count must match}} + // expected-error@-1 {{symbol operand count and affine map symbol count must match}} } return } @@ -546,7 +546,7 @@ func @bound_dim_mismatch(%N : index) { affine.for %i = #map1(%N, %N)[%N] to 100 { - // expected-error@-1 {{dim operand count and integer set dim count must match}} + // expected-error@-1 {{dim operand count and affine map dim count must match}} } return }