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

References

include/llvm/ADT/TinyPtrVector.h
   47     if (VecTy *V = Val.template dyn_cast<VecTy*>())
   52     if (VecTy *V = Val.template dyn_cast<VecTy*>())
   99     if (VecTy *V = Val.template dyn_cast<VecTy*>()) {
  167     if (VecTy *Vec = Val.template dyn_cast<VecTy*>())
  275     } else if (VecTy *Vec = Val.template dyn_cast<VecTy*>()) {
  290     } else if (VecTy *Vec = Val.template dyn_cast<VecTy*>()) {
  306     } else if (VecTy *Vec = Val.template dyn_cast<VecTy*>()) {
include/llvm/CodeGen/MachineMemOperand.h
   71       if (const auto *ValPtr = V.dyn_cast<const Value*>())
  200   const Value *getValue() const { return PtrInfo.V.dyn_cast<const Value*>(); }
  203     return PtrInfo.V.dyn_cast<const PseudoSourceValue*>();
include/llvm/CodeGen/MachineRegisterInfo.h
  650     return Val.dyn_cast<const TargetRegisterClass *>();
  659     return Val.dyn_cast<const RegisterBank *>();
include/llvm/IR/GetElementPtrTypeIterator.h
   69       if (auto *T = CurTy.dyn_cast<Type *>())
  112       return CurTy.dyn_cast<StructType *>();
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
 1577     if (auto *CI = Subrange->getCount().dyn_cast<ConstantInt*>())
 3079           CVGV.GVInfo.dyn_cast<const GlobalVariable *>()) {
lib/CodeGen/AsmPrinter/DIE.cpp
  183   return Owner.dyn_cast<DIE*>();
  217     return UnitDie->Owner.dyn_cast<DIEUnit*>();
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  708       if (auto *Dependency = Count.dyn_cast<DIVariable *>())
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
 1324   if (auto *CI = SR->getCount().dyn_cast<ConstantInt*>())
 1330   if (auto *CV = SR->getCount().dyn_cast<DIVariable*>()) {
lib/CodeGen/AsmPrinter/WinException.cpp
  759           getMCSymbolForMBB(Asm, UME.Cleanup.dyn_cast<MachineBasicBlock *>());
  847             getMCSymbolForMBB(Asm, HT.Handler.dyn_cast<MachineBasicBlock *>());
lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
   90   if (auto *RB = RegClassOrBank.dyn_cast<const RegisterBank *>())
   92   if (auto *RC = RegClassOrBank.dyn_cast<const TargetRegisterClass *>())
lib/IR/AsmWriter.cpp
 1804   if (auto *CE = N->getCount().dyn_cast<ConstantInt*>())
 1807     Printer.printMetadata("count", N->getCount().dyn_cast<DIVariable*>(),
lib/IR/LLVMContextImpl.h
  340     if (auto *RHSCount = RHS->getCount().dyn_cast<ConstantInt*>())
lib/LTO/LTO.cpp
  718     if (GlobalValue *GV = Msym.dyn_cast<GlobalValue *>()) {
lib/LTO/LTOModule.cpp
  555   const GlobalValue *decl = Sym.dyn_cast<GlobalValue *>();
  568     auto *GV = Sym.dyn_cast<GlobalValue *>();
lib/Object/IRSymtab.cpp
  239   auto *GV = Msym.dyn_cast<GlobalValue *>();
lib/Target/AArch64/AArch64InstructionSelector.cpp
 1340         = RegClassOrBank.dyn_cast<const TargetRegisterClass *>();
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
 1455   auto PSV = PtrInfo.V.dyn_cast<const PseudoSourceValue *>();
lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
   78       RegClassOrBank.dyn_cast<const TargetRegisterClass*>();
  101       RegClassOrBank.dyn_cast<const TargetRegisterClass*>();
  190     = RegClassOrBank.dyn_cast<const TargetRegisterClass *>();
 1996   auto PSV = PtrInfo.V.dyn_cast<const PseudoSourceValue *>();
lib/Target/AMDGPU/SIRegisterInfo.cpp
 1837   if (const RegisterBank *RB = RCOrRB.dyn_cast<const RegisterBank*>())
lib/Target/BPF/BPFAbstractMemberAccess.cpp
  222         auto *CI = SR->getCount().dyn_cast<ConstantInt *>();
lib/Target/BPF/BTFDebug.cpp
  486         auto *CI = SR->getCount().dyn_cast<ConstantInt *>();
lib/Transforms/IPO/LowerTypeTests.cpp
 2084       if (auto *MD = MI->dyn_cast<Metadata *>())
 2086       else if (auto *BF = MI->dyn_cast<ICallBranchFunnel *>())
tools/clang/include/clang/AST/APValue.h
  157     T dyn_cast() const { return Ptr.dyn_cast<T>(); }
tools/clang/include/clang/AST/Decl.h
 3559     if (const Type *T = IntegerType.dyn_cast<const Type*>())
 3573     return IntegerType.dyn_cast<TypeSourceInfo*>();
tools/clang/include/clang/AST/DeclCXX.h
 2268     return Initializee.dyn_cast<TypeSourceInfo *>();
tools/clang/include/clang/AST/DeclContextInternals.h
   71     return Data.dyn_cast<NamedDecl *>();
   75     return Data.dyn_cast<DeclsAndHasExternalTy>();
tools/clang/include/clang/AST/DeclFriend.h
  124     return Friend.dyn_cast<TypeSourceInfo*>();
  139     return Friend.dyn_cast<NamedDecl *>();
tools/clang/include/clang/AST/DeclTemplate.h
  316     if (auto *Prev = Storage.ValueOrInherited.template dyn_cast<ParmDecl *>())
  338     if (const auto *Prev = ValueOrInherited.template dyn_cast<ParmDecl *>())
  340     if (const auto *C = Storage->ValueOrInherited.template dyn_cast<Chain *>())
  348     if (const auto *D = ValueOrInherited.template dyn_cast<ParmDecl *>())
  350     if (const auto *C = ValueOrInherited.template dyn_cast<Chain *>())
 1798             SpecializedTemplate.dyn_cast<SpecializedPartialSpecialization *>())
 1817             SpecializedTemplate.dyn_cast<SpecializedPartialSpecialization *>())
 2306     return Friend.dyn_cast<TypeSourceInfo*>();
 2313     return Friend.dyn_cast<NamedDecl*>();
 2642             SpecializedTemplate.dyn_cast<SpecializedPartialSpecialization *>())
 2661             SpecializedTemplate.dyn_cast<SpecializedPartialSpecialization *>())
 3080   if (auto *PD = P.dyn_cast<TemplateTypeParmDecl *>())
 3082   if (auto *PD = P.dyn_cast<NonTypeTemplateParmDecl *>())
tools/clang/include/clang/AST/Expr.h
 4470     return ArrayFillerOrUnionFieldInit.dyn_cast<Expr *>();
 4488     return ArrayFillerOrUnionFieldInit.dyn_cast<FieldDecl *>();
tools/clang/include/clang/AST/ExprCXX.h
 2445     return Type.dyn_cast<TypeSourceInfo *>();
 2449     return Type.dyn_cast<IdentifierInfo *>();
tools/clang/include/clang/AST/ExternalASTSource.h
  452     if (auto *LazyVal = Value.template dyn_cast<LazyData *>()) {
  464     if (auto *LazyVal = Value.template dyn_cast<LazyData *>()) {
  476     if (auto *LazyVal = Value.template dyn_cast<LazyData *>())
tools/clang/include/clang/Basic/Module.h
  490     if (auto *E = Umbrella.dyn_cast<const FileEntry *>())
tools/clang/include/clang/Lex/PreprocessingRecord.h
  197       return NameOrDef.dyn_cast<MacroDefinitionRecord *>();
tools/clang/include/clang/Lex/Preprocessor.h
  593       auto *Info = State.dyn_cast<ModuleMacroInfo*>();
  622       if (auto *Info = State.dyn_cast<ModuleMacroInfo*>())
  627       if (auto *Info = State.dyn_cast<ModuleMacroInfo*>())
  633       if (auto *Info = State.dyn_cast<ModuleMacroInfo*>())
  670       if (auto *Info = State.dyn_cast<ModuleMacroInfo*>())
  677       auto *Info = State.dyn_cast<ModuleMacroInfo*>();
tools/clang/include/clang/Sema/SemaInternal.h
   79   if (const auto *TTP = UPP.first.dyn_cast<const TemplateTypeParmType *>())
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
  203     return Origin.dyn_cast<const Decl *>();
  223     return Origin.dyn_cast<const Expr *>();
tools/clang/lib/ARCMigrate/FileRemapper.cpp
  137     if (const FileEntry *FE = I->second.dyn_cast<const FileEntry *>()) {
  196     if (const FileEntry *FE = I->second.dyn_cast<const FileEntry *>()) {
  248   if (llvm::MemoryBuffer *oldmem = targ.dyn_cast<llvm::MemoryBuffer *>()) {
tools/clang/lib/AST/ASTContext.cpp
  914     if (const auto *D = U.dyn_cast<const Decl *>())
  916     if (const auto *S = U.dyn_cast<const Stmt *>())
  928     if (const auto *V = I->second.template dyn_cast<ParentVector *>()) {
 1418       .dyn_cast<MemberSpecializationInfo *>();
10454               .template dyn_cast<ast_type_traits::DynTypedNode *>();
tools/clang/lib/AST/Decl.cpp
 2223   if (auto *S = Init.dyn_cast<Stmt *>())
 2230   if (auto *ES = Init.dyn_cast<EvaluatedStmt *>())
 2269   if (auto *Eval = Init.dyn_cast<EvaluatedStmt *>()) {
 2328   auto *Eval = Init.dyn_cast<EvaluatedStmt *>();
 2393   if (EvaluatedStmt *Eval = Init.dyn_cast<EvaluatedStmt *>())
 2401   if (EvaluatedStmt *Eval = Init.dyn_cast<EvaluatedStmt *>())
 2487       if (auto *VTD = From.dyn_cast<VarTemplateDecl *>()) {
 2497               From.dyn_cast<VarTemplatePartialSpecializationDecl *>()) {
 2567       .dyn_cast<VarTemplateDecl *>();
 2599   if (EvaluatedStmt *Eval = Init.dyn_cast<EvaluatedStmt *>())
 2614         .dyn_cast<MemberSpecializationInfo *>();
 3470           TemplateOrSpecialization.dyn_cast<MemberSpecializationInfo *>())
 3473                        .dyn_cast<FunctionTemplateSpecializationInfo *>())
 3490   return TemplateOrSpecialization.dyn_cast<FunctionTemplateDecl *>();
 3584             .dyn_cast<FunctionTemplateSpecializationInfo*>()) {
 3593       .dyn_cast<FunctionTemplateSpecializationInfo *>();
 3600             .dyn_cast<FunctionTemplateSpecializationInfo*>()) {
 3610             .dyn_cast<FunctionTemplateSpecializationInfo*>()) {
 3636           TemplateOrSpecialization.dyn_cast<MemberSpecializationInfo *>());
 3655       .dyn_cast<DependentFunctionTemplateSpecializationInfo *>();
 3689               .dyn_cast<FunctionTemplateSpecializationInfo *>())
 3693           TemplateOrSpecialization.dyn_cast<MemberSpecializationInfo *>())
 3720               .dyn_cast<FunctionTemplateSpecializationInfo *>()) {
 3727           TemplateOrSpecialization.dyn_cast<MemberSpecializationInfo *>())
 3737         = TemplateOrSpecialization.dyn_cast<
 3748              = TemplateOrSpecialization.dyn_cast<MemberSpecializationInfo*>()) {
 3763         = TemplateOrSpecialization.dyn_cast<
 3767              = TemplateOrSpecialization.dyn_cast<MemberSpecializationInfo*>())
tools/clang/lib/AST/DeclCXX.cpp
 1674   return TemplateOrInstantiation.dyn_cast<MemberSpecializationInfo *>();
 1688   return TemplateOrInstantiation.dyn_cast<ClassTemplateDecl *>();
 1732     if (auto *CTD = From.dyn_cast<ClassTemplateDecl *>()) {
 1741             From.dyn_cast<ClassTemplatePartialSpecializationDecl *>()) {
tools/clang/lib/AST/DeclTemplate.cpp
  805           SpecializedTemplate.dyn_cast<SpecializedPartialSpecialization*>())
  842     if (const auto *ctd = inst_from.dyn_cast<ClassTemplateDecl *>())
 1140           SpecializedTemplate.dyn_cast<SpecializedPartialSpecialization *>())
tools/clang/lib/AST/Interp/ByteCodeExprGen.cpp
  429   if (auto *VD = dyn_cast_or_null<ValueDecl>(Src.dyn_cast<const Decl *>()))
  442   if (auto *VD = dyn_cast_or_null<ValueDecl>(Src.dyn_cast<const Decl *>())) {
  446   if (auto *E = Src.dyn_cast<const Expr *>()) {
tools/clang/lib/AST/Interp/Descriptor.cpp
  254   if (auto *D = Source.dyn_cast<const Decl *>())
  256   if (auto *E = Source.dyn_cast<const Expr *>())
tools/clang/lib/AST/Interp/Descriptor.h
  112   const Decl *asDecl() const { return Source.dyn_cast<const Decl *>(); }
  113   const Expr *asExpr() const { return Source.dyn_cast<const Expr *>(); }
tools/clang/lib/AST/Interp/Program.cpp
  167   const bool IsTemporary = D.dyn_cast<const Expr *>();
tools/clang/lib/AST/Interp/Source.cpp
   26   if (auto *S = Source.dyn_cast<const Stmt *>())
tools/clang/lib/AST/Interp/Source.h
   89   const Stmt *asStmt() const { return Source.dyn_cast<const Stmt *>(); }
   90   const Decl *asDecl() const { return Source.dyn_cast<const Decl *>(); }
tools/clang/lib/AST/TemplateName.cpp
  100   if (TemplateDecl *Template = Storage.dyn_cast<TemplateDecl *>())
  114           Storage.dyn_cast<UncommonTemplateNameStorage *>())
  122           Storage.dyn_cast<UncommonTemplateNameStorage *>())
  131           Storage.dyn_cast<UncommonTemplateNameStorage *>())
  140           Storage.dyn_cast<UncommonTemplateNameStorage *>())
  147   return Storage.dyn_cast<QualifiedTemplateName *>();
  151   return Storage.dyn_cast<DependentTemplateName *>();
  222   if (TemplateDecl *Template = Storage.dyn_cast<TemplateDecl *>())
tools/clang/lib/Basic/FileManager.cpp
  217     if (LLVM_LIKELY(FE = Value.dyn_cast<FileEntry *>()))
  342     if (LLVM_LIKELY(FE = Value.dyn_cast<FileEntry *>()))
  537       if (const auto *FE = (*Entry).dyn_cast<FileEntry *>())
tools/clang/lib/Basic/Module.cpp
  242   return {UmbrellaAsWritten, Umbrella.dyn_cast<const DirectoryEntry *>()};
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 7851       if (const auto *Base = Data.dyn_cast<const CXXRecordDecl *>())
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp
   32   if (auto builder = Data.dyn_cast<ConstantInitBuilderBase*>()) {
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 1819   auto *CE = E.dyn_cast<const CXXMemberCallExpr *>();
 1820   auto *D = E.dyn_cast<const CXXDeleteExpr *>();
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
 1906   auto *CE = E.dyn_cast<const CXXMemberCallExpr *>();
 1907   auto *D = E.dyn_cast<const CXXDeleteExpr *>();
tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
  641   if (const Diagnostic *Info = D.dyn_cast<const Diagnostic*>()) {
tools/clang/lib/Index/IndexDecl.cpp
  202     if (const auto *CTD = Template.dyn_cast<ClassTemplateDecl *>()) {
tools/clang/lib/Sema/SemaCodeComplete.cpp
  106               DeclOrVector.dyn_cast<const NamedDecl *>()) {
  121               DeclOrVector.dyn_cast<DeclIndexPairVector *>()) {
  613     if (const NamedDecl *ND = DeclOrIterator.dyn_cast<const NamedDecl *>())
  637   if (const NamedDecl *ND = DeclOrVector.dyn_cast<const NamedDecl *>())
tools/clang/lib/Sema/SemaDecl.cpp
14823         if (TypeSourceInfo *TI = EnumUnderlying.dyn_cast<TypeSourceInfo *>())
15186           if (TypeSourceInfo *TI = EnumUnderlying.dyn_cast<TypeSourceInfo*>())
15188           else if (const Type *T = EnumUnderlying.dyn_cast<const Type*>())
15442       if (TypeSourceInfo *TI = EnumUnderlying.dyn_cast<TypeSourceInfo*>())
17272     if (EnumConstantDecl *D = Entry.dyn_cast<EnumConstantDecl*>()) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
 7253     if (auto *B = Subobj.dyn_cast<CXXBaseSpecifier*>())
 7346   if (CXXBaseSpecifier *base = Subobj.dyn_cast<CXXBaseSpecifier*>()) {
 7364   FieldDecl *Field = Subobj.dyn_cast<FieldDecl*>();
 7414   FieldDecl *Field = Subobj.dyn_cast<FieldDecl*>();
11255   FieldDecl *Field = Subobj.dyn_cast<FieldDecl*>();
tools/clang/lib/Sema/SemaDeclObjC.cpp
 1571     if (auto *actualTypeDecl = typeDecl.dyn_cast<TypeDecl *>())
tools/clang/lib/Sema/SemaOverload.cpp
10243   (ParamD = Param.dyn_cast<TemplateTypeParmDecl*>()) ||
10244   (ParamD = Param.dyn_cast<NonTypeTemplateParmDecl*>()) ||
10245   (ParamD = Param.dyn_cast<TemplateTemplateParmDecl*>());
tools/clang/lib/Sema/SemaTemplate.cpp
10444     if (auto *TD = From.dyn_cast<ClassTemplateDecl *>())
10447                  From.dyn_cast<ClassTemplatePartialSpecializationDecl *>()) {
10460     if (auto *TD = From.dyn_cast<VarTemplateDecl *>())
10463                  From.dyn_cast<VarTemplatePartialSpecializationDecl *>()) {
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
   90               Specialized.dyn_cast<VarTemplatePartialSpecializationDecl *>()) {
 1446   if (DeclArgumentPack *Pack = Found->dyn_cast<DeclArgumentPack *>()) {
 2604           Specialized.dyn_cast<ClassTemplatePartialSpecializationDecl *>()) {
 3057   } else if (DeclArgumentPack *Pack = Stored.dyn_cast<DeclArgumentPack *>()) {
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
 4884           PatternPtr.dyn_cast<VarTemplatePartialSpecializationDecl *>())
 5339         if (Decl *FD = Found->dyn_cast<Decl *>())
tools/clang/lib/Sema/SemaTemplateVariadic.cpp
  305         if (auto *TTPT = Pack.first.dyn_cast<const TemplateTypeParmType *>()) {
  359           = Unexpanded[I].first.dyn_cast<const TemplateTypeParmType *>())
  666         = i->first.dyn_cast<const TemplateTypeParmType *>()) {
  795           = Unexpanded[I].first.dyn_cast<const TemplateTypeParmType *>()) {
tools/clang/lib/Serialization/ASTReaderDecl.cpp
 4300                     .dyn_cast<FunctionTemplateSpecializationInfo *>())
tools/clang/lib/Serialization/ASTWriter.cpp
 5339                 From.dyn_cast<ClassTemplatePartialSpecializationDecl*>()) {
tools/clang/lib/Serialization/ASTWriterDecl.cpp
 1485   if (Decl *InstFromD = InstFrom.dyn_cast<ClassTemplateDecl *>()) {
 1544   if (Decl *InstFromD = InstFrom.dyn_cast<VarTemplateDecl *>()) {
tools/clang/lib/Serialization/MultiOnDiskHashTable.h
  116                                           .template dyn_cast<MergedTable*>();
tools/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
  231   ExplodedNodeVector *V = Storage.dyn_cast<ExplodedNodeVector *>();
  257   if (ExplodedNodeVector *V = Storage.dyn_cast<ExplodedNodeVector *>())
  269   if (ExplodedNodeVector *V = Storage.dyn_cast<ExplodedNodeVector *>())
  281   if (ExplodedNodeVector *V = Storage.dyn_cast<ExplodedNodeVector *>())
tools/clang/tools/libclang/CIndex.cpp
 4547       if (const Decl *D = Storage.dyn_cast<const Decl *>()) {
 4552       if (const OverloadExpr *E = Storage.dyn_cast<const OverloadExpr *>())
 6492   if (const OverloadExpr *E = Storage.dyn_cast<const OverloadExpr *>())
 6496                               = Storage.dyn_cast<OverloadedTemplateStorage*>())
 6515   if (const OverloadExpr *E = Storage.dyn_cast<const OverloadExpr *>())
 6519                               = Storage.dyn_cast<OverloadedTemplateStorage*>())
tools/clang/tools/libclang/CIndexDiagnostic.cpp
   97     const StoredDiagnostic *SD = D.dyn_cast<const StoredDiagnostic*>();
tools/clang/unittests/CodeGen/IRMatchers.h
   71       return Entity.dyn_cast<const T *>();
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
  406     if (RecordVec *V = DiagsInPedantic.dyn_cast<RecordVec*>())
  437     if (RecordVec *V = GroupsInPedantic.dyn_cast<RecordVec*>())
unittests/ADT/PointerUnionTest.cpp
  136   EXPECT_EQ(a.dyn_cast<Aligned<0>*>(), &a0);
  148   EXPECT_EQ(a.dyn_cast<Aligned<7>*>(), &a7);
utils/TableGen/AsmMatcherEmitter.cpp
  569     delete DefRec.dyn_cast<const CodeGenInstAlias*>();