From 56ac9d30d35632969baa39829ebc8465ed5937ef Mon Sep 17 00:00:00 2001 From: Stephan Herhut Date: Mon, 2 Mar 2020 11:34:25 +0100 Subject: [PATCH] [MLIR] Add includes to PointerLikeTypeTraits where needed. Summary: This is to ensure that the template declaration is seen before any template specialization. Reviewers: mravishankar, antiagainst, rriddle! Differential Revision: https://reviews.llvm.org/D75442 --- mlir/include/mlir/Dialect/SPIRV/SPIRVOps.h | 1 + mlir/include/mlir/IR/Attributes.h | 1 + mlir/include/mlir/IR/Function.h | 1 + mlir/include/mlir/IR/Identifier.h | 1 + mlir/include/mlir/IR/Location.h | 1 + mlir/include/mlir/IR/Module.h | 1 + mlir/include/mlir/IR/OpDefinition.h | 1 + mlir/include/mlir/IR/OperationSupport.h | 1 + mlir/include/mlir/IR/Types.h | 1 + mlir/include/mlir/IR/Value.h | 1 + 10 files changed, 10 insertions(+) diff --git a/mlir/include/mlir/Dialect/SPIRV/SPIRVOps.h b/mlir/include/mlir/Dialect/SPIRV/SPIRVOps.h index 2415a778bbf7..ea541c056a11 100644 --- a/mlir/include/mlir/Dialect/SPIRV/SPIRVOps.h +++ b/mlir/include/mlir/Dialect/SPIRV/SPIRVOps.h @@ -15,6 +15,7 @@ #include "mlir/Dialect/SPIRV/SPIRVTypes.h" #include "mlir/IR/Function.h" +#include "llvm/Support/PointerLikeTypeTraits.h" namespace mlir { class OpBuilder; diff --git a/mlir/include/mlir/IR/Attributes.h b/mlir/include/mlir/IR/Attributes.h index 5af6aa79e081..6aac47dd53bf 100644 --- a/mlir/include/mlir/IR/Attributes.h +++ b/mlir/include/mlir/IR/Attributes.h @@ -12,6 +12,7 @@ #include "mlir/IR/AttributeSupport.h" #include "llvm/ADT/APFloat.h" #include "llvm/ADT/Sequence.h" +#include "llvm/Support/PointerLikeTypeTraits.h" namespace mlir { class AffineMap; diff --git a/mlir/include/mlir/IR/Function.h b/mlir/include/mlir/IR/Function.h index 32843c9524bf..62384fea1f91 100644 --- a/mlir/include/mlir/IR/Function.h +++ b/mlir/include/mlir/IR/Function.h @@ -18,6 +18,7 @@ #include "mlir/IR/FunctionSupport.h" #include "mlir/IR/OpDefinition.h" #include "mlir/IR/SymbolTable.h" +#include "llvm/Support/PointerLikeTypeTraits.h" namespace mlir { //===--------------------------------------------------------------------===// diff --git a/mlir/include/mlir/IR/Identifier.h b/mlir/include/mlir/IR/Identifier.h index 63c2e4001aba..f3aead4a2f70 100644 --- a/mlir/include/mlir/IR/Identifier.h +++ b/mlir/include/mlir/IR/Identifier.h @@ -12,6 +12,7 @@ #include "mlir/Support/LLVM.h" #include "llvm/ADT/DenseMapInfo.h" #include "llvm/ADT/StringRef.h" +#include "llvm/Support/PointerLikeTypeTraits.h" namespace mlir { class MLIRContext; diff --git a/mlir/include/mlir/IR/Location.h b/mlir/include/mlir/IR/Location.h index 902bcb609395..e0853611b67c 100644 --- a/mlir/include/mlir/IR/Location.h +++ b/mlir/include/mlir/IR/Location.h @@ -15,6 +15,7 @@ #define MLIR_IR_LOCATION_H #include "mlir/IR/Attributes.h" +#include "llvm/Support/PointerLikeTypeTraits.h" namespace mlir { diff --git a/mlir/include/mlir/IR/Module.h b/mlir/include/mlir/IR/Module.h index 21000b4d5324..b02d10472b0d 100644 --- a/mlir/include/mlir/IR/Module.h +++ b/mlir/include/mlir/IR/Module.h @@ -14,6 +14,7 @@ #define MLIR_IR_MODULE_H #include "mlir/IR/SymbolTable.h" +#include "llvm/Support/PointerLikeTypeTraits.h" namespace mlir { class ModuleTerminatorOp; diff --git a/mlir/include/mlir/IR/OpDefinition.h b/mlir/include/mlir/IR/OpDefinition.h index 87ffb8110427..efbcf0afb4d7 100644 --- a/mlir/include/mlir/IR/OpDefinition.h +++ b/mlir/include/mlir/IR/OpDefinition.h @@ -20,6 +20,7 @@ #define MLIR_IR_OPDEFINITION_H #include "mlir/IR/Operation.h" +#include "llvm/Support/PointerLikeTypeTraits.h" #include namespace mlir { diff --git a/mlir/include/mlir/IR/OperationSupport.h b/mlir/include/mlir/IR/OperationSupport.h index 89fffa0df60d..96545d6be2b0 100644 --- a/mlir/include/mlir/IR/OperationSupport.h +++ b/mlir/include/mlir/IR/OperationSupport.h @@ -21,6 +21,7 @@ #include "mlir/IR/Value.h" #include "mlir/Support/LogicalResult.h" #include "llvm/ADT/PointerUnion.h" +#include "llvm/Support/PointerLikeTypeTraits.h" #include "llvm/Support/TrailingObjects.h" #include diff --git a/mlir/include/mlir/IR/Types.h b/mlir/include/mlir/IR/Types.h index ef4b0511cb07..40f1d4818769 100644 --- a/mlir/include/mlir/IR/Types.h +++ b/mlir/include/mlir/IR/Types.h @@ -12,6 +12,7 @@ #include "mlir/IR/TypeSupport.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/DenseMapInfo.h" +#include "llvm/Support/PointerLikeTypeTraits.h" namespace mlir { class FloatType; diff --git a/mlir/include/mlir/IR/Value.h b/mlir/include/mlir/IR/Value.h index a54787a4cb08..57b55171668c 100644 --- a/mlir/include/mlir/IR/Value.h +++ b/mlir/include/mlir/IR/Value.h @@ -16,6 +16,7 @@ #include "mlir/IR/Types.h" #include "mlir/IR/UseDefLists.h" #include "mlir/Support/LLVM.h" +#include "llvm/Support/PointerLikeTypeTraits.h" namespace mlir { class AsmState;