Go to the documentation of this file.
15#include "llvm/Support/Casting.h"
20using llvm::cast_or_null;
22using llvm::dyn_cast_or_null;
24#if LLVM_VERSION_CODE >= LLVM_VERSION(9, 0)
25using llvm::isa_and_nonnull;
27template <
typename...
X,
typename Y>
28inline bool isa_and_nonnull(
const Y &value) {
29 return value && isa<
X...>(value);