Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLiteralSupport.cpp133 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 DProgram.cpp37 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 DCompiler.cpp1900 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 DCGExprConstant.cpp186 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 DCGCall.cpp3592 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 DCGExpr.cpp4886 unsigned CharWidth = getContext().getCharWidth(); in EmitLValueForField() local
4889 Layout.getFieldOffset(field->getFieldIndex()) / CharWidth; in EmitLValueForField()
H A DCGStmtOpenMP.cpp4770 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 DRecordLayoutBuilder.cpp107 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 DSemaDecl.cpp19860 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()