[Mlir-commits] [mlir] [mlir][VectorOps] Support string literals in `vector.print` (PR #68695)
Cullen Rhodes
llvmlistbot at llvm.org
Mon May 13 01:12:05 PDT 2024
================
@@ -2477,12 +2478,18 @@ def Vector_TransposeOp :
}
def Vector_PrintOp :
- Vector_Op<"print", []>,
+ Vector_Op<"print", [
+ PredOpTrait<
+ "`source` or `punctuation` are not set when printing strings",
+ CPred<"!getStringLiteral() || (!getSource() && getPunctuation() == PrintPunctuation::NewLine)">
----------------
c-rhodes wrote:
Strings don't have a trailing newline.
https://github.com/llvm/llvm-project/pull/68695
More information about the Mlir-commits
mailing list