Home
last modified time | relevance | path

Searched refs:AttrVec (Results 1 – 25 of 41) sorted by relevance

12

/external/llvm-project/clang/include/clang/AST/
DAttrIterator.h29 using AttrVec = SmallVector<Attr *, 4>; variable
33 template <typename SpecificAttr, typename Container = AttrVec>
DDeclBase.h491 void setAttrs(const AttrVec& Attrs) { in setAttrs()
495 AttrVec &getAttrs() { in getAttrs()
496 return const_cast<AttrVec&>(const_cast<const Decl*>(this)->getAttrs()); in getAttrs()
499 const AttrVec &getAttrs() const;
503 using attr_iterator = AttrVec::const_iterator;
521 AttrVec &Vec = getAttrs(); in dropAttr()
1189 void setAttrsImpl(const AttrVec& Attrs, ASTContext &Ctx);
DASTContext.h417 llvm::DenseMap<const Decl*, AttrVec*> DeclAttrs;
836 AttrVec& getDeclAttrs(const Decl *D);
/external/clang/include/clang/AST/
DAttrIterator.h42 typedef SmallVector<Attr*, 2> AttrVec; typedef
47 template <typename SpecificAttr, typename Container = AttrVec>
DDeclBase.h441 void setAttrs(const AttrVec& Attrs) { in setAttrs()
444 AttrVec &getAttrs() { in getAttrs()
445 return const_cast<AttrVec&>(const_cast<const Decl*>(this)->getAttrs()); in getAttrs()
447 const AttrVec &getAttrs() const;
454 setAttrs(AttrVec(1, A)); in addAttr()
457 typedef AttrVec::const_iterator attr_iterator;
475 AttrVec &Vec = getAttrs(); in dropAttr()
1030 void setAttrsImpl(const AttrVec& Attrs, ASTContext &Ctx);
DASTContext.h303 llvm::DenseMap<const Decl*, AttrVec*> DeclAttrs;
773 AttrVec& getDeclAttrs(const Decl *D);
/external/llvm-project/clang/lib/AST/
DDeclBase.cpp433 const AttrVec &V = getAttrs(); in getMaxAlignment()
865 void Decl::setAttrsImpl(const AttrVec &attrs, ASTContext &Ctx) { in setAttrsImpl()
868 AttrVec &AttrBlank = Ctx.getDeclAttrs(this); in setAttrsImpl()
884 setAttrs(AttrVec(1, A)); in addAttr()
888 AttrVec &Attrs = getAttrs(); in addAttr()
905 const AttrVec &Decl::getAttrs() const { in getAttrs()
DDeclPrinter.cpp234 AttrVec &Attrs = D->getAttrs(); in prettyPrintAttributes()
256 AttrVec &Attrs = D->getAttrs(); in prettyPrintPragmas()
DASTContext.cpp1001 for (llvm::DenseMap<const Decl*, AttrVec*>::iterator A = DeclAttrs.begin(), in ~ASTContext()
1004 A->second->~AttrVec(); in ~ASTContext()
1472 AttrVec& ASTContext::getDeclAttrs(const Decl *D) { in getDeclAttrs()
1473 AttrVec *&Result = DeclAttrs[D]; in getDeclAttrs()
1475 void *Mem = Allocate(sizeof(AttrVec)); in getDeclAttrs()
1476 Result = new (Mem) AttrVec; in getDeclAttrs()
1484 llvm::DenseMap<const Decl*, AttrVec*>::iterator Pos = DeclAttrs.find(D); in eraseDeclAttrs()
1486 Pos->second->~AttrVec(); in eraseDeclAttrs()
/external/llvm-project/polly/lib/External/isl/interface/
Dextract_interface.cc122 AttrVec attrs = decl->getAttrs(); in has_annotation()
123 for (AttrVec::const_iterator i = attrs.begin() ; i != attrs.end(); ++i) { in has_annotation()
Dgenerator.cc467 AttrVec attrs = decl->getAttrs(); in find_superclasses()
468 for (AttrVec::const_iterator i = attrs.begin(); i != attrs.end(); ++i) { in find_superclasses()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DAttributes.cpp995 SmallVector<Attribute, 4> AttrVec; in get() local
997 AttrVec.push_back(I->second); in get()
1001 AttrPairVec.emplace_back(Index, AttributeSet::get(C, AttrVec)); in get()
1032 SmallVector<AttributeSet, 4> AttrVec(attrIdxToArrayIdx(MaxIndex) + 1); in get() local
1034 AttrVec[attrIdxToArrayIdx(Pair.first)] = Pair.second; in get()
1036 return getImpl(C, AttrVec); in get()
/external/clang/lib/AST/
DDeclBase.cpp336 const AttrVec &V = getAttrs(); in getMaxAlignment()
704 void Decl::setAttrsImpl(const AttrVec &attrs, ASTContext &Ctx) { in setAttrsImpl()
707 AttrVec &AttrBlank = Ctx.getDeclAttrs(this); in setAttrsImpl()
721 const AttrVec &Decl::getAttrs() const { in getAttrs()
DDeclPrinter.cpp205 AttrVec &Attrs = D->getAttrs(); in prettyPrintAttributes()
225 AttrVec &Attrs = D->getAttrs(); in prettyPrintPragmas()
DASTContext.cpp782 for (llvm::DenseMap<const Decl*, AttrVec*>::iterator A = DeclAttrs.begin(), in ~ASTContext()
785 A->second->~AttrVec(); in ~ASTContext()
1133 AttrVec& ASTContext::getDeclAttrs(const Decl *D) { in getDeclAttrs()
1134 AttrVec *&Result = DeclAttrs[D]; in getDeclAttrs()
1136 void *Mem = Allocate(sizeof(AttrVec)); in getDeclAttrs()
1137 Result = new (Mem) AttrVec; in getDeclAttrs()
1145 llvm::DenseMap<const Decl*, AttrVec*>::iterator Pos = DeclAttrs.find(D); in eraseDeclAttrs()
1147 Pos->second->~AttrVec(); in eraseDeclAttrs()
/external/llvm-project/llvm/lib/IR/
DAttributes.cpp1120 SmallVector<Attribute, 4> AttrVec; in get() local
1122 AttrVec.push_back(I->second); in get()
1126 AttrPairVec.emplace_back(Index, AttributeSet::get(C, AttrVec)); in get()
1157 SmallVector<AttributeSet, 4> AttrVec(attrIdxToArrayIdx(MaxIndex) + 1); in get() local
1159 AttrVec[attrIdxToArrayIdx(Pair.first)] = Pair.second; in get()
1161 return getImpl(C, AttrVec); in get()
/external/llvm-project/clang/include/clang/Serialization/
DASTRecordReader.h327 void readAttributes(AttrVec &Attrs);
/external/llvm/lib/IR/
DAttributes.cpp735 SmallVector<Attribute, 4> AttrVec; in get() local
737 AttrVec.push_back(I->second); in get()
742 AttributeSetNode::get(C, AttrVec))); in get()
/external/llvm-project/clang/lib/ARCMigrate/
DObjCMT.cpp1103 static bool MatchTwoAttributeLists(const AttrVec &Attrs1, const AttrVec &Attrs2, in MatchTwoAttributeLists()
1139 const AttrVec &Attrs1 = Decl1->getAttrs(); in AttributesMatch()
1140 const AttrVec &Attrs2 = Decl2->getAttrs(); in AttributesMatch()
/external/clang/lib/ARCMigrate/
DObjCMT.cpp1110 static bool MatchTwoAttributeLists(const AttrVec &Attrs1, const AttrVec &Attrs2, in MatchTwoAttributeLists()
1146 const AttrVec &Attrs1 = Decl1->getAttrs(); in AttributesMatch()
1147 const AttrVec &Attrs2 = Decl2->getAttrs(); in AttributesMatch()
/external/llvm-project/clang/lib/Index/
DCommentToXML.cpp994 const AttrVec &Attrs = DI->CommentDecl->getAttrs(); in visitFullComment()
/external/clang/lib/Index/
DCommentToXML.cpp997 const AttrVec &Attrs = DI->CommentDecl->getAttrs(); in visitFullComment()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp530 AttrVec Attrs; in VisitDecl()
2461 void ASTReader::ReadAttributes(ModuleFile &F, AttrVec &Attrs, in ReadAttributes()
3852 AttrVec Attrs; in UpdateDecl()
3953 AttrVec Attrs; in UpdateDecl()
/external/llvm-project/clang/lib/Serialization/
DASTReaderDecl.cpp591 AttrVec Attrs; in VisitDecl()
2799 void ASTRecordReader::readAttributes(AttrVec &Attrs) { in readAttributes()
4595 AttrVec Attrs; in UpdateDecl()
4701 AttrVec Attrs; in UpdateDecl()
/external/clang/include/clang/Serialization/
DASTReader.h2043 void ReadAttributes(ModuleFile &F, AttrVec &Attrs,

12