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

References

include/llvm/ADT/FunctionExtras.h
  127     return CallbackAndInlineFlag.getPointer().template is<TrivialCallback *>();
include/llvm/ADT/PointerUnion.h
  195     assert(is<T>() && "Invalid accessor called");
  202     if (is<T>())
  216     assert(is<First>() && "Val is not the first pointer");
include/llvm/ADT/TinyPtrVector.h
   66     if (Val.template is<EltTy>()) {
   75     if (RHS.Val.template is<EltTy>()) {
  100       if (RHS.Val.template is<EltTy>()) {
  140     if (Val.template is<EltTy>())
  149     if (Val.template is<EltTy>())
  175     if (Val.template is<EltTy>())
  186     if (Val.template is<EltTy>())
  193     if (Val.template is<EltTy>())
  220     if (Val.template is<EltTy>()) {
  232     if (Val.template is<EltTy>())
  239     if (Val.template is<EltTy>())
  253     if (Val.template is<EltTy>()) {
  265     if (Val.template is<EltTy>())
  273     if (Val.template is<EltTy>()) {
  287     if (Val.template is<EltTy>()) {
  303     if (Val.template is<EltTy>()) {
  320     if (Val.template is<EltTy>()) {
  347     } else if (Val.template is<EltTy>()) {
include/llvm/CodeGen/MachineMemOperand.h
   81     if (V.is<const Value*>())
include/llvm/CodeGen/MachineRegisterInfo.h
  632     assert(VRegInfo[Reg.id()].first.is<const TargetRegisterClass *>() &&
include/llvm/IR/GetElementPtrTypeIterator.h
  106     bool isStruct() const { return CurTy.is<StructType *>(); }
  107     bool isSequential() const { return CurTy.is<Type *>(); }
include/llvm/IR/Metadata.h
  791     return Ptr.is<ReplaceableMetadataImpl *>();
lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
  131   if (RegClassOrBank.is<const TargetRegisterClass *>())
lib/CodeGen/MachineOperand.cpp
  974   if (!V.is<const Value *>())
 1024   assert((PtrInfo.V.isNull() || PtrInfo.V.is<const PseudoSourceValue *>() ||
lib/CodeGen/MachineRegisterInfo.cpp
  105     else if (RegCB.is<const TargetRegisterClass *>() !=
  106              ConstrainingRegCB.is<const TargetRegisterClass *>())
  108     else if (RegCB.is<const TargetRegisterClass *>()) {
lib/CodeGen/ScheduleDAGInstrs.cpp
 1023     if (Itr.first.is<const Value*>()) {
 1030     else if (Itr.first.is<const PseudoSourceValue*>())
lib/IR/Metadata.cpp
  260     if (Owner.is<MetadataAsValue *>()) {
  300     if (Owner.is<MetadataAsValue *>())
lib/IR/Verifier.cpp
  895   AssertDI(!Count.is<ConstantInt*>() ||
lib/Object/ModuleSymbolTable.cpp
  172   if (S.is<AsmSymbol *>()) {
  185   if (S.is<AsmSymbol *>())
lib/Support/SourceMgr.cpp
  112     if (OffsetCache.is<std::vector<uint8_t>*>())
  114     else if (OffsetCache.is<std::vector<uint16_t>*>())
  116     else if (OffsetCache.is<std::vector<uint32_t>*>())
lib/Transforms/IPO/LowerTypeTests.cpp
 2106       if (MI->is<Metadata *>())
 2108       else if (MI->is<GlobalTypeMember *>())
tools/clang/include/clang/AST/APValue.h
  151     bool is() const { return Ptr.is<T>(); }
tools/clang/include/clang/AST/Decl.h
  710   bool hasExtInfo() const { return DeclInfo.is<ExtInfo*>(); }
 3039     return MaybeModedTInfo.getPointer().is<ModedTInfo *>();
 3166   bool hasExtInfo() const { return TypedefNameDeclOrQualifier.is<ExtInfo *>(); }
tools/clang/include/clang/AST/DeclBase.h
  269   bool isInSemaDC() const { return DeclCtx.is<DeclContext*>(); }
  270   bool isOutOfSemaDC() const { return DeclCtx.is<MultipleDC*>(); }
tools/clang/include/clang/AST/DeclCXX.h
 2207     return Initializee.is<TypeSourceInfo*>() && !IsDelegating;
 2212   bool isMemberInitializer() const { return Initializee.is<FieldDecl*>(); }
 2219     return Initializee.is<IndirectFieldDecl*>();
 2235     return Initializee.is<TypeSourceInfo*>() && IsDelegating;
tools/clang/include/clang/AST/DeclTemplate.h
  319                 .ValueOrInherited.template is<ParmDecl *>() &&
  332   bool isInherited() const { return ValueOrInherited.template is<ParmDecl*>(); }
 1828     assert(!SpecializedTemplate.is<SpecializedPartialSpecialization*>() &&
 1839     assert(!SpecializedTemplate.is<SpecializedPartialSpecialization*>() &&
 2672     assert(!SpecializedTemplate.is<SpecializedPartialSpecialization *>() &&
 2683     assert(!SpecializedTemplate.is<SpecializedPartialSpecialization *>() &&
tools/clang/include/clang/AST/ExprCXX.h
  804   bool isTypeOperand() const { return Operand.is<TypeSourceInfo *>(); }
 1029   bool isTypeOperand() const { return Operand.is<TypeSourceInfo *>(); }
 4451     return State.is<Stmt *>() ? State.get<Stmt *>()
 4480     return State.is<Stmt *>() ? nullptr
 4487     return State.is<Stmt *>() ? 0 : State.get<ExtraState *>()->ManglingNumber;
 4510     if (State.is<Stmt *>())
 4518     if (State.is<Stmt *>())
tools/clang/include/clang/AST/ExprObjC.h
  775   bool isObjectReceiver() const { return Receiver.is<Stmt*>(); }
  776   bool isSuperReceiver() const { return Receiver.is<const Type*>(); }
  777   bool isClassReceiver() const { return Receiver.is<ObjCInterfaceDecl*>(); }
  791     if (Receiver.is<Stmt*>()) {
tools/clang/include/clang/AST/Redeclarable.h
  116       return Link.is<KnownLatest>() ||
  119              Link.get<NotKnownLatest>().template is<UninitializedLatest>();
  123       if (Link.is<NotKnownLatest>()) {
  125         if (NKL.is<Previous>())
  144       if (Link.is<NotKnownLatest>()) {
  160       if (Link.is<NotKnownLatest>())
tools/clang/include/clang/AST/Type.h
  756     return Value.getPointer().is<const ExtQuals*>();
tools/clang/include/clang/Basic/Module.h
  498     return Umbrella && Umbrella.is<const DirectoryEntry *>();
tools/clang/include/clang/Lex/PreprocessingRecord.h
  185     bool isBuiltinMacro() const { return NameOrDef.is<IdentifierInfo *>(); }
tools/clang/include/clang/Sema/ParsedAttr.h
  380     return Arg < NumArgs && getArg(Arg).is<Expr*>();
  388     return Arg < NumArgs && getArg(Arg).is<IdentifierLoc*>();
tools/clang/include/clang/Sema/Template.h
  344         if (I->second.is<Decl *>()) {
tools/clang/lib/ARCMigrate/FileRemapper.cpp
  174     assert(I->second.is<llvm::MemoryBuffer *>());
tools/clang/lib/AST/ASTContext.cpp
  341       return PU.is<ClassTemplateDecl *>()
  938       if (Entry.second.is<ast_type_traits::DynTypedNode *>()) {
  940       } else if (Entry.second.is<ParentVector *>()) {
  945       if (Entry.second.is<ast_type_traits::DynTypedNode *>()) {
  947       } else if (Entry.second.is<ParentVector *>()) {
10450         if (!NodeOrVector.template is<ParentVector *>()) {
tools/clang/lib/AST/Decl.cpp
 3448   if (TemplateOrSpecialization.is<FunctionTemplateDecl *>())
 3450   if (TemplateOrSpecialization.is<MemberSpecializationInfo *>())
 3452   if (TemplateOrSpecialization.is<FunctionTemplateSpecializationInfo *>())
 3454   if (TemplateOrSpecialization.is
 3625           TemplateOrSpecialization.is<MemberSpecializationInfo *>()) &&
tools/clang/lib/AST/DeclFriend.cpp
   40   if (Friend.is<NamedDecl *>()) {
tools/clang/lib/AST/ExprCXX.cpp
 1664   if (!State.is<ExtraState *>()) {
tools/clang/lib/AST/Interp/ByteCodeExprGen.cpp
  427   Descriptor *D = P.createDescriptor(Src, Ty, IsConst, Src.is<const Expr *>());
tools/clang/lib/AST/TemplateName.cpp
   81   if (Storage.is<TemplateDecl *>())
   83   if (Storage.is<DependentTemplateName *>())
   85   if (Storage.is<QualifiedTemplateName *>())
tools/clang/lib/Analysis/PathDiagnostic.cpp
  473     if (LAC.is<const LocationContext*>())
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 7937     assert(CurDir.is<const OMPExecutableDirective *>() &&
 8096     assert(CurDir.is<const OMPDeclareMapperDecl *>() &&
 8285     assert(CurDir.is<const OMPExecutableDirective *>() &&
 8436     assert(CurDir.is<const OMPExecutableDirective *>() &&
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp
   23   if (Data.is<llvm::Constant*>()) {
   40   if (Data.is<llvm::Constant*>()) {
tools/clang/lib/Index/IndexDecl.cpp
  640         Template.is<ClassTemplateDecl *>()
tools/clang/lib/Sema/SemaCodeComplete.cpp
  594     if (DeclOrIterator.is<const NamedDecl *>()) {
  645   if (DeclOrVector.is<const NamedDecl *>() || DeclOrVector.isNull())
tools/clang/lib/Sema/SemaOpenMP.cpp
 1188         ReductionData.ReductionOp.is<const Expr *>())
 1213         !ReductionData.ReductionOp.is<const Expr *>())
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
 2498   if (!Specialized.is<ClassTemplatePartialSpecializationDecl *>()) {
tools/clang/lib/Sema/SemaTemplateVariadic.cpp
  689       if (Instantiation->is<DeclArgumentPack *>()) {
  807         if (Instantiation->is<Decl*>())
tools/clang/lib/Serialization/ASTReaderDecl.cpp
 4403                    .is<ClassTemplatePartialSpecializationDecl *>())
tools/clang/lib/Serialization/ASTWriterDecl.cpp
 1411   bool hasFriendDecl = D->Friend.is<NamedDecl*>();
tools/clang/lib/Serialization/ASTWriterStmt.cpp
  858   bool isArrayFiller = E->ArrayFillerOrUnionFieldInit.is<Expr*>();
tools/clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp
  211         if (i->CastedExprParent.is<const VarDecl *>()) {
tools/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp
  186   if (PTMDT.isNull() || PTMDT.is<const DeclaratorDecl *>()) {
  187     if (PTMDT.is<const DeclaratorDecl *>())
tools/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
  216   assert(Storage.is<ExplodedNode *>());
  218   assert(Storage.is<ExplodedNode *>());
  227     assert(Storage.is<ExplodedNode *>());
  244     assert(Storage.is<ExplodedNodeVector *>());
tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp
  881     if (V.is<const VarRegion*>())
tools/clang/lib/StaticAnalyzer/Core/SVals.cpp
  184   if (PTMD.is<const DeclaratorDecl *>())
  206   if (PTMD.is<const DeclaratorDecl *>())
  213   if (PTMD.is<const DeclaratorDecl *>())
tools/clang/tools/libclang/CIndexCXX.cpp
  100       if (Result.is<ClassTemplateDecl *>())
tools/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
  137   if (reloc.is<ELFRel *>())
  145   if (reloc.is<ELFRel *>())
  152   if (rel.reloc.is<ELFRel *>())
  159   if (rel.reloc.is<ELFRel *>())
  166   if (rel.reloc.is<ELFRel *>())
  173   if (rel.reloc.is<ELFRel *>())
  180   if (rel.reloc.is<ELFRel *>())
  187   if (rel.reloc.is<ELFRel *>())
  194   if (rel.reloc.is<ELFRel *>())
  201   if (rel.reloc.is<ELFRel *>())
tools/llvm-pdbutil/InputFile.cpp
  358 bool InputFile::isPdb() const { return PdbOrObj.is<PDBFile *>(); }
  361   return PdbOrObj.is<object::COFFObjectFile *>();
  364 bool InputFile::isUnknown() const { return PdbOrObj.is<MemoryBuffer *>(); }
unittests/ADT/PointerUnionTest.cpp
   92   EXPECT_FALSE(a.is<int *>());
   93   EXPECT_TRUE(a.is<float *>());
   94   EXPECT_TRUE(b.is<int *>());
   95   EXPECT_FALSE(b.is<float *>());
   96   EXPECT_TRUE(n.is<int *>());
   97   EXPECT_FALSE(n.is<float *>());
   98   EXPECT_TRUE(i3.is<int *>());
   99   EXPECT_TRUE(f3.is<float *>());
  100   EXPECT_TRUE(l3.is<long long *>());
  101   EXPECT_TRUE(i4.is<int *>());
  102   EXPECT_TRUE(f4.is<float *>());
  103   EXPECT_TRUE(l4.is<long long *>());
  104   EXPECT_TRUE(d4.is<double *>());
  105   EXPECT_TRUE(i4null.is<int *>());
  106   EXPECT_TRUE(f4null.is<float *>());
  107   EXPECT_TRUE(l4null.is<long long *>());
  108   EXPECT_TRUE(d4null.is<double *>());
  128   EXPECT_TRUE(a.is<Aligned<0>*>());
  129   EXPECT_FALSE(a.is<Aligned<1>*>());
  130   EXPECT_FALSE(a.is<Aligned<2>*>());
  131   EXPECT_FALSE(a.is<Aligned<3>*>());
  132   EXPECT_FALSE(a.is<Aligned<4>*>());
  133   EXPECT_FALSE(a.is<Aligned<5>*>());
  134   EXPECT_FALSE(a.is<Aligned<6>*>());
  135   EXPECT_FALSE(a.is<Aligned<7>*>());
  140   EXPECT_FALSE(a.is<Aligned<0>*>());
  141   EXPECT_FALSE(a.is<Aligned<1>*>());
  142   EXPECT_FALSE(a.is<Aligned<2>*>());
  143   EXPECT_FALSE(a.is<Aligned<3>*>());
  144   EXPECT_FALSE(a.is<Aligned<4>*>());
  145   EXPECT_FALSE(a.is<Aligned<5>*>());
  146   EXPECT_FALSE(a.is<Aligned<6>*>());
  147   EXPECT_TRUE(a.is<Aligned<7>*>());
unittests/IR/MetadataTest.cpp
 1143   ASSERT_TRUE(Count.is<ConstantInt*>());
 1158   ASSERT_TRUE(Count.is<ConstantInt*>());
 1175   ASSERT_TRUE(Count.is<DIVariable*>());
utils/TableGen/AsmMatcherEmitter.cpp
  507     if (DefRec.is<const CodeGenInstruction*>())
  565     assert(!DefRec.is<const CodeGenInstAlias *>());
 1604       if (II->DefRec.is<const CodeGenInstruction*>())
 1610     if (II->DefRec.is<const CodeGenInstruction*>()) {