llvm-project/mlir
River Riddle 01eedbc7c1 [mlir] Refactor SubElementInterface replace support
The current support was essentially the amount necessary
to support replacing SymbolRefAttrs, but suffers from various
deficiencies (both ergonomic and functional):

* Replace crashes if unsupported
 This makes it really hard to use safely, given that you don't know
 if you are going to crash or not when using it.

* Types aren't supported
This seems like a simple missed addition when the attribute replacement
support was originally added.

* The ergonomics are weird
It currently uses an index based replacement, which makes the implementations
quite clunky.

This commit refactors support to be a bit more ergonomic, and also
adds support for types in the process. This was also a great oppurtunity
to greatly simplify how replacement is done in the symbol table.

Fixes #56355

Differential Revision: https://reviews.llvm.org/D130589
2022-07-26 14:51:22 -07:00
..
benchmark/python [NFC] Remove obsolete all_passes_registration from integration tests. 2022-07-16 18:18:43 -07:00
cmake/modules [CMake] Fix add_subdirectory llvm builds 2022-07-26 11:24:23 +02:00
docs [MLIR] Generic 'malloc', 'aligned_alloc' and 'free' functions 2022-07-25 15:52:51 +02:00
examples Revert "[MLIR] Generic 'malloc', 'aligned_alloc' and 'free' functions" 2022-07-18 18:07:36 +00:00
include [mlir] Refactor SubElementInterface replace support 2022-07-26 14:51:22 -07:00
lib [mlir] Refactor SubElementInterface replace support 2022-07-26 14:51:22 -07:00
python Adding a new variant of DepthwiseConv2D 2022-07-21 14:36:57 -04:00
test [mlir] Refactor SubElementInterface replace support 2022-07-26 14:51:22 -07:00
tools [mlir] Refactor the Parser library in preparation for an MLIR binary format 2022-07-25 16:33:01 -07:00
unittests [mlir] Refactor the Parser library in preparation for an MLIR binary format 2022-07-25 16:33:01 -07: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
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.