Consistently use int64_t for shape-related values in shaped types
authorGeoffrey Martin-Noble <gcmn@google.com>
Sat, 1 Jun 2019 00:18:59 +0000 (17:18 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 03:13:58 +0000 (20:13 -0700)
commitdaefaded4a3d30643e44c2ccc2f24adb3a125d75
tree126f9619d404db78159e24550a0b0d302f4b9515
parentc912981bbd6d94218d66546aa22620660894f0ae
Consistently use int64_t for shape-related values in shaped types

    We want to support 64-bit shapes (even when the compiler is on a 32-bit architecture). Using int64_t consistently allows us to sidestep the bugginess of unsigned arithmetic.

    Still unsigned: kind, memory space, and bit width. The first two are basically enums. We could have a discussion about the last one, but it's basically just a very large enum as well and we're not doing any math on it, I think.

--

PiperOrigin-RevId: 250985791
mlir/include/mlir/IR/StandardTypes.h
mlir/lib/IR/Attributes.cpp
mlir/lib/IR/StandardTypes.cpp