llvm-project/mlir/test/IR
Jacques Pienaar 49c4d2a630 Fix builder getFloatAttr of double to use F64 type and use fltSemantics in FloatAttr.
Store FloatAttr using more appropriate fltSemantics (mostly fixing up F32/F64 storage, F16/BF16 pending). Previously F32 type was used incorrectly for double (the storage was double). Also add query method that returns fltSemantics for IEEE fp types and use that to verify that the APfloat given matches the type:
* FloatAttr created using APFloat is verified that the semantics of the type and APFloat matches;
* FloatAttr created using double has the APFloat created to match the semantics of the type;

Change parsing of tensor negative splat element to pass in the element type expected. Misc other changes to account for the storage type matching the attribute.

PiperOrigin-RevId: 225821834
2019-03-29 14:29:58 -07:00
..
affine-map.mlir Drop trivial identity affine mappings in MemRef construction. 2019-03-29 13:41:47 -07:00
check-help-output.mlir Add custom lilith script. 2019-03-29 13:02:57 -07:00
core-ops.mlir Disallow index types as elements of vector, memref and tensor types 2019-03-29 14:25:22 -07:00
invalid-affinemap.mlir Implement support for constant folding operations and a simple constant folding 2019-03-29 13:16:33 -07:00
invalid-ops.mlir [MLIR] Add support for permutation_map 2019-03-29 14:20:07 -07:00
invalid.mlir Fix builder getFloatAttr of double to use F64 type and use fltSemantics in FloatAttr. 2019-03-29 14:29:58 -07:00
memory-ops.mlir Strided DMA support for DmaStartOp 2019-03-29 14:18:37 -07:00
op-stats.mlir Add op stats pass to mlir-opt. 2019-03-29 14:02:46 -07:00
parser.mlir Fix builder getFloatAttr of double to use F64 type and use fltSemantics in FloatAttr. 2019-03-29 14:29:58 -07:00
repro_b120295301.mlir RankedTensorType: Use getHashValue(KeyTy) when calling getHashValue(RankedTensorTypeStorage*). 2019-03-29 14:13:44 -07:00