commit | c7c5e9f50031a221ea7421ebbc1c3dedc3a6316a | [log] [tgz] |
---|---|---|
author | River Riddle <riverriddle@google.com> | Fri Jan 04 09:55:48 2019 -0800 |
committer | jpienaar <jpienaar@google.com> | Fri Mar 29 14:56:22 2019 -0700 |
tree | 4a52701589b9a6787b90c11e7098dbe50a771c96 | |
parent | 5bccd964d366a6b6a73042a328aa1ea4bef15535 [diff] |
Introduce CRTP TypeBase class to simplify type construction and validation. This impl class currently provides the following: * auto definition of the 'ImplType = StorageClass' * get/getChecked wrappers around TypeUniquer * 'verifyConstructionInvariants' hook - This hook verifies that the arguments passed into get/getChecked are valid to construct a type instance with. With this, all non-generic type uniquing has been moved out of MLIRContext.cpp PiperOrigin-RevId: 227871108