Home
last modified time | relevance | path

Searched refs:getCharWidth (Results 1 – 25 of 47) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp95 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 DTargetInfo.cpp208 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 DDefaultOperatorNewAlignmentCheck.cpp57 unsigned CharWidth = Context.getTargetInfo().getCharWidth(); in check()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DInitPreprocessor.cpp206 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 DCGObjCRuntime.cpp34 CGM.getContext().getCharWidth(); in ComputeIvarBaseOffset()
42 CGM.getContext().getCharWidth(); in ComputeIvarBaseOffset()
91 uint64_t BitOffset = FieldBitOffset % CGF.CGM.getContext().getCharWidth(); in EmitValueForIvarAtOffset()
H A DCGRecordLayoutBuilder.cpp130 unsigned AlignedBits = llvm::alignTo(NumBits, Context.getCharWidth()); in getIntNType()
136 Context.getCharWidth()); in getCharType()
H A DCodeGenTBAA.cpp301 Layout.getFieldOffset(idx) / Context.getCharWidth(); in CollectFields()
H A DCGCoroutine.cpp480 unsigned NewAlign = TI.getNewAlign() / TI.getCharWidth(); in EmitCoroutineBody()
H A DCGNonTrivialStruct.cpp119 uint64_t RoundedFEnd = llvm::alignTo(FEndInBits, Ctx.getCharWidth()); in visitTrivial()
536 Size.getQuantity() * this->CGF->getContext().getCharWidth()); in flushTrivialFields()
H A DCGObjCGNU.cpp285 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 DCGCall.cpp3353 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 DCGClass.cpp950 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 DDynamicExtent.cpp72 MRegion->getMemRegionManager().getContext().getCharWidth()); in getDynamicExtentWithOffset()
H A DMemRegion.cpp1521 Offset += BaseOffset.getQuantity() * R->getContext().getCharWidth(); in calculateOffset()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DContext.cpp110 return Ctx.getTargetInfo().getCharWidth(); in getCharBit()
H A DByteCodeExprGen.h97 return ASTContext.getTargetInfo().getCharWidth(); in getCharBit()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousMemsetUsageCheck.cpp83 const auto UCharMax = (1 << Result.Context->getCharWidth()) - 1; in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DStructPackAlignCheck.cpp77 uint64_t CharSize = Result.Context->getCharWidth(); in check()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DTargetInfo.h447 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 DLiteralSupport.cpp40 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 DPPExpressions.cpp404 NumBits = TI.getCharWidth(); in EvaluateValue()
/llvm-project-15.0.7/clang/lib/AST/
H A DRecordLayoutBuilder.cpp171 : 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 DASTContext.cpp1737 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 DClangASTSource.cpp1564 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 DX86.h168 MaxVectorAlign = MaxTLSAlign = 8192u * getCharWidth(); in X86TargetInfo()

12