[Mlir-commits] [mlir] [MLIR] Make printing Value to a stream thread-safe (PR #185762)
Jacenty Andruszkiewicz
llvmlistbot at llvm.org
Thu Mar 12 01:07:10 PDT 2026
================
@@ -4142,8 +4142,13 @@ void Value::print(raw_ostream &os, AsmState &state) const {
<< "' at index: " << arg.getArgNumber();
}
+raw_ostream &mlir::operator<<(raw_ostream &os, Value value) {
+ value.print(os, OpPrintingFlags().useLocalScope());
+ return os;
+}
+
void Value::dump() const {
- print(llvm::errs());
+ print(llvm::errs(), OpPrintingFlags().useLocalScope());
----------------
Jacenty-And-Intel wrote:
Could you please hit the merge button then? Thanks!
https://github.com/llvm/llvm-project/pull/185762
More information about the Mlir-commits
mailing list