|
LLVM 23.0.0git
|
This struct provides a way to check if a given cast is possible. More...
#include "llvm/Support/Casting.h"
Static Public Member Functions | |
| static bool | isPossible (const From &f) |
This struct provides a way to check if a given cast is possible.
It provides a static function called isPossible that is used to check if a cast can be performed. It should be overridden like this:
template<> struct CastIsPossible<foo, bar> { static inline bool isPossible(const bar &b) { return bar.isFoo(); } };
|
inlinestatic |
Definition at line 254 of file Casting.h.
Referenced by llvm::CastInfo< To, PointerUnion< PTs... > >::doCast(), llvm::CastInfo< SCEVUseT< ToSCEVPtrT >, SCEVUse, std::enable_if_t<!is_simple_type< SCEVUse >::value > >::doCastIfPossible(), llvm::CastInfo< To, From, Enable >::doCastIfPossible(), llvm::isa(), and llvm::CastInfo< To, From, std::enable_if_t<!is_simple_type< From >::value > >::isPossible().