| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CheckPlacementNew.cpp | 95 C.getASTContext().getCharWidth(), in getExtentSizeOfNewTarget() 173 return StorageTAlign / C.getASTContext().getCharWidth(); in getStorageAlign() 222 TheOffsetRegion.getOffset() / C.getASTContext().getCharWidth(); in checkElementRegionAlign() 252 Offset.getOffset() / C.getASTContext().getCharWidth(); in checkFieldRegionAlign() 280 C.getASTContext().getCharWidth(); in checkPlaceIsAlignedProperly()
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | TargetInfo.cpp | 208 if (getCharWidth() < getIntWidth()) in getTypeConstantSuffix() 246 case UnsignedChar: return getCharWidth(); in getTypeWidth() 260 if (getCharWidth() == BitWidth) in getIntTypeByWidth() 275 if (getCharWidth() >= BitWidth) in getLeastIntTypeByWidth() 475 NewAlign = Opts.NewAlignOverride * getCharWidth(); in adjust()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/ |
| H A D | DefaultOperatorNewAlignmentCheck.cpp | 57 unsigned CharWidth = Context.getTargetInfo().getCharWidth(); in check()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | InitPreprocessor.cpp | 206 Twine(BitWidth / TI.getCharWidth())); in DefineTypeSizeof() 481 Twine(TI.getNewAlign() / TI.getCharWidth()) + in InitializeStandardPredefinedMacros() 952 assert(TI.getCharWidth() == 8 && "Only support 8-bit char so far"); in InitializePredefinedMacros() 953 Builder.defineMacro("__CHAR_BIT__", Twine(TI.getCharWidth())); in InitializePredefinedMacros() 1046 Twine(TI.getSuitableAlign() / TI.getCharWidth()) ); in InitializePredefinedMacros() 1060 if (TI.getShortWidth() > TI.getCharWidth()) in InitializePredefinedMacros() 1076 if (TI.getShortWidth() > TI.getCharWidth()) { in InitializePredefinedMacros()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGObjCRuntime.cpp | 34 CGM.getContext().getCharWidth(); in ComputeIvarBaseOffset() 42 CGM.getContext().getCharWidth(); in ComputeIvarBaseOffset() 91 uint64_t BitOffset = FieldBitOffset % CGF.CGM.getContext().getCharWidth(); in EmitValueForIvarAtOffset()
|
| H A D | CGRecordLayoutBuilder.cpp | 130 unsigned AlignedBits = llvm::alignTo(NumBits, Context.getCharWidth()); in getIntNType() 136 Context.getCharWidth()); in getCharType()
|
| H A D | CodeGenTBAA.cpp | 301 Layout.getFieldOffset(idx) / Context.getCharWidth(); in CollectFields()
|
| H A D | CGCoroutine.cpp | 480 unsigned NewAlign = TI.getNewAlign() / TI.getCharWidth(); in EmitCoroutineBody()
|
| H A D | CGNonTrivialStruct.cpp | 119 uint64_t RoundedFEnd = llvm::alignTo(FEndInBits, Ctx.getCharWidth()); in visitTrivial() 536 Size.getQuantity() * this->CGF->getContext().getCharWidth()); in flushTrivialFields()
|
| H A D | CGObjCGNU.cpp | 285 CGM.getContext().getCharWidth()); in PushPropertyListHeader() 1180 CGM.getContext().getCharWidth()); in GenerateProtocolMethodList() 1839 CGM.getContext().getCharWidth()); in GenerateClass() 2893 CGM.getContext().getCharWidth()); in GenerateMethodList() 3036 CGM.getContext().getCharWidth()); in GenerateClassStructure()
|
| H A D | CGCall.cpp | 3353 int CharWidth = Context.getCharWidth(); in setUsedBits() 3415 (uint64_t(1) << Context.getCharWidth()) - 1); in setUsedBits() 3449 int CharWidth = CGM.getContext().getCharWidth(); in EmitCMSEClearRecord() 3467 int CharWidth = CGM.getContext().getCharWidth(); in EmitCMSEClearRecord()
|
| H A D | CGClass.cpp | 950 FirstByteOffset + Ctx.getCharWidth() - 1; in getMemcpySize() 1718 Layout.getFieldOffset(StartIndex) + Context.getCharWidth() - 1); in Emit()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | DynamicExtent.cpp | 72 MRegion->getMemRegionManager().getContext().getCharWidth()); in getDynamicExtentWithOffset()
|
| H A D | MemRegion.cpp | 1521 Offset += BaseOffset.getQuantity() * R->getContext().getCharWidth(); in calculateOffset()
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | Context.cpp | 110 return Ctx.getTargetInfo().getCharWidth(); in getCharBit()
|
| H A D | ByteCodeExprGen.h | 97 return ASTContext.getTargetInfo().getCharWidth(); in getCharBit()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SuspiciousMemsetUsageCheck.cpp | 83 const auto UCharMax = (1 << Result.Context->getCharWidth()) - 1; in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/ |
| H A D | StructPackAlignCheck.cpp | 77 uint64_t CharSize = Result.Context->getCharWidth(); in check()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | TargetInfo.h | 447 unsigned getCharWidth() const { return 8; } // FIXME in getCharWidth() function 766 (AtomicSizeInBits <= getCharWidth() || in hasBuiltinAtomic() 767 llvm::isPowerOf2_64(AtomicSizeInBits / getCharWidth())); in hasBuiltinAtomic()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | LiteralSupport.cpp | 40 static unsigned getCharWidth(tok::TokenKind kind, const TargetInfo &Target) { in getCharWidth() function 47 return Target.getCharWidth(); in getCharWidth() 1638 assert(PP.getTargetInfo().getCharWidth() == 8 && in CharLiteralParser() 1725 unsigned CharWidth = getCharWidth(Kind, PP.getTargetInfo()); in CharLiteralParser() 1900 CharByteWidth = getCharWidth(Kind, Target); in init()
|
| H A D | PPExpressions.cpp | 404 NumBits = TI.getCharWidth(); in EvaluateValue()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | RecordLayoutBuilder.cpp | 171 : Context(Context), CharWidth(Context.getCharWidth()), Class(Class) { in EmptySubobjectMap() 807 assert(Size % Context.getCharWidth() == 0); in getSize() 818 assert(DataSize % Context.getCharWidth() == 0); in getDataSize() 1807 : Context.getTargetInfo().getCharWidth()); in LayoutBitField() 2175 unsigned CharBitNum = Context.getTargetInfo().getCharWidth(); in FinishLayout() 2272 unsigned CharBitNum = Context.getTargetInfo().getCharWidth(); in CheckFieldPadding()
|
| H A D | ASTContext.cpp | 1737 unsigned Align = Target->getCharWidth(); in getDeclAlign() 1791 Align = Target->getCharWidth(); in getDeclAlign() 2046 Width = Target->getCharWidth(); in getTypeInfoImpl() 2307 getCharWidth(), llvm::PowerOf2Ceil(EIT->getNumBits()))), in getTypeInfoImpl() 2406 Width = Target->getCharWidth(); in getTypeInfoImpl() 2461 return CharUnits::fromQuantity(BitSize / getCharWidth()); in toCharUnitsFromBits() 2466 return CharSize.getQuantity() * getCharWidth(); in toBits() 9310 ? (Context.getLangOpts().VScaleMin * 128) / Context.getCharWidth() in getSVETypeSize()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ClangASTSource.cpp | 1564 size = record_layout.getSize().getQuantity() * m_ast_context->getCharWidth(); in layoutRecordType() 1566 m_ast_context->getCharWidth(); in layoutRecordType()
|
| /llvm-project-15.0.7/clang/lib/Basic/Targets/ |
| H A D | X86.h | 168 MaxVectorAlign = MaxTLSAlign = 8192u * getCharWidth(); in X86TargetInfo()
|