Home
last modified time | relevance | path

Searched refs:unwrapValue (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DCasting.h634 static inline decltype(auto) unwrapValue(T &t) { return t; }
641 static inline decltype(auto) unwrapValue(Optional<T> &t) { return t.value(); }
650 static inline decltype(auto) unwrapValue(T &t) { return t; }
662 template <typename T> inline decltype(auto) unwrapValue(T &t) {
663 return ValueIsPresent<T>::unwrapValue(t);
688 return cast<X>(detail::unwrapValue(Val));
695 return cast<X>(detail::unwrapValue(Val));
702 return cast<X>(detail::unwrapValue(Val));
736 return CastInfo<X, const Y>::doCastIfPossible(detail::unwrapValue(Val));
742 return CastInfo<X, Y>::doCastIfPossible(detail::unwrapValue(Val));
[all …]
/llvm-project-15.0.7/llvm/unittests/Support/
H A DCasting.cpp108 static inline const T3 &unwrapValue(const T3 &t) { return t; } in unwrapValue() function
417 static UnwrappedType &unwrapValue(pointer_wrappers::PTy &P) { return P; } in unwrapValue() function
426 static UnwrappedType &unwrapValue(const pointer_wrappers::PTy &P) { in unwrapValue() function