[all-commits] [llvm/llvm-project] 3dbac2: [mlir] Expose type and attribute names in the MLIR...
Fehr Mathieu via All-commits
all-commits at lists.llvm.org
Thu Nov 30 15:39:49 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3dbac2c007c114a720300d2a4d79abe9ca1351e7
https://github.com/llvm/llvm-project/commit/3dbac2c007c114a720300d2a4d79abe9ca1351e7
Author: Fehr Mathieu <mathieu.fehr at gmail.com>
Date: 2023-12-01 (Fri, 01 Dec 2023)
Changed paths:
M flang/include/flang/Optimizer/Dialect/FIRAttr.h
M mlir/examples/toy/Ch7/include/toy/Dialect.h
M mlir/include/mlir/Dialect/DLTI/DLTI.h
M mlir/include/mlir/Dialect/GPU/IR/GPUDialect.h
M mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h
M mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.td
M mlir/include/mlir/Dialect/Quant/QuantTypes.h
M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVAttributes.h
M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVTypes.h
M mlir/include/mlir/IR/AttrTypeBase.td
M mlir/include/mlir/IR/AttributeSupport.h
M mlir/include/mlir/IR/BuiltinAttributes.h
M mlir/include/mlir/IR/BuiltinAttributes.td
M mlir/include/mlir/IR/BuiltinLocationAttributes.td
M mlir/include/mlir/IR/BuiltinTypes.td
M mlir/include/mlir/IR/TypeSupport.h
M mlir/include/mlir/TableGen/AttrOrTypeDef.h
M mlir/lib/IR/ExtensibleDialect.cpp
M mlir/lib/IR/MLIRContext.cpp
M mlir/lib/TableGen/AttrOrTypeDef.cpp
M mlir/test/lib/Dialect/Test/TestTypes.h
M mlir/test/mlir-tblgen/attrdefs.td
M mlir/test/mlir-tblgen/op-attribute.td
M mlir/test/mlir-tblgen/op-decl-and-defs.td
M mlir/test/mlir-tblgen/typedefs.td
M mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
M mlir/unittests/IR/CMakeLists.txt
A mlir/unittests/IR/TypeAttrNamesTest.cpp
M mlir/unittests/IR/TypeTest.cpp
M mlir/unittests/Interfaces/DataLayoutInterfacesTest.cpp
Log Message:
-----------
[mlir] Expose type and attribute names in the MLIRContext and abstract type/attr classes (#72189)
This patch expose the type and attribute names in C++ as methods in the
`AbstractType` and `AbstractAttribute` classes, and keep a map of names
to `AbstractType` and `AbstractAttribute` in the `MLIRContext`. Type and
attribute names should be unique.
It adds support in ODS to generate the `getName` methods in
`AbstractType` and `AbstractAttribute`, through the use of two new
variables, `typeName` and `attrName`. It also adds names to C++-defined
type and attributes.
More information about the All-commits
mailing list