Searched refs:CharWidth (Results 1 – 11 of 11) sorted by relevance
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Program.cpp | 34 const size_t CharWidth = S->getCharByteWidth(); in createGlobalString() local 35 const size_t BitWidth = CharWidth * Ctx.getCharBit(); in createGlobalString() 39 switch (CharWidth) { in createGlobalString() 76 if (CharWidth == 1) { in createGlobalString()
|
| H A D | Compiler.cpp | 2478 unsigned CharWidth = E->getCharByteWidth(); in VisitStringLiteral() local 2483 if (CharWidth == 1) { in VisitStringLiteral() 2486 } else if (CharWidth == 2) { in VisitStringLiteral() 2489 } else if (CharWidth == 4) { in VisitStringLiteral() 2499 if (CharWidth == 1) { in VisitStringLiteral() 2502 } else if (CharWidth == 2) { in VisitStringLiteral() 2505 } else if (CharWidth == 4) { in VisitStringLiteral()
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | LiteralSupport.cpp | 134 FullSourceLoc Loc, unsigned CharWidth, in ProcessCharEscape() argument 233 if (CharWidth != 32 && (ResultChar >> CharWidth) != 0) { in ProcessCharEscape() 235 ResultChar &= ~0U >> (32-CharWidth); in ProcessCharEscape() 265 if (CharWidth != 32 && (ResultChar >> CharWidth) != 0) { in ProcessCharEscape() 269 ResultChar &= ~0U >> (32-CharWidth); in ProcessCharEscape() 318 (Overflow || (CharWidth != 32 && (ResultChar >> CharWidth) != 0))) { in ProcessCharEscape() 324 ResultChar &= ~0U >> (32 - CharWidth); in ProcessCharEscape() 1877 unsigned CharWidth = getCharWidth(Kind, PP.getTargetInfo()); in CharLiteralParser() local 1880 FullSourceLoc(Loc, PP.getSourceManager()), CharWidth, in CharLiteralParser()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprConstant.cpp | 193 const uint64_t CharWidth = CGM.getContext().getCharWidth(); in addBits() local 197 unsigned OffsetWithinChar = OffsetInBits % CharWidth; in addBits() 206 std::min((uint64_t)Bits.getBitWidth(), CharWidth - OffsetWithinChar); in addBits() 211 if (BitsThisChar.getBitWidth() < CharWidth) in addBits() 212 BitsThisChar = BitsThisChar.zext(CharWidth); in addBits() 216 int Shift = Bits.getBitWidth() - CharWidth + OffsetWithinChar; in addBits() 224 if (BitsThisChar.getBitWidth() > CharWidth) in addBits() 225 BitsThisChar = BitsThisChar.trunc(CharWidth); in addBits() 227 if (WantedBits == CharWidth) { in addBits() 246 llvm::APInt UpdateMask(CharWidth, 0); in addBits() [all …]
|
| H A D | CGCall.cpp | 3754 int BitWidth, int CharWidth) { in setBitRange() argument 3755 assert(CharWidth <= 64); in setBitRange() 3756 assert(static_cast<unsigned>(BitWidth) <= Bits.size() * CharWidth); in setBitRange() 3759 if (BitOffset >= CharWidth) { in setBitRange() 3760 Pos += BitOffset / CharWidth; in setBitRange() 3761 BitOffset = BitOffset % CharWidth; in setBitRange() 3764 const uint64_t Used = (uint64_t(1) << CharWidth) - 1; in setBitRange() 3765 if (BitOffset + BitWidth >= CharWidth) { in setBitRange() 3767 BitWidth -= CharWidth - BitOffset; in setBitRange() 3771 while (BitWidth >= CharWidth) { in setBitRange() [all …]
|
| H A D | CGBuiltin.cpp | 1401 int64_t CharWidth = static_cast<int64_t>(CGM.getContext().getCharWidth()); in emitCountedByMemberSize() local 1410 llvm::ConstantInt::get(ResType, *Offset / CharWidth, IsSigned); in emitCountedByMemberSize() 1465 llvm::ConstantInt::get(ResType, Size.getKnownMinValue() / CharWidth); in emitCountedByMemberSize()
|
| H A D | CGExpr.cpp | 5222 unsigned CharWidth = getContext().getCharWidth(); in EmitLValueForField() local 5225 Layout.getFieldOffset(field->getFieldIndex()) / CharWidth; in EmitLValueForField()
|
| H A D | CGStmtOpenMP.cpp | 4970 unsigned CharWidth = CGF.getContext().getCharWidth(); in EmitOMPTaskBasedDirective() local 4990 Layout.getFieldOffset(It->second->getFieldIndex()) / CharWidth; in EmitOMPTaskBasedDirective()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | RecordLayoutBuilder.cpp | 106 uint64_t CharWidth; member in __anonbcc347f50111::EmptySubobjectMap 144 assert(FieldOffset % CharWidth == 0 && in getFieldOffset() 170 : Context(Context), CharWidth(Context.getCharWidth()), Class(Class) { in EmptySubobjectMap()
|
| H A D | ASTContext.cpp | 5376 unsigned CharWidth = Target->getCharWidth(); in computeBestEnumTypes() local 5384 if (IsPacked && NumNegativeBits <= CharWidth && in computeBestEnumTypes() 5385 NumPositiveBits < CharWidth) { in computeBestEnumTypes() 5387 BestWidth = CharWidth; in computeBestEnumTypes() 5413 if (IsPacked && NumPositiveBits <= CharWidth) { in computeBestEnumTypes() 5416 BestWidth = CharWidth; in computeBestEnumTypes()
|
| H A D | ExprConstant.cpp | 2169 int CharWidth; member 2184 AsString.CharWidth = 1; in GetLValueBaseAsString() 2197 AsString.CharWidth = Lit->getCharByteWidth(); in GetLValueBaseAsString() 2240 int ShorterCharWidth = (LHSIsLonger ? RHSString : LHSString).CharWidth; in ArePotentiallyOverlappingStringLiterals()
|