Revision tags: llvmorg-18.1.8, llvmorg-18.1.7, llvmorg-18.1.6, llvmorg-18.1.5, llvmorg-18.1.4, llvmorg-18.1.3, llvmorg-18.1.2, llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4, llvmorg-18.1.0-rc3, llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1, llvmorg-19-init |
|
#
3dbac2c0 |
| 30-Nov-2023 |
Fehr Mathieu <mathieu.fehr@gmail.com> |
[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 `Abstrac
[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.
show more ...
|
Revision tags: llvmorg-17.0.6, llvmorg-17.0.5, llvmorg-17.0.4, llvmorg-17.0.3, llvmorg-17.0.2, llvmorg-17.0.1, llvmorg-17.0.0, llvmorg-17.0.0-rc4, llvmorg-17.0.0-rc3, llvmorg-17.0.0-rc2, llvmorg-17.0.0-rc1, llvmorg-18-init, llvmorg-16.0.6, llvmorg-16.0.5, llvmorg-16.0.4, llvmorg-16.0.3, llvmorg-16.0.2, llvmorg-16.0.1 |
|
#
923230d4 |
| 24-Mar-2023 |
Rahul Kayaith <rkayaith@gmail.com> |
[mlir] Add missing cast functions to mlir namespace
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D146843
|
Revision tags: llvmorg-16.0.0, llvmorg-16.0.0-rc4, llvmorg-16.0.0-rc3, llvmorg-16.0.0-rc2, llvmorg-16.0.0-rc1, llvmorg-17-init, llvmorg-15.0.7, llvmorg-15.0.6, llvmorg-15.0.5, llvmorg-15.0.4, llvmorg-15.0.3, working, llvmorg-15.0.2, llvmorg-15.0.1, llvmorg-15.0.0 |
|
#
0b7f05e1 |
| 29-Aug-2022 |
Mehdi Amini <joker.eph@gmail.com> |
Apply clang-tidy fixes for llvm-include-order in TypeTest.cpp (NFC)
|
Revision tags: llvmorg-15.0.0-rc3 |
|
#
bb63d249 |
| 17-Aug-2022 |
Tyker <tyker1@outlook.com> |
[NFC][mlir] Add support for llvm style casting for mlir types
Note: when operating on a Type hierarchy with LeafType inheriting from MiddleType which inherits from mlir::Type. calling LeafType::clas
[NFC][mlir] Add support for llvm style casting for mlir types
Note: when operating on a Type hierarchy with LeafType inheriting from MiddleType which inherits from mlir::Type. calling LeafType::classof(MiddleType) will always return false. because classof call the static getTypeID from its parent instead of the dynamic Type::getTypeID so classof in this context will check if the TypeID of LeafType is the same as the TypeID of MiddleType which is always false. It is bypassed in this commit inside CastInfo<To, From>::isPossible by calling classof with an mlir::Type. but other unsuspecting users of LeafType::classof(MiddleType) would still get an incorrect result.
show more ...
|