[all-commits] [llvm/llvm-project] 5fe53c: [MLIR] Add support for defining Types in tblgen
John Demme via All-commits
all-commits at lists.llvm.org
Tue Oct 13 17:32:47 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 5fe53c412832b3c18cd1e4e9f54848304e3a74bc
https://github.com/llvm/llvm-project/commit/5fe53c412832b3c18cd1e4e9f54848304e3a74bc
Author: John Demme <john.demme at microsoft.com>
Date: 2020-10-14 (Wed, 14 Oct 2020)
Changed paths:
M mlir/cmake/modules/AddMLIR.cmake
M mlir/include/mlir/IR/OpBase.td
A mlir/include/mlir/TableGen/TypeDef.h
M mlir/lib/TableGen/CMakeLists.txt
A mlir/lib/TableGen/TypeDef.cpp
M mlir/test/lib/Dialect/Test/CMakeLists.txt
M mlir/test/lib/Dialect/Test/TestDialect.cpp
A mlir/test/lib/Dialect/Test/TestTypeDefs.td
A mlir/test/lib/Dialect/Test/TestTypes.cpp
M mlir/test/lib/Dialect/Test/TestTypes.h
A mlir/test/mlir-tblgen/testdialect-typedefs.mlir
A mlir/test/mlir-tblgen/typedefs.td
M mlir/tools/mlir-tblgen/CMakeLists.txt
M mlir/tools/mlir-tblgen/OpDocGen.cpp
A mlir/tools/mlir-tblgen/TypeDefGen.cpp
Log Message:
-----------
[MLIR] Add support for defining Types in tblgen
Adds a TypeDef class to OpBase and backing generation code. Allows one
to define the Type, its parameters, and printer/parser methods in ODS.
Can generate the Type C++ class, accessors, storage class, per-parameter
custom allocators (for the storage constructor), and documentation.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D86904
More information about the All-commits
mailing list