llvm-project/mlir/test
Marius Hillenbrand 1ef32e7828 [mlir][Arithmetic] Fix printing larger integer attributes in arith.const
For arith.constant operations of integer type, the operation generates
result names that include the value of the constant (i.e., the
IntegerAttr that defines the constant's value). That code currently
assumes integer widths of 64 bits or less and hits an assert with wider
constants or would create truncated and potentially ambiguous names when
built with assertions disabled.

To enable printing arith.constant ops for arbitrarily wide integer
types, change to use the IntegerAttr's function getValue() when
generating result names.

Also, add a regression test.

Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D129930
2022-07-25 08:37:51 +05:30
..
Analysis [MLIR][Liveness] Add `currentlyLiveValues`, a way to get a set of values that are live as of a given operation. 2022-07-15 22:10:53 -07:00
CAPI [MLIR] Add function to create Float16 array attribute 2022-07-20 21:58:15 +00:00
Conversion [MLIR,OpenMP] : Add Conversion pattern for Critical Op 2022-07-22 12:57:48 +00:00
Dialect [mlir][Arithmetic] Fix printing larger integer attributes in arith.const 2022-07-25 08:37:51 +05:30
Examples [mlir] Tunnel LLVM_USE_LINKER through to the standalone example build. 2022-06-05 12:31:41 -07:00
IR [mlir][NFC] Split out various tests from IR/invalid.mlir 2022-07-19 16:34:35 -07:00
Integration [mlir][sparse][NFC] Update remaining test cases 2022-07-19 09:21:10 +02:00
Interfaces [MLIR][SCF] Enable better bufferization for `TileConsumerAndFuseProducersUsingSCFForOp` 2022-07-21 10:14:26 +02:00
Pass [mlir] Fixed ordering of pass statistics. 2022-07-19 15:52:02 -07:00
Rewrite [mlir:PDLInterp] Refactor the implementation of result type inferrence 2022-05-01 12:25:05 -07:00
Target [mlir][spirv] Rename spv.GLSL ops to spv.GL. NFC. 2022-07-21 13:03:30 -04:00
Transforms [mlir][arith] cmpi: move constant to the right side 2022-07-22 12:39:17 +02:00
Unit [lit] Fix setup of sanitizer environment 2022-05-19 19:24:16 -07:00
lib [mlir][tosa] Flip accessors used to prefixed form (NFC) 2022-07-22 09:56:08 -07:00
mlir-cpu-runner Revert "[MLIR] Generic 'malloc', 'aligned_alloc' and 'free' functions" 2022-07-18 18:07:36 +00:00
mlir-linalg-ods-gen [mlir] Flip LinAlg dialect to _Both 2022-07-19 14:42:58 -07:00
mlir-lsp-server [mlir:LSP] Add a quickfix code action for inserting expected-* diagnostic checks 2022-07-20 15:43:59 -07:00
mlir-opt [Coroutines] Convert coroutine.presplit to enum attr 2022-06-14 14:23:46 +08:00
mlir-pdll [mlir][ods] Make Type- and AttrInterfaces also `Type`s and `Attr`s 2022-07-07 11:54:47 +02:00
mlir-pdll-lsp-server [mlir:PDLL] Add support for inlay hints 2022-06-06 20:20:19 -07:00
mlir-reduce [MLIR] prefer /bin/sh over /bin/bash for simple test scripts 2022-04-21 20:25:17 -05:00
mlir-spirv-cpu-runner [mlir][spirv] Replace StructAttrs with AttrDefs 2022-06-09 23:16:44 +00:00
mlir-tblgen [mlir] Explicitly mark dialect prefixing 2022-07-21 12:58:19 -07:00
mlir-translate [mlir][NFC] Update textual references of `func` to `func.func` in tool/runner tests 2022-04-20 22:17:30 -07:00
mlir-vulkan-runner [mlir][vulkan] Add missing '<>' in test IRs to fix test 2022-06-10 18:09:12 -04:00
python [mlir][python] Fix issue in diagnostic note initialization 2022-07-22 16:56:14 -04:00
tblgen-lsp-server [mlir:LSP] Switch document sync mode to Incremental 2022-06-06 20:20:19 -07:00
APITest.h Adjust "end namespace" comment in MLIR to match new agree'd coding style 2021-12-08 06:05:26 +00:00
CMakeLists.txt [mlir][sparse] Add complex number reading from files. 2022-06-08 13:33:35 -07:00
lit.cfg.py [mlir] Use 'native' instead of 'llvm_has_native_target' in the mlir tests 2022-05-23 12:38:24 -07:00
lit.site.cfg.py.in [mlir] Tunnel LLVM_USE_LINKER through to the standalone example build. 2022-06-05 12:31:41 -07:00