summaryrefslogtreecommitdiffstats
path: root/mlir/include
diff options
context:
space:
mode:
authorNicolas Vasilache <ntv@google.com>2019-12-12 10:03:19 -0800
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-12-12 10:03:57 -0800
commit782ae29678598e42e6984ce3bd6c5a3914edc33e (patch)
tree3bbe630edeacadb48e68ee0c23dfee3f485e698b /mlir/include
parent1b579d998ad5a45282e8daaf0bac26df3d3c1f29 (diff)
downloadbcm5719-llvm-782ae29678598e42e6984ce3bd6c5a3914edc33e.tar.gz
bcm5719-llvm-782ae29678598e42e6984ce3bd6c5a3914edc33e.zip
Retire !linalg.buffer type - NFC
This type is not used anymore now that Linalg view and subview have graduated to std and that alignment is supported on alloc. PiperOrigin-RevId: 285213424
Diffstat (limited to 'mlir/include')
-rw-r--r--mlir/include/mlir/Dialect/Linalg/IR/LinalgTypes.h23
1 files changed, 1 insertions, 22 deletions
diff --git a/mlir/include/mlir/Dialect/Linalg/IR/LinalgTypes.h b/mlir/include/mlir/Dialect/Linalg/IR/LinalgTypes.h
index 81c309704b8..181a79ce38d 100644
--- a/mlir/include/mlir/Dialect/Linalg/IR/LinalgTypes.h
+++ b/mlir/include/mlir/Dialect/Linalg/IR/LinalgTypes.h
@@ -26,8 +26,7 @@ class MLIRContext;
namespace linalg {
enum LinalgTypes {
- Buffer = Type::FIRST_LINALG_TYPE,
- Range,
+ Range = Type::FIRST_LINALG_TYPE,
LAST_USED_LINALG_TYPE = Range,
};
@@ -43,26 +42,6 @@ public:
void printType(Type type, DialectAsmPrinter &os) const override;
};
-/// A BufferType represents a contiguous block of memory that can be allocated
-/// and deallocated. A buffer cannot be indexed directly, a view must be
-/// laid out on a buffer to give it indexing semantics.
-struct BufferTypeStorage;
-class BufferType : public Type::TypeBase<BufferType, Type, BufferTypeStorage> {
-public:
- // Used for generic hooks in TypeBase.
- using Base::Base;
- /// Construction hook.
- static BufferType get(MLIRContext *context, Type elementType,
- int64_t bufferSize = -1);
- /// Used to implement llvm-style cast.
- static bool kindof(unsigned kind) { return kind == LinalgTypes::Buffer; }
-
- // Type-specific functionality.
- Type getElementType();
- bool hasConstantSize();
- Optional<int64_t> getBufferSize();
-};
-
/// A RangeType represents a minimal range abstraction (min, max, step).
/// It is constructed by calling the linalg.range op with three values index of
/// index type:
OpenPOWER on IntegriCloud