reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   77     return isa_impl<To, From>::doit(Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  165   using ret_type = To &;       // Normal case, return Ty&
  168   using ret_type = const To &; // Normal case, return Ty&
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  258   return cast_convert_val<X, Y,
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGCleanup.cpp
  144     EHCleanupScope *cleanup = dyn_cast<EHCleanupScope>(&*it);
  144     EHCleanupScope *cleanup = dyn_cast<EHCleanupScope>(&*it);
  155     if (auto *cleanup = dyn_cast<EHCleanupScope>(&*find(si)))
  155     if (auto *cleanup = dyn_cast<EHCleanupScope>(&*find(si)))
  170     EHCleanupScope &cleanup = cast<EHCleanupScope>(*find(si));
  170     EHCleanupScope &cleanup = cast<EHCleanupScope>(*find(si));
  179   char *Buffer = allocate(EHCleanupScope::getSizeForCleanupSize(Size));
  184   EHCleanupScope *Scope =
  185     new (Buffer) EHCleanupScope(IsNormalCleanup,
  206   EHCleanupScope &Cleanup = cast<EHCleanupScope>(*begin());
  206   EHCleanupScope &Cleanup = cast<EHCleanupScope>(*begin());
  269   unsigned MinSize = cast<EHCleanupScope>(*it).getFixupDepth();
  294   EHCleanupScope &cleanup = cast<EHCleanupScope>(*EHStack.begin());
  294   EHCleanupScope &cleanup = cast<EHCleanupScope>(*EHStack.begin());
  424     EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin());
  424     EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin());
  506                                            EHCleanupScope &Scope) {
  605                                          EHCleanupScope &scope) {
  647   EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin());
  647   EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin());
  710       prebranchDest = CreateNormalEntry(*this, cast<EHCleanupScope>(enclosing));
  823         BranchThroughDest = CreateNormalEntry(*this, cast<EHCleanupScope>(S));
 1088     EHCleanupScope &Scope =
 1089       cast<EHCleanupScope>(*EHStack.find(TopCleanup));
 1098       EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(I));
 1098       EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(I));
 1123   if (cast<EHCleanupScope>(*EHStack.find(C)).getNormalBlock())
 1131     EHCleanupScope &S = cast<EHCleanupScope>(*EHStack.find(I));
 1131     EHCleanupScope &S = cast<EHCleanupScope>(*EHStack.find(I));
 1174   EHCleanupScope &Scope = cast<EHCleanupScope>(*CGF.EHStack.find(C));
 1174   EHCleanupScope &Scope = cast<EHCleanupScope>(*CGF.EHStack.find(C));
 1231   EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C));
 1231   EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C));
 1243   EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C));
 1243   EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C));
tools/clang/lib/CodeGen/CGCleanup.h
  280     return sizeof(EHCleanupScope) + Size;
  284     return sizeof(EHCleanupScope) + CleanupBits.CleanupSize;
  429 static_assert(alignof(EHCleanupScope) == EHScopeStack::ScopeStackAlignment,
tools/clang/lib/CodeGen/CGCoroutine.cpp
  511       if (auto *Cleanup = dyn_cast<EHCleanupScope>(&*b)) {
  511       if (auto *Cleanup = dyn_cast<EHCleanupScope>(&*b)) {
tools/clang/lib/CodeGen/CGException.cpp
  690     return !cast<EHCleanupScope>(S).isEHCleanup();
  802       hasCleanup = (hasCleanup || cast<EHCleanupScope>(*I).isEHCleanup());