HomePhabricator

[Support] Add support RTTI support for open class hierarchies.

Authored by lhames on Apr 10 2020, 5:23 PM.

Description

[Support] Add support RTTI support for open class hierarchies.

This patch extracts the RTTI part of llvm::ErrorInfo into its own class
(RTTIExtends) so that it can be used in other non-error hierarchies, and makes
it compatible with the existing LLVM RTTI function templates (isa, cast,
dyn_cast, dyn_cast_or_null) by adding the classof method.

Differential Revision: https://reviews.llvm.org/D39111

Details

Committed
lhamesApr 13 2020, 12:52 PM
Differential Revision
D39111: Extensible LLVM RTTI
Parents
rGec99d6e62f0a: [mlir][spirv] Add a `spirv::InterfaceVarABIAttr`.
Branches
Unknown
Tags
Unknown