Check for Vector or Tensor Type rather than ShapedType when matching constant...
authorGeoffrey Martin-Noble <gcmn@google.com>
Wed, 29 May 2019 23:06:49 +0000 (16:06 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 03:09:32 +0000 (20:09 -0700)
commit17022b1bc516f42d8bdb5d0fed9739fb7584e13d
treec05b0b951e055d498deebf1241fb095c5285ede2
parent9ebab7bc30bf7cd5fcad13037f76991a6311ad78
Check for Vector or Tensor Type rather than ShapedType when matching constant splat

    Only vectors or tensors can be constant splats (or element attrs). This is in preparation for making MemRef subclass ShapedType

--

PiperOrigin-RevId: 250586281
mlir/include/mlir/IR/Matchers.h