|
LLVM 22.0.0git
|
This struct provides an overload for CastInfo where From has simplify_type defined. More...
#include "llvm/Support/Casting.h"
Public Types | |
| using | Self = CastInfo<To, From> |
| using | SimpleFrom = typename simplify_type<From>::SimpleType |
| using | SimplifiedSelf = CastInfo<To, SimpleFrom> |
| using | CastReturnType |
Static Public Member Functions | |
| static bool | isPossible (From &f) |
| static decltype(auto) | doCast (From &f) |
| static decltype(auto) | castFailed () |
| static decltype(auto) | doCastIfPossible (From &f) |
| Static Public Member Functions inherited from llvm::CastIsPossible< To, From, Enable > | |
| static bool | isPossible (const From &f) |
This struct provides an overload for CastInfo where From has simplify_type defined.
This simply forwards to the appropriate CastInfo with the simplified type/value, so you don't have to implement both.
| using llvm::CastInfo< To, From, std::enable_if_t<!is_simple_type< From >::value > >::CastReturnType |
| using llvm::CastInfo< To, From, std::enable_if_t<!is_simple_type< From >::value > >::Self = CastInfo<To, From> |
| using llvm::CastInfo< To, From, std::enable_if_t<!is_simple_type< From >::value > >::SimpleFrom = typename simplify_type<From>::SimpleType |
| using llvm::CastInfo< To, From, std::enable_if_t<!is_simple_type< From >::value > >::SimplifiedSelf = CastInfo<To, SimpleFrom> |
|
inlinestatic |
Definition at line 517 of file Casting.h.
References llvm::CastInfo< To, SimpleFrom >::castFailed().
|
inlinestatic |
Definition at line 513 of file Casting.h.
References llvm::CastInfo< To, SimpleFrom >::doCast(), and llvm::simplify_type< From >::getSimplifiedValue().
|
inlinestatic |
Definition at line 521 of file Casting.h.
References llvm::CastInfo< To, SimpleFrom >::doCastIfPossible(), and llvm::simplify_type< From >::getSimplifiedValue().
|
inlinestatic |
Definition at line 508 of file Casting.h.
References llvm::simplify_type< From >::getSimplifiedValue(), and llvm::CastIsPossible< To, From, Enable >::isPossible().