Skip to content

[MLIR] Update operator<< in objects of DataFlowFramework.h #127586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

ita9naiwa
Copy link
Contributor

@ita9naiwa ita9naiwa commented Feb 18, 2025

No description provided.

@llvmbot llvmbot added the mlir label Feb 18, 2025
@ita9naiwa ita9naiwa changed the title Update operator<< in objects of DataFlowFramework.h [MLIR] Update operator<< in objects of DataFlowFramework.h Feb 18, 2025
@llvmbot
Copy link
Member

llvmbot commented Feb 18, 2025

@llvm/pr-subscribers-mlir

Author: Hyunsung Lee (ita9naiwa)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/127586.diff

1 Files Affected:

  • (modified) mlir/include/mlir/Analysis/DataFlowFramework.h (+2-2)
diff --git a/mlir/include/mlir/Analysis/DataFlowFramework.h b/mlir/include/mlir/Analysis/DataFlowFramework.h
index a3714c4332fbb..6aa0900d1412a 100644
--- a/mlir/include/mlir/Analysis/DataFlowFramework.h
+++ b/mlir/include/mlir/Analysis/DataFlowFramework.h
@@ -146,7 +146,7 @@ struct ProgramPoint : public StorageUniquer::BaseStorage {
   Operation *op = nullptr;
 };
 
-inline raw_ostream &operator<<(raw_ostream &os, ProgramPoint point) {
+inline raw_ostream &operator<<(raw_ostream &os, const ProgramPoint &point) {
   point.print(os);
   return os;
 }
@@ -662,7 +662,7 @@ inline raw_ostream &operator<<(raw_ostream &os, const AnalysisState &state) {
   return os;
 }
 
-inline raw_ostream &operator<<(raw_ostream &os, LatticeAnchor anchor) {
+inline raw_ostream &operator<<(raw_ostream &os, const LatticeAnchor &anchor) {
   anchor.print(os);
   return os;
 }

@joker-eph joker-eph merged commit 91ef371 into llvm:main Feb 18, 2025
10 checks passed
@ita9naiwa ita9naiwa deleted the ita9naiwa/print-operator branch February 18, 2025 18:01
wldfngrs pushed a commit to wldfngrs/llvm-project that referenced this pull request Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants