Home
last modified time | relevance | path

Searched refs:NumAttrs (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAttributeImpl.h298 unsigned NumAttrs; ///< Number of attributes in this node. variable
321 unsigned getNumAttributes() const { return NumAttrs; } in getNumAttributes()
327 bool hasAttributes() const { return NumAttrs != 0; } in hasAttributes()
351 iterator end() const { return begin() + NumAttrs; } in end()
H A DAttributes.cpp1242 : NumAttrs(Attrs.size()) { in AttributeSetNode()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Basic/
H A DIntrinsicEmitter.cpp671 unsigned NumAttrs = in EmitAttributes() local
674 NumAttrs += hasFnAttributes(Int); in EmitAttributes()
675 if (NumAttrs == 0) { in EmitAttributes()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFDie.cpp708 auto NumAttrs = AbbrDecl.getNumAttributes(); in updateForIndex() local
709 if (Index < NumAttrs) { in updateForIndex()
726 assert(Index == NumAttrs && "Indexes should be [0, NumAttrs) only"); in updateForIndex()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h177 unsigned NumAttrs : 32 - NumStmtBits;
2215 AttributedStmtBits.NumAttrs = Attrs.size();
2220 explicit AttributedStmt(EmptyShell Empty, unsigned NumAttrs)
2222 AttributedStmtBits.NumAttrs = NumAttrs;
2224 std::fill_n(getAttrArrayPtr(), NumAttrs, nullptr);
2235 static AttributedStmt *CreateEmpty(const ASTContext &C, unsigned NumAttrs);
2239 return {getAttrArrayPtr(), AttributedStmtBits.NumAttrs};
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp442 unsigned NumAttrs) { in CreateEmpty() argument
443 assert(NumAttrs > 0 && "NumAttrs should be greater than zero"); in CreateEmpty()
444 void *Mem = C.Allocate(totalSizeToAlloc<const Attr *>(NumAttrs), in CreateEmpty()
446 return new (Mem) AttributedStmt(EmptyShell(), NumAttrs); in CreateEmpty()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderStmt.cpp204 uint64_t NumAttrs = Record.readInt(); in VisitAttributedStmt() local
207 (void)NumAttrs; in VisitAttributedStmt()
208 assert(NumAttrs == S->AttributedStmtBits.NumAttrs); in VisitAttributedStmt()
209 assert(NumAttrs == Attrs.size()); in VisitAttributedStmt()