Searched refs:CharWidth (Results 1 – 9 of 9) sorted by relevance
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | LiteralSupport.cpp | 133 FullSourceLoc Loc, unsigned CharWidth, in ProcessCharEscape() argument 231 if (CharWidth != 32 && (ResultChar >> CharWidth) != 0) { in ProcessCharEscape() 233 ResultChar &= ~0U >> (32-CharWidth); in ProcessCharEscape() 263 if (CharWidth != 32 && (ResultChar >> CharWidth) != 0) { in ProcessCharEscape() 267 ResultChar &= ~0U >> (32-CharWidth); in ProcessCharEscape() 315 (Overflow || (CharWidth != 32 && (ResultChar >> CharWidth) != 0))) { in ProcessCharEscape() 321 ResultChar &= ~0U >> (32 - CharWidth); in ProcessCharEscape() 1837 unsigned CharWidth = getCharWidth(Kind, PP.getTargetInfo()); in CharLiteralParser() local 1840 FullSourceLoc(Loc, PP.getSourceManager()), CharWidth, in CharLiteralParser()
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Program.cpp | 37 const size_t CharWidth = S->getCharByteWidth(); in createGlobalString() local 38 const size_t BitWidth = CharWidth * Ctx.getCharBit(); in createGlobalString() 41 switch (CharWidth) { in createGlobalString()
|
H A D | Compiler.cpp | 1900 size_t CharWidth = E->getCharByteWidth(); in VisitStringLiteral() local 1905 if (CharWidth == 1) { in VisitStringLiteral() 1908 } else if (CharWidth == 2) { in VisitStringLiteral() 1911 } else if (CharWidth == 4) { in VisitStringLiteral() 1921 if (CharWidth == 1) { in VisitStringLiteral() 1924 } else if (CharWidth == 2) { in VisitStringLiteral() 1927 } else if (CharWidth == 4) { in VisitStringLiteral()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 186 const uint64_t CharWidth = CGM.getContext().getCharWidth(); in addBits() local 190 unsigned OffsetWithinChar = OffsetInBits % CharWidth; in addBits() 199 std::min((uint64_t)Bits.getBitWidth(), CharWidth - OffsetWithinChar); in addBits() 204 if (BitsThisChar.getBitWidth() < CharWidth) in addBits() 205 BitsThisChar = BitsThisChar.zext(CharWidth); in addBits() 209 int Shift = Bits.getBitWidth() - CharWidth + OffsetWithinChar; in addBits() 217 if (BitsThisChar.getBitWidth() > CharWidth) in addBits() 218 BitsThisChar = BitsThisChar.trunc(CharWidth); in addBits() 220 if (WantedBits == CharWidth) { in addBits() 239 llvm::APInt UpdateMask(CharWidth, 0); in addBits() [all …]
|
H A D | CGCall.cpp | 3592 int BitWidth, int CharWidth) { in setBitRange() argument 3593 assert(CharWidth <= 64); in setBitRange() 3594 assert(static_cast<unsigned>(BitWidth) <= Bits.size() * CharWidth); in setBitRange() 3597 if (BitOffset >= CharWidth) { in setBitRange() 3598 Pos += BitOffset / CharWidth; in setBitRange() 3599 BitOffset = BitOffset % CharWidth; in setBitRange() 3602 const uint64_t Used = (uint64_t(1) << CharWidth) - 1; in setBitRange() 3603 if (BitOffset + BitWidth >= CharWidth) { in setBitRange() 3605 BitWidth -= CharWidth - BitOffset; in setBitRange() 3609 while (BitWidth >= CharWidth) { in setBitRange() [all …]
|
H A D | CGExpr.cpp | 4886 unsigned CharWidth = getContext().getCharWidth(); in EmitLValueForField() local 4889 Layout.getFieldOffset(field->getFieldIndex()) / CharWidth; in EmitLValueForField()
|
H A D | CGStmtOpenMP.cpp | 4770 unsigned CharWidth = CGF.getContext().getCharWidth(); in EmitOMPTaskBasedDirective() local 4790 Layout.getFieldOffset(It->second->getFieldIndex()) / CharWidth; in EmitOMPTaskBasedDirective()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | RecordLayoutBuilder.cpp | 107 uint64_t CharWidth; member in __anonbcc347f50111::EmptySubobjectMap 145 assert(FieldOffset % CharWidth == 0 && in getFieldOffset() 171 : Context(Context), CharWidth(Context.getCharWidth()), Class(Class) { in EmptySubobjectMap()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaDecl.cpp | 19860 unsigned CharWidth = Context.getTargetInfo().getCharWidth(); in ActOnEnumBody() local 19930 if (Packed && NumNegativeBits <= CharWidth && NumPositiveBits < CharWidth) { in ActOnEnumBody() 19932 BestWidth = CharWidth; in ActOnEnumBody() 19958 if (Packed && NumPositiveBits <= CharWidth) { in ActOnEnumBody() 19961 BestWidth = CharWidth; in ActOnEnumBody()
|