llvm-project/mlir/unittests/IR
Tyker bb63d249f8 [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.
2022-08-24 09:33:01 -07:00
..
AttributeTest.cpp Reland "[mlir][test] Fix IR/AttributeTest.cpp compilation on Solaris" 2022-08-19 21:59:57 +02:00
CMakeLists.txt [NFC][mlir] Add support for llvm style casting for mlir types 2022-08-24 09:33:01 -07:00
DialectTest.cpp [mlir] Rework the implementation of TypeID 2022-04-04 13:52:26 -07:00
InterfaceAttachmentTest.cpp [mlir] Refactor DialectRegistry delayed interface support into a general DialectExtension mechanism 2022-03-16 22:15:25 -07:00
InterfaceTest.cpp [mlir] Define proper DenseMapInfo for Interfaces 2022-07-06 12:27:44 +02:00
OperationSupportTest.cpp [mlir] Populate default attributes on op creation 2022-08-22 16:49:46 -07:00
PatternMatchTest.cpp
ShapedTypeTest.cpp
SubElementInterfaceTest.cpp
TypeTest.cpp [NFC][mlir] Add support for llvm style casting for mlir types 2022-08-24 09:33:01 -07:00