Some cleanup of ShapedType now that MemRef subclasses it.
authorGeoffrey Martin-Noble <gcmn@google.com>
Fri, 31 May 2019 20:28:19 +0000 (13:28 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 03:12:51 +0000 (20:12 -0700)
commitac4b0a1e7b288698b565afac1cfa2217d9216b69
tree5b321d42b000b19bb95d8516db7117c16ca2a040
parent32de860a093b83092580c80f8d163ffbadd195df
Some cleanup of ShapedType now that MemRef subclasses it.

    Extract common methods into ShapedType.
    Simplify methods.
    Remove some extraneous asserts.
    Replace sentinel value with a helper method to check the same.

--

PiperOrigin-RevId: 250945261
mlir/include/mlir/IR/StandardTypes.h
mlir/lib/Analysis/Utils.cpp
mlir/lib/IR/StandardTypes.cpp