llvm-project/mlir
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
..
benchmark/python [NFC] Remove obsolete all_passes_registration from integration tests. 2022-07-16 18:18:43 -07:00
cmake/modules [cmake] Don't export `LLVM_TOOLS_INSTALL_DIR` anymore 2022-07-21 19:04:00 +00:00
docs [mlir][spirv] Rename spv.GLSL ops to spv.GL. NFC. 2022-07-21 13:03:30 -04:00
examples Revert "[MLIR] Generic 'malloc', 'aligned_alloc' and 'free' functions" 2022-07-18 18:07:36 +00:00
include [mlir][Arithmetic] Add `arith.delinearize_index` operation 2022-07-22 11:20:41 -06:00
lib [mlir][Arithmetic] Fix printing larger integer attributes in arith.const 2022-07-25 08:37:51 +05:30
python Adding a new variant of DepthwiseConv2D 2022-07-21 14:36:57 -04:00
test [mlir][Arithmetic] Fix printing larger integer attributes in arith.const 2022-07-25 08:37:51 +05:30
tools Convert for_each to range-based for loops (NFC) 2022-07-23 12:17:27 -07:00
unittests [MLIR][Presburger] fix warning under g++ (NFC) 2022-07-18 18:02:20 +01:00
utils [mlir][spirv] Rename spv.ocl to spv.cl. NFC. 2022-07-20 17:46:45 -04:00
.clang-format [mlir] Add missing newline at end of .clang-format file 2022-06-14 23:59:00 -07:00
.clang-tidy Enable readability-redundant-smartptr-get in MLIR local clang-tidy config 2022-01-08 20:07:11 +00:00
CMakeLists.txt [cmake] Don't export `LLVM_TOOLS_INSTALL_DIR` anymore 2022-07-21 19:04:00 +00:00
LICENSE.TXT
README.md

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.