/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | CBufferDataLayout.cpp | 27 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 D | TypeSize.h | 334 class TypeSize : public details::FixedOrScalableQuantity<TypeSize, uint64_t> { 335 TypeSize(const FixedOrScalableQuantity<TypeSize, uint64_t> &V) in TypeSize() function 339 constexpr TypeSize(ScalarTy Quantity, bool Scalable) in TypeSize() function 342 static constexpr TypeSize get(ScalarTy Quantity, bool Scalable) { in get() 343 return TypeSize(Quantity, Scalable); in get() 345 static constexpr TypeSize getFixed(ScalarTy ExactSize) { in getFixed() 346 return TypeSize(ExactSize, false); in getFixed() 348 static constexpr TypeSize getScalable(ScalarTy MinimumSize) { in getScalable() 349 return TypeSize(MinimumSize, true); in getScalable() 351 static constexpr TypeSize getZero() { return TypeSize(0, false); } in getZero() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DataLayout.h | 463 TypeSize getTypeSizeInBits(Type *Ty) const; 472 TypeSize getTypeStoreSize(Type *Ty) const { in getTypeStoreSize() 473 TypeSize BaseSize = getTypeSizeInBits(Ty); in getTypeStoreSize() 484 TypeSize getTypeStoreSizeInBits(Type *Ty) const { in getTypeStoreSizeInBits() 504 TypeSize getTypeAllocSize(Type *Ty) const { in getTypeAllocSize() 517 TypeSize getTypeAllocSizeInBits(Type *Ty) const { in getTypeAllocSizeInBits() 622 class StructLayout final : public TrailingObjects<StructLayout, TypeSize> { 623 TypeSize StructSize; 629 TypeSize getSizeInBytes() const { return StructSize; } in getSizeInBytes() 631 TypeSize getSizeInBits() const { return 8 * StructSize; } in getSizeInBits() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
H A D | LoongArchTargetTransformInfo.cpp | 22 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 D | Analysis.h | 68 SmallVectorImpl<TypeSize> *Offsets = nullptr, 69 TypeSize StartingOffset = TypeSize::getZero()); 79 SmallVectorImpl<TypeSize> *Offsets = nullptr, 80 TypeSize StartingOffset = TypeSize::getZero()) {
|
H A D | ValueTypes.h | 253 return TypeSize::isKnownGT(getSizeInBits(), VT.getSizeInBits()); in knownBitsGT() 259 return TypeSize::isKnownGE(getSizeInBits(), VT.getSizeInBits()); in knownBitsGE() 264 return TypeSize::isKnownLT(getSizeInBits(), VT.getSizeInBits()); in knownBitsLT() 270 return TypeSize::isKnownLE(getSizeInBits(), VT.getSizeInBits()); in knownBitsLE() 358 TypeSize getSizeInBits() const { in getSizeInBits() 380 TypeSize getStoreSize() const { in getStoreSize() 381 TypeSize BaseSize = getSizeInBits(); in getStoreSize() 397 TypeSize getStoreSizeInBits() const { in getStoreSizeInBits() 544 TypeSize getExtendedSizeInBits() const LLVM_READONLY;
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ValueTypes.cpp | 83 getExtendedSizeInBits() == TypeSize::getFixed(16); in isExtended16BitVector() 88 getExtendedSizeInBits() == TypeSize::getFixed(32); in isExtended32BitVector() 93 getExtendedSizeInBits() == TypeSize::getFixed(64); in isExtended64BitVector() 98 getExtendedSizeInBits() == TypeSize::getFixed(128); in isExtended128BitVector() 103 getExtendedSizeInBits() == TypeSize::getFixed(256); in isExtended256BitVector() 108 getExtendedSizeInBits() == TypeSize::getFixed(512); in isExtended512BitVector() 113 getExtendedSizeInBits() == TypeSize::getFixed(1024); in isExtended1024BitVector() 118 getExtendedSizeInBits() == TypeSize::getFixed(2048); in isExtended2048BitVector() 151 TypeSize EVT::getExtendedSizeInBits() const { in getExtendedSizeInBits() 154 return TypeSize::getFixed(ITy->getBitWidth()); in getExtendedSizeInBits()
|
H A D | StackProtector.cpp | 255 static bool HasAddressTaken(const Instruction *AI, TypeSize AllocSize, in HasAddressTaken() 265 !TypeSize::isKnownGE(AllocSize, MemLoc->Size.getValue())) 302 TypeSize OffsetSize = TypeSize::getFixed(Offset.getLimitedValue()); in requiresStackProtector() 303 if (!TypeSize::isKnownGT(AllocSize, OffsetSize)) in requiresStackProtector() 308 TypeSize NewAllocSize = in requiresStackProtector() 309 TypeSize::getFixed(AllocSize.getKnownMinValue()) - OffsetSize; in requiresStackProtector()
|
H A D | Analysis.cpp | 82 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 D | MachineValueType.h | 297 TypeSize getSizeInBits() const { in getSizeInBits() 298 static constexpr TypeSize SizeTable[] = { in getSizeInBits() 300 TypeSize(Sz, Sc || Ty == aarch64svcount /* FIXME: Not in the td. */), in getSizeInBits() 345 TypeSize getStoreSize() const { in getStoreSize() 346 TypeSize BaseSize = getSizeInBits(); in getStoreSize() 362 TypeSize getStoreSizeInBits() const { in getStoreSizeInBits() 372 return TypeSize::isKnownGT(getSizeInBits(), VT.getSizeInBits()); in knownBitsGT() 378 return TypeSize::isKnownGE(getSizeInBits(), VT.getSizeInBits()); in knownBitsGE() 383 return TypeSize::isKnownLT(getSizeInBits(), VT.getSizeInBits()); in knownBitsLT() 389 return TypeSize::isKnownLE(getSizeInBits(), VT.getSizeInBits()); in knownBitsLE()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64RegisterBankInfo.h | 73 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 D | AArch64RegisterBankInfo.cpp | 168 TypeSize::getFixed(Size)); \ in AArch64RegisterBankInfo() 222 const TypeSize Size) const { in copyCost() 309 TypeSize Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, TRI); in getInstrAlternativeMappings() 330 TypeSize Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, TRI); in getInstrAlternativeMappings() 352 TypeSize::getFixed(Size)), in getInstrAlternativeMappings() 359 TypeSize::getFixed(Size)), in getInstrAlternativeMappings() 370 TypeSize Size = getSizeInBits(MI.getOperand(0).getReg(), MRI, TRI); in getInstrAlternativeMappings() 385 getValueMapping(PMI_FirstGPR, TypeSize::getFixed(64))}), in getInstrAlternativeMappings() 392 getValueMapping(PMI_FirstGPR, TypeSize::getFixed(64))}), in getInstrAlternativeMappings() 444 TypeSize Size = Ty.getSizeInBits(); in getSameKindOfOperandsMapping() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
H A D | VETargetTransformInfo.h | 98 TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind K) const { in getRegisterBitWidth() 101 return TypeSize::getFixed(64); in getRegisterBitWidth() 104 return TypeSize::getFixed(0); in getRegisterBitWidth() 106 return TypeSize::getScalable(0); in getRegisterBitWidth()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CastSizeChecker.cpp | 51 CharUnits TypeSize, QualType ToPointeeTy) { in evenFlexibleArraySize() argument 69 if (ArrayTy->getSize() == 1 && TypeSize > FlexSize) in evenFlexibleArraySize() 70 TypeSize -= FlexSize; in evenFlexibleArraySize() 82 CharUnits Left = RegionSize - TypeSize; in evenFlexibleArraySize()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyTargetTransformInfo.cpp | 39 TypeSize WebAssemblyTTIImpl::getRegisterBitWidth( in getRegisterBitWidth() 43 return TypeSize::getFixed(64); in getRegisterBitWidth() 45 return TypeSize::getFixed(getST()->hasSIMD128() ? 128 : 64); in getRegisterBitWidth() 47 return TypeSize::getScalable(0); in getRegisterBitWidth()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | DataLayout.cpp | 49 : 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() 101 [](TypeSize LHS, TypeSize RHS) -> bool { in getElementContainingOffset() 102 return TypeSize::isKnownLT(LHS, RHS); in getElementContainingOffset() 106 assert(TypeSize::isKnownLE(*SI, Offset) && "upper_bound didn't work"); in getElementContainingOffset() 108 (SI == MemberOffsets.begin() || TypeSize::isKnownLE(*(SI - 1), Offset)) && in getElementContainingOffset() [all …]
|
H A D | Type.cpp | 166 TypeSize Type::getPrimitiveSizeInBits() const { in getPrimitiveSizeInBits() 169 return TypeSize::getFixed(16); in getPrimitiveSizeInBits() 171 return TypeSize::getFixed(16); in getPrimitiveSizeInBits() 173 return TypeSize::getFixed(32); in getPrimitiveSizeInBits() 175 return TypeSize::getFixed(64); in getPrimitiveSizeInBits() 177 return TypeSize::getFixed(80); in getPrimitiveSizeInBits() 179 return TypeSize::getFixed(128); in getPrimitiveSizeInBits() 181 return TypeSize::getFixed(128); in getPrimitiveSizeInBits() 183 return TypeSize::getFixed(64); in getPrimitiveSizeInBits() 185 return TypeSize::getFixed(8192); in getPrimitiveSizeInBits() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/ |
H A D | PPCLegalizerInfo.cpp | 26 unsigned TypeSize = QueryTy.getSizeInBits(); in isRegisterType() local 28 if (TypeSize % 32 == 1 || TypeSize > 128) in isRegisterType()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | TypeSize.cpp | 50 TypeSize::operator TypeSize::ScalarTy() const { in operator TypeSize::ScalarTy()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | MemoryLocation.h | 112 static LocationSize precise(TypeSize Value) { in precise() 124 static LocationSize upperBound(TypeSize Value) { in upperBound() 171 TypeSize getValue() const { in getValue() 194 bool operator==(const TypeSize &Other) const { 200 bool operator!=(const TypeSize &Other) const { return !(*this == Other); }
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
H A D | MemCpyOptimizer.h | 40 class TypeSize; variable 71 Value *cpyDst, Value *cpySrc, TypeSize cpyLen, 87 TypeSize Size, BatchAAResults &BAA);
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | SanitizerCoverage.cpp | 859 uint64_t TypeSize = DL->getTypeStoreSizeInBits(A1->getType()); in InjectTraceForDiv() local 860 int CallbackIdx = TypeSize == 32 ? 0 : in InjectTraceForDiv() 861 TypeSize == 64 ? 1 : -1; in InjectTraceForDiv() 863 auto Ty = Type::getIntNTy(*C, TypeSize); in InjectTraceForDiv() 883 uint64_t TypeSize = DL->getTypeStoreSizeInBits(ElementTy); in InjectTraceForLoadsAndStores() local 884 return TypeSize == 8 ? 0 in InjectTraceForLoadsAndStores() 885 : TypeSize == 16 ? 1 in InjectTraceForLoadsAndStores() 886 : TypeSize == 32 ? 2 in InjectTraceForLoadsAndStores() 887 : TypeSize == 64 ? 3 in InjectTraceForLoadsAndStores() 888 : TypeSize == 128 ? 4 in InjectTraceForLoadsAndStores() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMTargetTransformInfo.h | 165 TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind K) const { in getRegisterBitWidth() 168 return TypeSize::getFixed(32); in getRegisterBitWidth() 171 return TypeSize::getFixed(128); in getRegisterBitWidth() 173 return TypeSize::getFixed(128); in getRegisterBitWidth() 174 return TypeSize::getFixed(0); in getRegisterBitWidth() 176 return TypeSize::getScalable(0); in getRegisterBitWidth()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | Loads.cpp | 376 const TypeSize LoadSize = TypeSize::getFixed(Size.getZExtValue()); in isSafeToLoadUnconditionally() 426 TypeSize::isKnownLE(LoadSize, DL.getTypeStoreSize(AccessedTy))) in isSafeToLoadUnconditionally() 430 TypeSize::isKnownLE(LoadSize, DL.getTypeStoreSize(AccessedTy))) in isSafeToLoadUnconditionally() 442 TypeSize TySize = DL.getTypeStoreSize(Ty); in isSafeToLoadUnconditionally() 544 TypeSize StoreSize = DL.getTypeSizeInBits(Val->getType()); in getAvailableLoadStore() 545 TypeSize LoadSize = DL.getTypeSizeInBits(AccessTy); in getAvailableLoadStore() 546 if (TypeSize::isKnownLE(LoadSize, StoreSize)) in getAvailableLoadStore() 570 TypeSize LoadTypeSize = DL.getTypeSizeInBits(AccessTy); in getAvailableLoadStore()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/ |
H A D | AddressSanitizerCommon.h | 30 TypeSize TypeStoreSize = TypeSize::getFixed(0);
|