Searched refs:CharWidth (Results 1 - 6 of 6) sorted by relevance

/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.cpp22 const size_t CharWidth = S->getCharByteWidth(); local
23 const size_t BitWidth = CharWidth * Ctx.getCharBit();
26 switch (CharWidth) {
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp183 const uint64_t CharWidth = CGM.getContext().getCharWidth(); local
187 unsigned OffsetWithinChar = OffsetInBits % CharWidth;
196 std::min((uint64_t)Bits.getBitWidth(), CharWidth - OffsetWithinChar);
201 if (BitsThisChar.getBitWidth() < CharWidth)
202 BitsThisChar = BitsThisChar.zext(CharWidth);
206 int Shift = Bits.getBitWidth() - CharWidth + OffsetWithinChar;
214 if (BitsThisChar.getBitWidth() > CharWidth)
215 BitsThisChar = BitsThisChar.trunc(CharWidth);
217 if (WantedBits == CharWidth) {
236 llvm::APInt UpdateMask(CharWidth,
[all...]
H A DCGExpr.cpp4120 unsigned CharWidth = getContext().getCharWidth(); local
4123 Layout.getFieldOffset(field->getFieldIndex()) / CharWidth;
/freebsd-11-stable/contrib/llvm-project/clang/lib/Lex/
H A DLiteralSupport.cpp93 FullSourceLoc Loc, unsigned CharWidth,
166 if (CharWidth != 32 && (ResultChar >> CharWidth) != 0) {
168 ResultChar &= ~0U >> (32-CharWidth);
194 if (CharWidth != 32 && (ResultChar >> CharWidth) != 0) {
198 ResultChar &= ~0U >> (32-CharWidth);
1345 unsigned CharWidth = getCharWidth(Kind, PP.getTargetInfo());
1349 CharWidth, &PP.getDiagnostics(), PP.getLangOpts());
90 ProcessCharEscape(const char *ThisTokBegin, const char *&ThisTokBuf, const char *ThisTokEnd, bool &HadError, FullSourceLoc Loc, unsigned CharWidth, DiagnosticsEngine *Diags, const LangOptions &Features) argument
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DRecordLayoutBuilder.cpp106 uint64_t CharWidth; member in class:__anon265::EmptySubobjectMap
144 assert(FieldOffset % CharWidth == 0 &&
170 : Context(Context), CharWidth(Context.getCharWidth()), Class(Class) {
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp17523 unsigned CharWidth = Context.getTargetInfo().getCharWidth(); local
17590 if (Packed && NumNegativeBits <= CharWidth && NumPositiveBits < CharWidth) {
17592 BestWidth = CharWidth;
17618 if (Packed && NumPositiveBits <= CharWidth) {
17621 BestWidth = CharWidth;

Completed in 249 milliseconds