Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTContext.h1782 bool computeBestEnumTypes(bool IsPacked, unsigned NumNegativeBits,
1793 bool computeEnumBits(RangeT EnumConstants, unsigned &NumNegativeBits, in computeEnumBits() argument
1795 NumNegativeBits = 0; in computeEnumBits()
1810 NumNegativeBits = in computeEnumBits()
1811 std::max(NumNegativeBits, (unsigned)InitVal.getSignificantBits()); in computeEnumBits()
1821 if (!NumPositiveBits && !NumNegativeBits) in computeEnumBits()
H A DDecl.h4012 void setNumNegativeBits(unsigned Num) { EnumDeclBits.NumNegativeBits = Num; } in setNumNegativeBits()
4084 unsigned NumNegativeBits);
4155 unsigned getNumNegativeBits() const { return EnumDeclBits.NumNegativeBits; } in getNumNegativeBits()
H A DDeclBase.h1603 uint64_t NumNegativeBits : 8;
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDecl.cpp4984 unsigned NumNegativeBits) { in completeDefinition() argument
4990 setNumNegativeBits(NumNegativeBits); in completeDefinition()
5078 unsigned NumNegativeBits = getNumNegativeBits(); in getValueRange() local
5081 if (NumNegativeBits) { in getValueRange()
5082 unsigned NumBits = std::max(NumNegativeBits, NumPositiveBits + 1); in getValueRange()
H A DASTContext.cpp5371 bool ASTContext::computeBestEnumTypes(bool IsPacked, unsigned NumNegativeBits, in computeBestEnumTypes() argument
5380 if (NumNegativeBits) { in computeBestEnumTypes()
5384 if (IsPacked && NumNegativeBits <= CharWidth && in computeBestEnumTypes()
5388 } else if (IsPacked && NumNegativeBits <= ShortWidth && in computeBestEnumTypes()
5392 } else if (NumNegativeBits <= IntWidth && NumPositiveBits < IntWidth) { in computeBestEnumTypes()
5398 if (NumNegativeBits <= BestWidth && NumPositiveBits < BestWidth) { in computeBestEnumTypes()
5403 if (NumNegativeBits > BestWidth || NumPositiveBits >= BestWidth) in computeBestEnumTypes()
/freebsd/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp8389 unsigned NumNegativeBits = 0; in CompleteTagDeclarationDefinition() local
8391 ast.computeEnumBits(enum_decl->enumerators(), NumNegativeBits, in CompleteTagDeclarationDefinition()
8396 ast.computeBestEnumTypes(/*IsPacked=*/false, NumNegativeBits, in CompleteTagDeclarationDefinition()
8401 NumNegativeBits); in CompleteTagDeclarationDefinition()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp20430 unsigned NumNegativeBits = 0; in ActOnEnumBody() local
20433 Context.computeEnumBits(Elements, NumNegativeBits, NumPositiveBits); in ActOnEnumBody()
20468 Packed, NumNegativeBits, NumPositiveBits, BestType, BestPromotionType); in ActOnEnumBody()
20540 NumPositiveBits, NumNegativeBits); in ActOnEnumBody()