[Mlir-commits] [mlir] b6408fa - [mlir] Include llvm/Support/Debug.h in Transforms/Passes.h

Matthias Springer llvmlistbot at llvm.org
Wed Aug 4 05:47:20 PDT 2021


Author: Matthias Springer
Date: 2021-08-04T21:45:28+09:00
New Revision: b6408fa169d6c12886af20bd44d6228f2272960c

URL: https://github.com/llvm/llvm-project/commit/b6408fa169d6c12886af20bd44d6228f2272960c
DIFF: https://github.com/llvm/llvm-project/commit/b6408fa169d6c12886af20bd44d6228f2272960c.diff

LOG: [mlir] Include llvm/Support/Debug.h in Transforms/Passes.h

There are many downstream users of llvm::dbgs, which is defined in Debug.h. Before D106342, many users included that dependency transitively via the now deleted ViewRegionGraph.h. Adding it back to Transforms/Passes.h for convenience.

Differential Revision: https://reviews.llvm.org/D107451

Added: 
    

Modified: 
    mlir/include/mlir/Transforms/Passes.h
    mlir/lib/Transforms/NormalizeMemRefs.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Transforms/Passes.h b/mlir/include/mlir/Transforms/Passes.h
index 04283353a208..eef88b5d7a48 100644
--- a/mlir/include/mlir/Transforms/Passes.h
+++ b/mlir/include/mlir/Transforms/Passes.h
@@ -17,6 +17,7 @@
 #include "mlir/Pass/Pass.h"
 #include "mlir/Transforms/LocationSnapshot.h"
 #include "mlir/Transforms/ViewOpGraph.h"
+#include "llvm/Support/Debug.h"
 #include <limits>
 
 namespace mlir {

diff  --git a/mlir/lib/Transforms/NormalizeMemRefs.cpp b/mlir/lib/Transforms/NormalizeMemRefs.cpp
index ff0fdc95f45e..831c613a4118 100644
--- a/mlir/lib/Transforms/NormalizeMemRefs.cpp
+++ b/mlir/lib/Transforms/NormalizeMemRefs.cpp
@@ -17,7 +17,6 @@
 #include "mlir/Transforms/Passes.h"
 #include "mlir/Transforms/Utils.h"
 #include "llvm/ADT/SmallSet.h"
-#include "llvm/Support/Debug.h"
 
 #define DEBUG_TYPE "normalize-memrefs"
 


        


More information about the Mlir-commits mailing list