commit | a124e9c4a548dc00671abcabc7467ad95b9b5c3e | [log] [tgz] |
---|---|---|
author | Nicolas Vasilache <[email protected]> | Mon Aug 27 17:26:15 2018 |
committer | jpienaar <[email protected]> | Fri Mar 29 20:06:36 2019 |
tree | 7c50ab6d472c5b7852d1f28f53686f26c685a14a | |
parent | 6cc9786c3e47a6531c52e947d2c4d26315102810 [diff] |
Avoid hardcoded 4096 constant This commit creates a static constexpr limit for the IntegerType bitwidth and uses it. The check had to be moved because Token is not aware of IR/Type and it was a sign the abstraction leaked: bitwidth limit is not a property of the Token but of the IntegerType. Added a positive and a negative test at the limit. PiperOrigin-RevId: 210388192