ΒΆtemplate <class X, class Y>
inline typename std::enable_if<
detail::IsValidPointer<X, Y>::value,
X*>::type
dyn_extract_or_null(Y&& MD)
template <class X, class Y>
inline typename std::enable_if<
detail::IsValidPointer<X, Y>::value,
X*>::type
dyn_extract_or_null(Y&& MD)
Description
Extract a Value from Metadata, if any, allowing null. As an analogue to \a dyn_cast_or_null(), extract the \a Value subclass \c X from \c MD, return null if \c MD doesn't contain a \a Value or if the \a Value it does contain is of the wrong subclass, allowing \c MD to be null.
Declared at: llvm/include/llvm/IR/Metadata.h:591
Templates
- X
- Y
Parameters
- Y&& MD