Home
last modified time | relevance | path

Searched refs:TypeSize (Results 1 – 25 of 213) sorted by relevance

123456789

/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DCBufferDataLayout.cpp27 TypeSize Size = {0, false};
38 TypeSize getTypeAllocSizeInBytes(Type *Ty);
41 TypeSize applyRowAlign(TypeSize Offset, Type *EltTy);
42 TypeSize getTypeAllocSize(Type *Ty);
48 static TypeSize alignTo4Dwords(TypeSize Offset) { in alignTo4Dwords()
53 TypeSize LegacyCBufferLayout::getTypeAllocSizeInBytes(Type *Ty) { in getTypeAllocSizeInBytes()
57 TypeSize LegacyCBufferLayout::applyRowAlign(TypeSize Offse
[all...]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DTypeSize.h335 class TypeSize : public details::FixedOrScalableQuantity<TypeSize, uint64_t> {
336 TypeSize(const FixedOrScalableQuantity<TypeSize, uint64_t> &V) in TypeSize() function
340 constexpr TypeSize(ScalarTy Quantity, bool Scalable) in TypeSize() function
343 static constexpr TypeSize get(ScalarTy Quantity, bool Scalable) { in get()
344 return TypeSize(Quantity, Scalable); in get()
346 static constexpr TypeSize getFixed(ScalarTy ExactSize) { in getFixed()
347 return TypeSize(ExactSize, false); in getFixed()
349 static constexpr TypeSize getScalable(ScalarTy MinimumSize) { in getScalable()
350 return TypeSize(MinimumSize, true); in getScalable()
352 static constexpr TypeSize getZero() { return TypeSize(0, false); } in getZero()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDataLayout.h459 TypeSize getTypeSizeInBits(Type *Ty) const;
468 TypeSize getTypeStoreSize(Type *Ty) const { in getTypeStoreSize()
469 TypeSize StoreSizeInBits = getTypeStoreSizeInBits(Ty); in getTypeStoreSize()
481 TypeSize getTypeStoreSizeInBits(Type *Ty) const { in getTypeStoreSizeInBits()
482 TypeSize BaseSize = getTypeSizeInBits(Ty); in getTypeStoreSizeInBits()
504 TypeSize getTypeAllocSize(Type *Ty) const { in getTypeAllocSize()
517 TypeSize getTypeAllocSizeInBits(Type *Ty) const { in getTypeAllocSizeInBits()
626 class StructLayout final : private TrailingObjects<StructLayout, TypeSize> {
629 TypeSize StructSize;
635 TypeSize getSizeInBytes() const { return StructSize; } in getSizeInBytes()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/IR/
H A DCIRTypes.cpp290 llvm::TypeSize
297 return llvm::TypeSize::getFixed(recordSize * 8); in getTypeSizeInBits()
444 llvm::TypeSize
447 return llvm::TypeSize::getFixed(getWidth()); in getTypeSizeInBits()
477 llvm::TypeSize
480 return llvm::TypeSize::getFixed(getWidth()); in getTypeSizeInBits()
493 llvm::TypeSize
496 return llvm::TypeSize::getFixed(getWidth()); in getTypeSizeInBits()
509 llvm::TypeSize
512 return llvm::TypeSize::getFixed(getWidth()); in getTypeSizeInBits()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchTargetTransformInfo.cpp22 TypeSize LoongArchTTIImpl::getRegisterBitWidth( in getRegisterBitWidth()
24 TypeSize DefSize = TargetTransformInfoImplBase::getRegisterBitWidth(K); in getRegisterBitWidth()
27 return TypeSize::getFixed(ST->is64Bit() ? 64 : 32); in getRegisterBitWidth()
30 return TypeSize::getFixed(256); in getRegisterBitWidth()
32 return TypeSize::getFixed(128); in getRegisterBitWidth()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DAnalysis.h68 SmallVectorImpl<TypeSize> *Offsets = nullptr,
69 TypeSize StartingOffset = TypeSize::getZero());
79 SmallVectorImpl<TypeSize> *Offsets = nullptr,
80 TypeSize StartingOffset = TypeSize::getZero()) {
H A DValueTypes.h258 return TypeSize::isKnownGT(getSizeInBits(), VT.getSizeInBits()); in knownBitsGT()
264 return TypeSize::isKnownGE(getSizeInBits(), VT.getSizeInBits()); in knownBitsGE()
269 return TypeSize::isKnownLT(getSizeInBits(), VT.getSizeInBits()); in knownBitsLT()
275 return TypeSize::isKnownLE(getSizeInBits(), VT.getSizeInBits()); in knownBitsLE()
368 TypeSize getSizeInBits() const { in getSizeInBits()
390 TypeSize getStoreSize() const { in getStoreSize()
391 TypeSize BaseSize = getSizeInBits(); in getStoreSize()
407 TypeSize getStoreSizeInBits() const { in getStoreSizeInBits()
559 LLVM_ABI TypeSize getExtendedSizeInBits() const LLVM_READONLY;
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DValueTypes.cpp84 getExtendedSizeInBits() == TypeSize::getFixed(16); in isExtended16BitVector()
89 getExtendedSizeInBits() == TypeSize::getFixed(32); in isExtended32BitVector()
94 getExtendedSizeInBits() == TypeSize::getFixed(64); in isExtended64BitVector()
99 getExtendedSizeInBits() == TypeSize::getFixed(128); in isExtended128BitVector()
104 getExtendedSizeInBits() == TypeSize::getFixed(256); in isExtended256BitVector()
109 getExtendedSizeInBits() == TypeSize::getFixed(512); in isExtended512BitVector()
114 getExtendedSizeInBits() == TypeSize::getFixed(1024); in isExtended1024BitVector()
119 getExtendedSizeInBits() == TypeSize::getFixed(2048); in isExtended2048BitVector()
152 TypeSize EVT::getExtendedSizeInBits() const { in getExtendedSizeInBits()
155 return TypeSize::getFixed(ITy->getBitWidth()); in getExtendedSizeInBits()
H A DStackProtector.cpp259 TypeSize AllocSize;
262 PhiInfo(TypeSize AllocSize) : AllocSize(AllocSize) {} in PhiInfo()
267 static bool HasAddressTaken(const Instruction *AI, TypeSize AllocSize, in HasAddressTaken()
277 !TypeSize::isKnownGE(AllocSize, MemLoc->Size.getValue())) in HasAddressTaken()
318 TypeSize OffsetSize = TypeSize::getFixed(Offset.getLimitedValue()); in HasAddressTaken()
319 if (!TypeSize::isKnownGT(AllocSize, OffsetSize)) in HasAddressTaken()
324 TypeSize NewAllocSize = in HasAddressTaken()
325 TypeSize::getFixed(AllocSize.getKnownMinValue()) - OffsetSize; in HasAddressTaken()
342 if (TypeSize::isKnownGE(AllocSize, It->second.AllocSize)) in HasAddressTaken()
H A DAnalysis.cpp82 SmallVectorImpl<TypeSize> *Offsets, in ComputeValueVTs()
83 TypeSize StartingOffset) { in ComputeValueVTs()
98 TypeSize EltOffset = in ComputeValueVTs()
99 SL ? SL->getElementOffset(EI - EB) : TypeSize::getZero(); in ComputeValueVTs()
108 TypeSize EltSize = DL.getTypeAllocSize(EltTy); in ComputeValueVTs()
130 TypeSize Offset = TypeSize::getFixed(StartingOffset); in ComputeValueVTs()
132 SmallVector<TypeSize, 4> Offsets; in ComputeValueVTs()
134 for (TypeSize Offset : Offsets) in ComputeValueVTs()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/
H A DMachineValueType.h309 TypeSize getSizeInBits() const { in getSizeInBits()
310 static constexpr TypeSize SizeTable[] = { in getSizeInBits()
312 TypeSize(Sz, Sc || Tup || Ty == aarch64svcount /* FIXME: Not in the td. \ in getSizeInBits()
358 TypeSize getStoreSize() const { in getStoreSize()
359 TypeSize BaseSize = getSizeInBits(); in getStoreSize()
375 TypeSize getStoreSizeInBits() const { in getStoreSizeInBits()
385 return TypeSize::isKnownGT(getSizeInBits(), VT.getSizeInBits()); in knownBitsGT()
391 return TypeSize::isKnownGE(getSizeInBits(), VT.getSizeInBits()); in knownBitsGE()
396 return TypeSize::isKnownLT(getSizeInBits(), VT.getSizeInBits()); in knownBitsLT()
402 return TypeSize::isKnownLE(getSizeInBits(), VT.getSizeInBits()); in knownBitsLE()
H A DLowLevelType.h191 constexpr TypeSize getSizeInBits() const { in getSizeInBits()
193 return TypeSize::getFixed(getScalarSizeInBits()); in getSizeInBits()
195 return TypeSize(getScalarSizeInBits() * EC.getKnownMinValue(), in getSizeInBits()
201 constexpr TypeSize getSizeInBytes() const { in getSizeInBytes()
202 TypeSize BaseSize = getSizeInBits(); in getSizeInBytes()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64RegisterBankInfo.h73 static unsigned getRegBankBaseIdxOffset(unsigned RBIdx, TypeSize Size);
83 getValueMapping(PartialMappingIdx RBIdx, TypeSize Size);
89 getCopyMapping(unsigned DstBankID, unsigned SrcBankID, TypeSize Size);
150 TypeSize Size) const override;
H A DAArch64RegisterBankInfo.cpp168 TypeSize::getFixed(Size)); \ in AArch64RegisterBankInfo()
222 const TypeSize Size) const { in copyCost()
264 TypeSize Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, TRI); in getInstrAlternativeMappings()
285 TypeSize Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, TRI); in getInstrAlternativeMappings()
307 TypeSize::getFixed(Size)), in getInstrAlternativeMappings()
314 TypeSize::getFixed(Size)), in getInstrAlternativeMappings()
325 TypeSize Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, TRI); in getInstrAlternativeMappings()
340 getValueMapping(PMI_FirstGPR, TypeSize::getFixed(64))}), in getInstrAlternativeMappings()
347 getValueMapping(PMI_FirstGPR, TypeSize::getFixed(64))}), in getInstrAlternativeMappings()
419 TypeSize Size = Ty.getSizeInBits(); in getSameKindOfOperandsMapping()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp24 TypeSize MinStoreSize = DL.getTypeSizeInBits(StoredTy); in canCoerceMustAliasedValueToLoad()
25 TypeSize LoadSize = DL.getTypeSizeInBits(LoadTy); in canCoerceMustAliasedValueToLoad()
42 TypeSize::getFixed(MinStoreSize.getKnownMinValue() * MinVScale); in canCoerceMustAliasedValueToLoad()
53 if (!TypeSize::isKnownGE(MinStoreSize, LoadSize)) in canCoerceMustAliasedValueToLoad()
109 TypeSize StoredValSize = DL.getTypeSizeInBits(StoredValTy); in coerceAvailableValueToLoadType()
110 TypeSize LoadedValSize = DL.getTypeSizeInBits(LoadedTy); in coerceAvailableValueToLoadType()
145 TypeSize::isKnownGE(StoredValSize, LoadedValSize) && in coerceAvailableValueToLoadType()
379 TypeSize MinSrcValSize = DL.getTypeStoreSize(SrcVal->getType()); in getValueForLoad()
380 TypeSize LoadSize = DL.getTypeStoreSize(LoadTy); in getValueForLoad()
383 TypeSize::getFixed(MinSrcValSize.getKnownMinValue() * in getValueForLoad()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryLocation.h98 static LocationSize precise(TypeSize Value) { in precise()
110 static LocationSize upperBound(TypeSize Value) { in upperBound()
157 TypeSize getValue() const { in getValue()
179 bool operator==(const TypeSize &Other) const {
187 bool operator!=(const TypeSize &Other) const { return !(*this == Other); }
293 explicit MemoryLocation(const Value *Ptr, TypeSize Size,
314 MemoryLocation getWithNewSize(TypeSize NewSize) const { in getWithNewSize()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVETargetTransformInfo.h98 TypeSize
102 return TypeSize::getFixed(64); in getRegisterBitWidth()
105 return TypeSize::getFixed(0); in getRegisterBitWidth()
107 return TypeSize::getScalable(0); in getRegisterBitWidth()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCastSizeChecker.cpp51 CharUnits TypeSize, QualType ToPointeeTy) { in evenFlexibleArraySize() argument
71 if (ArrayTy->getSize() == 1 && TypeSize > FlexSize) in evenFlexibleArraySize()
72 TypeSize -= FlexSize; in evenFlexibleArraySize()
84 CharUnits Left = RegionSize - TypeSize; in evenFlexibleArraySize()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDataLayout.cpp49 : StructSize(TypeSize::getFixed(0)) { in StructLayout()
58 StructSize = TypeSize::getScalable(0); in StructLayout()
71 StructSize = TypeSize::getFixed(alignTo(StructSize, TyAlign)); in StructLayout()
86 StructSize = TypeSize::getFixed(alignTo(StructSize, StructAlignment)); in StructLayout()
96 TypeSize Offset = TypeSize::getFixed(FixedOffset); in getElementContainingOffset()
97 ArrayRef<TypeSize> MemberOffsets = getMemberOffsets(); in getElementContainingOffset()
100 [](TypeSize LHS, TypeSize RHS) -> bool { in getElementContainingOffset()
101 return TypeSize::isKnownLT(LHS, RHS); in getElementContainingOffset()
105 assert(TypeSize::isKnownLE(*SI, Offset) && "upper_bound didn't work"); in getElementContainingOffset()
107 (SI == MemberOffsets.begin() || TypeSize::isKnownLE(*(SI - 1), Offset)) && in getElementContainingOffset()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Frontend/HLSL/
H A DCBuffer.cpp68 int64_t TypeSize = DL.getTypeSizeInBits(Ty->getElementType()) / 8; in translateCBufArrayOffset() local
69 int64_t RoundUp = alignTo(TypeSize, Align(CBufferRowSizeInBytes)); in translateCBufArrayOffset()
70 return Offset.udiv(TypeSize) * RoundUp; in translateCBufArrayOffset()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenCLRuntime.cpp85 unsigned TypeSize = CGM.getContext() in getPipeElemSize() local
88 return llvm::ConstantInt::get(Int32Ty, TypeSize, false); in getPipeElemSize()
95 unsigned TypeSize = CGM.getContext() in getPipeElemAlign() local
98 return llvm::ConstantInt::get(Int32Ty, TypeSize, false); in getPipeElemAlign()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DTypeSize.cpp50 TypeSize::operator TypeSize::ScalarTy() const { in operator TypeSize::ScalarTy()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/
H A DPPCLegalizerInfo.cpp24 unsigned TypeSize = QueryTy.getSizeInBits(); in isRegisterType() local
26 if (TypeSize % 32 == 1 || TypeSize > 128) in isRegisterType()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DMemCpyOptimizer.h41 class TypeSize; variable
73 Value *cpyDst, Value *cpySrc, TypeSize cpyLen,
89 TypeSize Size, BatchAAResults &BAA);
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/
H A DAddressSanitizerCommon.h30 TypeSize TypeStoreSize = TypeSize::getFixed(0);

123456789