[all-commits] [llvm/llvm-project] 83ef86: [mlir] Add support for generating Attribute classe...
River Riddle via All-commits
all-commits at lists.llvm.org
Wed Mar 3 16:48:58 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 83ef862fad6b14dd1651f5e31e331eb89a95f0ff
https://github.com/llvm/llvm-project/commit/83ef862fad6b14dd1651f5e31e331eb89a95f0ff
Author: River Riddle <riddleriver at gmail.com>
Date: 2021-03-03 (Wed, 03 Mar 2021)
Changed paths:
M mlir/include/mlir/IR/OpBase.td
A mlir/include/mlir/TableGen/AttrOrTypeDef.h
M mlir/include/mlir/TableGen/CodeGenHelpers.h
R mlir/include/mlir/TableGen/TypeDef.h
A mlir/lib/TableGen/AttrOrTypeDef.cpp
M mlir/lib/TableGen/CMakeLists.txt
R mlir/lib/TableGen/TypeDef.cpp
M mlir/test/lib/Dialect/Test/CMakeLists.txt
A mlir/test/lib/Dialect/Test/TestAttrDefs.td
A mlir/test/lib/Dialect/Test/TestAttributes.cpp
A mlir/test/lib/Dialect/Test/TestAttributes.h
M mlir/test/lib/Dialect/Test/TestDialect.cpp
M mlir/test/lib/Dialect/Test/TestOps.td
A mlir/test/mlir-tblgen/attrdefs.td
A mlir/test/mlir-tblgen/testdialect-attrdefs.mlir
M mlir/test/mlir-tblgen/typedefs.td
A mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
M mlir/tools/mlir-tblgen/CMakeLists.txt
M mlir/tools/mlir-tblgen/OpDocGen.cpp
R mlir/tools/mlir-tblgen/TypeDefGen.cpp
Log Message:
-----------
[mlir] Add support for generating Attribute classes for ODS
The support for attributes closely maps that of Types (basically 1-1) given that Attributes are defined in exactly the same way as Types. All of the current ODS TypeDef classes get an Attr equivalent. The generation of the attribute classes themselves share the same generator as types.
Differential Revision: https://reviews.llvm.org/D97589
More information about the All-commits
mailing list