[Mlir-commits] [mlir] a5b3f8b - [MLIR][MemRef] Add missing #include for FailureOr

Chenguang Wang llvmlistbot at llvm.org
Tue Mar 28 12:33:34 PDT 2023


Author: Chenguang Wang
Date: 2023-03-28T12:33:29-07:00
New Revision: a5b3f8bf40cfffba5b98739bcdc36bc1dd9856d2

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

LOG: [MLIR][MemRef] Add missing #include for FailureOr

FailureOr was used without including correct headers, so the code only works if the user of Transform.h includes the correct headers first.

Reviewed By: jyknight

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

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/MemRef/Transforms/Transforms.h
    utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/MemRef/Transforms/Transforms.h b/mlir/include/mlir/Dialect/MemRef/Transforms/Transforms.h
index 81f3988c068f3..3c6c12c9fd04b 100644
--- a/mlir/include/mlir/Dialect/MemRef/Transforms/Transforms.h
+++ b/mlir/include/mlir/Dialect/MemRef/Transforms/Transforms.h
@@ -14,6 +14,8 @@
 #ifndef MLIR_DIALECT_MEMREF_TRANSFORMS_TRANSFORMS_H
 #define MLIR_DIALECT_MEMREF_TRANSFORMS_TRANSFORMS_H
 
+#include "mlir/Support/LogicalResult.h"
+
 namespace mlir {
 class RewritePatternSet;
 class RewriterBase;

diff  --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 6d75536c98026..c36bdc42f77d0 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -10101,6 +10101,7 @@ cc_library(
         ":NVGPUDialect",
         ":Pass",
         ":RuntimeVerifiableOpInterface",
+        ":Support",
         ":TensorDialect",
         ":Transforms",
         ":VectorDialect",


        


More information about the Mlir-commits mailing list