Mehdi Amini
308571074c
Mass update the MLIR license header to mention "Part of the LLVM project"
...
This is an artifact from merging MLIR into LLVM, the file headers are
now aligned with the rest of the project.
2020-01-26 03:58:30 +00:00
River Riddle
68c8b6c4cd
[mlir] Use getDenseElementBitwidth instead of Type::getElementTypeBitWidth.
...
Summary: Some data values have a different storage width than the corresponding MLIR type, e.g. bfloat is currently stored as a double.
Reviewed By: nicolasvasilache
Differential Revision: https://reviews.llvm.org/D72478
2020-01-09 14:51:44 -08:00
Mehdi Amini
56222a0694
Adjust License.txt file to use the LLVM license
...
PiperOrigin-RevId: 286906740
2019-12-23 15:33:37 -08:00
River Riddle
2b67821b90
Fix the detection of boolean splat values in DenseElementsAttr for arrays with <=15 values.
...
PiperOrigin-RevId: 253711372
2019-06-19 23:05:19 -07:00
River Riddle
5624bc289e
Add an overloaded 'get' method to DenseElementsAttr that accepts an initializer_list.
...
PiperOrigin-RevId: 253234385
2019-06-19 23:02:21 -07:00
Alex Zinenko
b582338f62
Explicitly construct ArrayRef in AttributeTest.cpp
...
Some compilers find initializer list constructors from boolean literals
ambiguous between ArrayRef<bool> and ArrayRef<Attribute>. Call the
ArrayRef<bool> constructor explicitly to disambiguate.
PiperOrigin-RevId: 253224859
2019-06-19 23:02:12 -07:00
River Riddle
2c9269124a
NFC: Fix a narrowing conversion from size_t to int64_t when constructing a VectorType.
...
PiperOrigin-RevId: 253125435
2019-06-19 23:01:42 -07:00
River Riddle
d8cd96bc8b
Refactor DenseElementsAttr to support auto-splatting the dense data on construction. This essentially means that we always auto-detect splat data and only store the minimum amount of data necessary. Support for parsing dense splats, and removing SplatElementsAttr(now that it is redundant) will come in followup cls
...
PiperOrigin-RevId: 252720561
2019-06-19 22:59:15 -07:00