Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAttributeImpl.h301 unsigned NumAttrs; ///< Number of attributes in this node. variable
324 unsigned getNumAttributes() const { return NumAttrs; } in getNumAttributes()
330 bool hasAttributes() const { return NumAttrs != 0; } in hasAttributes()
353 iterator end() const { return begin() + NumAttrs; } in end()
H A DAttributes.cpp1029 : NumAttrs(Attrs.size()) { in AttributeSetNode()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFDie.cpp689 auto NumAttrs = AbbrDecl.getNumAttributes(); in updateForIndex() local
690 if (Index < NumAttrs) { in updateForIndex()
707 assert(Index == NumAttrs && "Indexes should be [0, NumAttrs) only"); in updateForIndex()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h175 unsigned NumAttrs : 32 - NumStmtBits;
2094 AttributedStmtBits.NumAttrs = Attrs.size();
2099 explicit AttributedStmt(EmptyShell Empty, unsigned NumAttrs)
2101 AttributedStmtBits.NumAttrs = NumAttrs;
2103 std::fill_n(getAttrArrayPtr(), NumAttrs, nullptr);
2116 static AttributedStmt *CreateEmpty(const ASTContext &C, unsigned NumAttrs);
2120 return llvm::ArrayRef(getAttrArrayPtr(), AttributedStmtBits.NumAttrs);
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp435 unsigned NumAttrs) { in CreateEmpty() argument
436 assert(NumAttrs > 0 && "NumAttrs should be greater than zero"); in CreateEmpty()
437 void *Mem = C.Allocate(totalSizeToAlloc<const Attr *>(NumAttrs), in CreateEmpty()
439 return new (Mem) AttributedStmt(EmptyShell(), NumAttrs); in CreateEmpty()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderStmt.cpp208 uint64_t NumAttrs = Record.readInt(); in VisitAttributedStmt() local
211 (void)NumAttrs; in VisitAttributedStmt()
212 assert(NumAttrs == S->AttributedStmtBits.NumAttrs); in VisitAttributedStmt()
213 assert(NumAttrs == Attrs.size()); in VisitAttributedStmt()