commit | 42645efad7b1c46827077f35b01548a0cf814b51 | [log] [tgz] |
---|---|---|
author | Feng Liu <fengliuai@google.com> | Sat Oct 20 18:31:49 2018 -0700 |
committer | jpienaar <jpienaar@google.com> | Fri Mar 29 13:34:09 2019 -0700 |
tree | e9b8892b904a56cf58e9d50191c75c74a22f2574 | |
parent | 0f928f41dc9a745b89b90716a56baa80504c1bf8 [diff] |
Use APFloat for FloatAttribute We should be able to represent arbitrary precision Float-point values inside the IR, so compiler optimizations, such as constant folding can be done independently on the compiling platform. This CL also added a new field, AttrValueGetter, to the Attr class definition for TableGen. This field is used to customize which mlir::Attr getter method to get the defined PrimitiveType. PiperOrigin-RevId: 218034983