Add error message to concretize the context in which the constraint fails.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td | ||
---|---|---|
847 | That's what I wanted but it causes problems with the variadic shapes. The builder functions are then often ambiguous, even in the generated code. |
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td | ||
---|---|---|
847 | Correction: The ambiguity derives not from the variadic shapes but from the default builders. When neither the message nor an attribute dict are passed there are two candidate function. |
+1 for the general direction. I agree a default would be useful, so that we do not need to pass a message when we do not care about the specific wording. If that requires fighting with the infra, lets land this for now.
If we made the default value "required broadcastable shapes", would that reduce the changes needed below?