[Mlir-commits] [mlir] [mlir][VectorOps] Support string literals in `vector.print` (PR #68695)
Benjamin Maxwell
llvmlistbot at llvm.org
Mon Oct 16 09:20:45 PDT 2023
================
@@ -2476,12 +2477,18 @@ def Vector_TransposeOp :
}
def Vector_PrintOp :
- Vector_Op<"print", []>,
+ Vector_Op<"print", [
+ PredOpTrait<
+ "`source` or `punctuation` are not set when printing strings",
----------------
MacDue wrote:
When this constraint fails it outputs:
```
op failed to verify `source` or `punctuation` are not set when printing strings
```
If I switch it, that does not really work :disappointed:
```
op failed to verify strings mixed with source and punctations are not allowed/supported
```
https://github.com/llvm/llvm-project/pull/68695
More information about the Mlir-commits
mailing list