Lines Matching defs:Val

34   static SimpleType &getSimplifiedValue(From &Val) { return Val; }
39 static SimpleType &getSimplifiedValue(const From &Val) {
40 return simplify_type<From>::getSimplifiedValue(static_cast<From&>(Val));
49 static inline bool doit(const From &Val) {
50 return To::classof(&Val);
55 static inline bool doit(const From &Val) {
56 return isa_impl<To, From>::doit(Val);
61 static inline bool doit(const From &Val) {
62 return isa_impl<To, From>::doit(Val);
67 static inline bool doit(const From *Val) {
68 return isa_impl<To, From>::doit(*Val);
73 static inline bool doit(const From *Val) {
74 return isa_impl<To, From>::doit(*Val);
79 static inline bool doit(const From *Val) {
80 return isa_impl<To, From>::doit(*Val);
88 static bool doit(const From &Val) {
91 simplify_type<From>::getSimplifiedValue(Val));
98 static bool doit(const FromTy &Val) {
99 return isa_impl_cl<To,FromTy>::doit(Val);
109 inline bool isa(const Y &Val) {
110 return isa_impl_wrap<X, Y, typename simplify_type<Y>::SimpleType>::doit(Val);
167 static typename cast_retty<To, From>::ret_type doit(const From &Val) {
170 simplify_type<From>::getSimplifiedValue(Val));
176 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
178 = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
193 inline typename cast_retty<X, Y>::ret_type cast(const Y &Val) {
194 assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
196 typename simplify_type<Y>::SimpleType>::doit(Val);
203 inline typename cast_retty<X, Y*>::ret_type cast_or_null(Y *Val) {
204 if (Val == 0) return 0;
205 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
206 return cast<X>(Val);
219 inline typename cast_retty<X, Y>::ret_type dyn_cast(const Y &Val) {
220 return isa<X>(Val) ? cast<X, Y>(Val) : 0;
227 inline typename cast_retty<X, Y*>::ret_type dyn_cast_or_null(Y *Val) {
228 return (Val && isa<X>(Val)) ? cast<X>(Val) : 0;