Home
last modified time | relevance | path

Searched refs:CharWidth (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DProgram.cpp34 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 DCompiler.cpp2478 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 DLiteralSupport.cpp134 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 DCGExprConstant.cpp193 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 DCGCall.cpp3754 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 DCGBuiltin.cpp1401 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 DCGExpr.cpp5222 unsigned CharWidth = getContext().getCharWidth(); in EmitLValueForField() local
5225 Layout.getFieldOffset(field->getFieldIndex()) / CharWidth; in EmitLValueForField()
H A DCGStmtOpenMP.cpp4970 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 DRecordLayoutBuilder.cpp106 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 DASTContext.cpp5376 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 DExprConstant.cpp2169 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()