llvm-project/mlir
Jacques Pienaar 82140ad728 [mlir] Add method to populate default attributes
Previously default attributes were only usable by way of the ODS generated
accessors, but this was undesirable as
1. The ODS getters could construct Attribute each get request;
2. For non-C++ uses this would require either duplicating some of tee default
   attribute generating or generating additional bindings to generate methods;
3. Accessing op.getAttr("foo") and op.getFoo() would return different results;
Generate method to populate default attributes that can be used to address
these.

This merely adds this facility but does not employ by default on any path.

Differential Revision: https://reviews.llvm.org/D128962
2022-07-08 11:31:13 -07:00
..
benchmark/python [mlir] Fix declaration of nano time function in benchmark infra 2022-05-13 13:22:18 +02:00
cmake/modules Fix MLIR Python CMake bug causing duplicate sources target. 2022-07-04 07:07:53 -07:00
docs [mlir][ods] Make Type- and AttrInterfaces also `Type`s and `Attr`s 2022-07-07 11:54:47 +02:00
examples [mlir] move SCF headers to SCF/{IR,Transforms} respectively 2022-06-20 10:18:01 +02:00
include [mlir] Add method to populate default attributes 2022-07-08 11:31:13 -07:00
lib [mlir] Add method to populate default attributes 2022-07-08 11:31:13 -07:00
python [mlir] Transform dialect: introduce merge_handles op 2022-07-07 13:19:46 +02:00
test [mlir][tosa] Enable decomposing Conv2D also where 1 input dim is dynamic 2022-07-08 10:57:04 -07:00
tools [mlir] Add method to populate default attributes 2022-07-08 11:31:13 -07:00
unittests [mlir] Add method to populate default attributes 2022-07-08 11:31:13 -07:00
utils [vscode-mlir] add tablegen <> bracket colorization 2022-07-08 10:58:38 -07: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 Revert "[cmake] Don't export `LLVM_TOOLS_INSTALL_DIR` anymore" 2022-06-10 19:26:12 +00:00
LICENSE.TXT
README.md

README.md

Multi-Level Intermediate Representation

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