llvm-project/mlir/lib
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
..
Analysis [mlir] Delete ForwardDataFlowAnalysis 2022-07-07 21:08:27 -07:00
Bindings/Python [mlir] Structured transforms: introduce op splitting 2022-07-07 13:19:44 +02:00
CAPI [mlir] Structured transforms: introduce op splitting 2022-07-07 13:19:44 +02:00
Conversion [mlir][complex] Lower complex.angle to libm 2022-07-08 04:39:23 +02:00
Dialect [mlir][tosa] Enable decomposing Conv2D also where 1 input dim is dynamic 2022-07-08 10:57:04 -07:00
ExecutionEngine [mlir][NFC] Fix various warnings generated by GCC 9 2022-07-04 13:22:33 +03:00
IR [mlir] Add method to populate default attributes 2022-07-08 11:31:13 -07:00
Interfaces [mlir][interfaces][NFC] Remove ViewLikeInterface::expandToRank 2022-07-05 16:59:18 +02:00
Parser [mlir:LSP] Add support for MLIR code completions 2022-07-07 13:35:54 -07:00
Pass [mlir] Refactor pass crash reproducer generation to be an assembly resource 2022-06-29 12:14:02 -07:00
Reducer [mlir] Add asserts when changing various MLIRContext configurations 2022-04-15 21:49:03 -07:00
Rewrite Use value_or instead of getValueOr (NFC) 2022-06-19 10:34:41 -07:00
Support [mlir] Remove unneeded cl::ZeroOrMore for ListOption variables. NFC 2022-06-30 19:04:44 -07:00
TableGen [mlir][ods] Make Type- and AttrInterfaces also `Type`s and `Attr`s 2022-07-07 11:54:47 +02:00
Target [mlir][OpenMP] Add if clause to OpenMP simd construct 2022-07-06 07:24:48 -05:00
Tools [mlir:LSP] Add support for MLIR code completions 2022-07-07 13:35:54 -07:00
Transforms [mlir] Swap integer range inference to the new framework 2022-07-07 20:28:13 -07:00
CMakeLists.txt [MLIR] Fix build without native arch 2022-05-12 09:50:51 +02:00