Make MemRefType subclass ShapedType
authorGeoffrey Martin-Noble <gcmn@google.com>
Fri, 31 May 2019 20:28:01 +0000 (13:28 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 03:12:40 +0000 (20:12 -0700)
commit32de860a093b83092580c80f8d163ffbadd195df
treed5c3ec9f9d6a03409a62ccd123cb0352ecb5119b
parent8eca4cc30dee9b31321cae9f577c957d279818b2
Make MemRefType subclass ShapedType

    MemRefs have the same notion of shape, rank, and fixed element type. This allows us to reuse utilities based on shape for memref.

    All dyn_cast and isa calls for ShapedType have been checked and either modified to explicitly check for vector or tensor, or confirmed to not depend on the result being a vector or tensor.

    Discussion in https://groups.google.com/a/tensorflow.org/forum/#!topic/mlir/cHLoyfGu8y8

--

PiperOrigin-RevId: 250945184
mlir/include/mlir/IR/StandardTypes.h
mlir/lib/IR/AsmPrinter.cpp
mlir/lib/IR/StandardTypes.cpp
mlir/lib/IR/TypeDetail.h