[Mlir-commits] [mlir] [mlir][shard, mpi][NFC] Add missing header (PR #179777)

Jordan Rupprecht llvmlistbot at llvm.org
Wed Feb 4 12:53:19 PST 2026


https://github.com/rupprecht created https://github.com/llvm/llvm-project/pull/179777

Utils.h uses `mlir::mpi::CommWorldOp` w/o including the necessary header (https://llvm.org/docs/CodingStandards.html#self-contained-headers), making this not self contained. It only works because all the .cpp files that use it have the necessary include.

>From a768d1c920855234aa9927d86f57ffc6895771be Mon Sep 17 00:00:00 2001
From: Jordan Rupprecht <rupprecht at google.com>
Date: Wed, 4 Feb 2026 12:50:41 -0800
Subject: [PATCH] missing header

---
 mlir/include/mlir/Dialect/MPI/IR/Utils.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mlir/include/mlir/Dialect/MPI/IR/Utils.h b/mlir/include/mlir/Dialect/MPI/IR/Utils.h
index 9ff78e9e092fc..76ff4841d89bc 100644
--- a/mlir/include/mlir/Dialect/MPI/IR/Utils.h
+++ b/mlir/include/mlir/Dialect/MPI/IR/Utils.h
@@ -10,6 +10,7 @@
 
 #include "mlir/Dialect/Arith/IR/Arith.h"
 #include "mlir/Dialect/DLTI/DLTI.h"
+#include "mlir/Dialect/MPI/IR/MPI.h"
 #include "mlir/IR/PatternMatch.h"
 
 namespace mlir {



More information about the Mlir-commits mailing list