llvm-project/mlir/lib/TableGen
Stella Laurenzo 485cc55edf [mlir] Generare .cpp.inc files for dialects.
* Previously, we were only generating .h.inc files. We foresee the need to also generate implementations and this is a step towards that.
* Discussed in https://llvm.discourse.group/t/generating-cpp-inc-files-for-dialects/3732/2
* Deviates from the discussion above by generating a default constructor in the .cpp.inc file (and adding a tablegen bit that disables this in case if this is user provided).
* Generating the destructor started as a way to flush out the missing includes (produces a link error), but it is a strict improvement on its own that is worth doing (i.e. by emitting key methods in the .cpp file, we root vtables in one translation unit, which is a non-controversial improvement).

Differential Revision: https://reviews.llvm.org/D105070
2021-06-29 20:10:30 +00:00
..
Argument.cpp [MLIR][NFC] Remove tblgen:: prefix in TableGen/*.cpp files 2020-08-12 14:41:18 -07:00
AttrOrTypeDef.cpp [mlir] Add support for adding attribute+type traits/interfaces to tablegen defs 2021-04-15 11:41:51 -07:00
Attribute.cpp [mlir][ODS] Support specialized Attribute class for Enums 2021-03-17 16:44:24 +03:00
Builder.cpp [mlir][ODS] Add a C++ abstraction for OpBuilders 2021-01-11 12:06:22 -08:00
CMakeLists.txt [mlir] Add support for adding attribute+type traits/interfaces to tablegen defs 2021-04-15 11:41:51 -07:00
Constraint.cpp [mlir][ODS] Rename several uses of 'description' to 'summary' 2021-01-06 14:18:58 -08:00
Dialect.cpp [mlir] Generare .cpp.inc files for dialects. 2021-06-29 20:10:30 +00:00
Format.cpp [drr] Enable specifying range in NativeCodeCall replacement. 2021-06-28 13:42:16 -07:00
Interfaces.cpp
OpClass.cpp [mlir][OpGen] Cache Identifiers for known attribute names in AbstractOperation. 2021-06-22 19:56:05 +00:00
Operator.cpp [mlir][ODS]: Add per-op cppNamespace. 2021-05-11 10:48:05 -07:00
Pass.cpp Separate the Registration from Loading dialects in the Context 2020-08-19 01:19:03 +00:00
Pattern.cpp Support NativeCodeCall binding in rewrite pattern. 2021-05-10 09:29:27 +08:00
Predicate.cpp [mlir][PDL] Add support for variadic operands and results in the PDL Interpreter 2021-03-16 13:20:19 -07:00
Region.cpp
SideEffects.cpp [mlir] Add support for adding attribute+type traits/interfaces to tablegen defs 2021-04-15 11:41:51 -07:00
Successor.cpp
Trait.cpp [mlir] Add support for adding attribute+type traits/interfaces to tablegen defs 2021-04-15 11:41:51 -07:00
Type.cpp [mlir][ODS] Fix the use of cppClassName in Type constraints for TypeDefs 2021-01-06 14:18:58 -08:00