llvm-project/mlir/lib/TableGen
Jacques Pienaar 4b8632e174 [mlir] Expand operand adapter to take attributes
* Enables using with more variadic sized operands;
* Generate convenience accessors for attributes;
  - The accessor are named the same as their name in ODS and returns attribute
    type (not convenience type) and no derived attributes.

This is first step to changing adapter to support verifying argument
constraints before the op is even created. This does not change the name of
adaptor nor does it require it except for ops with variadic operands to keep this change smaller.

Considered creating separate adapter but decided against that given operands also require attributes in general (and definitely for verification of operands and attributes).

Differential Revision: https://reviews.llvm.org/D80420
2020-05-24 21:06:47 -07:00
..
Argument.cpp [mlir][ODS] Add support for optional operands and results with a new Optional directive. 2020-04-10 14:12:06 -07:00
Attribute.cpp [mlir] Add support for generating dialect declarations via tablegen. 2020-03-14 20:36:44 -07:00
CMakeLists.txt [MLIR] LLVMMLIRTableGen -> MLIRTableGen 2020-05-19 14:49:32 -07:00
Constraint.cpp [mlir][ODS] Add support for specifying the successors of an operation. 2020-02-21 15:15:32 -08:00
Dialect.cpp [mlir] Add support for the attribute verifiers in the dialect declaration generator. 2020-03-16 18:32:23 -07:00
Format.cpp Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
OpClass.cpp [mlir] Expand operand adapter to take attributes 2020-05-24 21:06:47 -07:00
OpInterfaces.cpp [mlir][Symbol] Change Symbol from a Trait into an OpInterface. 2020-04-27 13:04:49 -07:00
OpTrait.cpp [mlir][DeclareOpInterfaceMethods] Allow specifying a set of methods to force declaration generation for. 2020-04-29 16:48:15 -07:00
Operator.cpp [mlir] Optimize operand storage such that all operations can have resizable operand lists 2020-04-26 21:34:01 -07:00
Pass.cpp [mlir][Pass] Update the PassGen to generate base classes instead of utilities 2020-04-07 14:08:52 -07:00
Pattern.cpp Revert "[mlir][drr] NFC: avoid SmallVector when collecting substitution values" 2020-04-24 15:33:03 -04:00
Predicate.cpp [mlir-tblgen] Stop leaking PredNodes 2020-02-06 18:03:15 +01:00
Region.cpp [mlir][ODS] Add support for variadic regions. 2020-04-05 01:03:38 -07:00
SideEffects.cpp [mlir] Updated SideEffect interface definitions to use tablegen Resource objects. 2020-05-08 09:55:08 +02:00
Successor.cpp [llvm][ADT] Move TypeSwitch class from MLIR to LLVM 2020-04-14 15:14:41 -07:00
Type.cpp [llvm][ADT] Move TypeSwitch class from MLIR to LLVM 2020-04-14 15:14:41 -07:00