Lines Matching refs:Y
131 template <class X, class Y>
132 LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
133 return isa_impl_wrap<X, const Y,
134 typename simplify_type<const Y>::SimpleType>::doit(Val);
219 template <class X, class Y>
220 inline typename std::enable_if<!is_simple_type<Y>::value,
221 typename cast_retty<X, const Y>::ret_type>::type
222 cast(const Y &Val) {
225 X, const Y, typename simplify_type<const Y>::SimpleType>::doit(Val);
228 template <class X, class Y>
229 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
231 return cast_convert_val<X, Y,
232 typename simplify_type<Y>::SimpleType>::doit(Val);
235 template <class X, class Y>
236 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
238 return cast_convert_val<X, Y*,
239 typename simplify_type<Y*>::SimpleType>::doit(Val);
245 template <class X, class Y>
247 !is_simple_type<Y>::value, typename cast_retty<X, const Y>::ret_type>::type
248 cast_or_null(const Y &Val) {
255 template <class X, class Y>
257 !is_simple_type<Y>::value, typename cast_retty<X, Y>::ret_type>::type
258 cast_or_null(Y &Val) {
265 template <class X, class Y>
266 LLVM_ATTRIBUTE_UNUSED_RESULT inline typename cast_retty<X, Y *>::ret_type
267 cast_or_null(Y *Val) {
282 template <class X, class Y>
284 !is_simple_type<Y>::value, typename cast_retty<X, const Y>::ret_type>::type
285 dyn_cast(const Y &Val) {
289 template <class X, class Y>
290 LLVM_ATTRIBUTE_UNUSED_RESULT inline typename cast_retty<X, Y>::ret_type
291 dyn_cast(Y &Val) {
295 template <class X, class Y>
296 LLVM_ATTRIBUTE_UNUSED_RESULT inline typename cast_retty<X, Y *>::ret_type
297 dyn_cast(Y *Val) {
304 template <class X, class Y>
306 !is_simple_type<Y>::value, typename cast_retty<X, const Y>::ret_type>::type
307 dyn_cast_or_null(const Y &Val) {
311 template <class X, class Y>
313 !is_simple_type<Y>::value, typename cast_retty<X, Y>::ret_type>::type
314 dyn_cast_or_null(Y &Val) {
318 template <class X, class Y>
319 LLVM_ATTRIBUTE_UNUSED_RESULT inline typename cast_retty<X, Y *>::ret_type
320 dyn_cast_or_null(Y *Val) {