/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() 57 TypeSize LegacyCBufferLayout::applyRowAlign(TypeSize Offset, Type *EltTy) { in applyRowAlign() 58 TypeSize AlignedOffset = alignTo4Dwords(Offset); in applyRowAlign() 65 TypeSize Size = DL.getTypeStoreSize(EltTy); in applyRowAlign() 79 return TypeSize::getFixed(0); in getTypeAllocSize() 98 TypeSize Offset = TypeSize::getFixed(0); in getStructLayout() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | TypeSize.h | 319 class TypeSize : public details::FixedOrScalableQuantity<TypeSize, uint64_t> { 320 TypeSize(const FixedOrScalableQuantity<TypeSize, uint64_t> &V) in TypeSize() argument 333 return TypeSize(ExactSize, false); in getFixed() 367 friend constexpr TypeSize operator*(const TypeSize &LHS, const int RHS) { 370 friend constexpr TypeSize operator*(const TypeSize &LHS, const unsigned RHS) { 373 friend constexpr TypeSize operator*(const TypeSize &LHS, const int64_t RHS) { 376 friend constexpr TypeSize operator*(const int LHS, const TypeSize &RHS) { 379 friend constexpr TypeSize operator*(const unsigned LHS, const TypeSize &RHS) { 382 friend constexpr TypeSize operator*(const int64_t LHS, const TypeSize &RHS) { 385 friend constexpr TypeSize operator*(const uint64_t LHS, const TypeSize &RHS) { [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() 504 TypeSize getTypeAllocSize(Type *Ty) const { in getTypeAllocSize() 623 TypeSize StructSize; 678 return TypeSize::getFixed( in getTypeSizeInBits() 692 return TypeSize::getFixed(16); in getTypeSizeInBits() 694 return TypeSize::getFixed(32); in getTypeSizeInBits() 697 return TypeSize::getFixed(64); in getTypeSizeInBits() 700 return TypeSize::getFixed(128); in getTypeSizeInBits() 702 return TypeSize::getFixed(8192); in getTypeSizeInBits() [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() 32 return TypeSize::getFixed(256); in getRegisterBitWidth() 34 return TypeSize::getFixed(128); in getRegisterBitWidth()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | Analysis.h | 67 SmallVectorImpl<TypeSize> *Offsets, 68 TypeSize StartingOffset); 71 SmallVectorImpl<TypeSize> *Offsets = nullptr, 82 SmallVectorImpl<TypeSize> *Offsets, 83 TypeSize StartingOffset); 87 SmallVectorImpl<TypeSize> *Offsets = nullptr,
|
H A D | MachineValueType.h | 304 TypeSize getSizeInBits() const { in getSizeInBits() 305 static constexpr TypeSize SizeTable[] = { in getSizeInBits() 307 TypeSize(Sz, Sc || Ty == aarch64svcount /* FIXME: Not in the td. */), in getSizeInBits() 352 TypeSize getStoreSize() const { in getStoreSize() 353 TypeSize BaseSize = getSizeInBits(); in getStoreSize() 369 TypeSize getStoreSizeInBits() const { in getStoreSizeInBits() 379 return TypeSize::isKnownGT(getSizeInBits(), VT.getSizeInBits()); in knownBitsGT() 385 return TypeSize::isKnownGE(getSizeInBits(), VT.getSizeInBits()); in knownBitsGE() 390 return TypeSize::isKnownLT(getSizeInBits(), VT.getSizeInBits()); in knownBitsLT() 396 return TypeSize::isKnownLE(getSizeInBits(), VT.getSizeInBits()); in knownBitsLE()
|
H A D | ValueTypes.h | 246 return TypeSize::isKnownGT(getSizeInBits(), VT.getSizeInBits()); in knownBitsGT() 252 return TypeSize::isKnownGE(getSizeInBits(), VT.getSizeInBits()); in knownBitsGE() 257 return TypeSize::isKnownLT(getSizeInBits(), VT.getSizeInBits()); in knownBitsLT() 263 return TypeSize::isKnownLE(getSizeInBits(), VT.getSizeInBits()); in knownBitsLE() 351 TypeSize getSizeInBits() const { in getSizeInBits() 373 TypeSize getStoreSize() const { in getStoreSize() 374 TypeSize BaseSize = getSizeInBits(); in getStoreSize() 390 TypeSize getStoreSizeInBits() const { in getStoreSizeInBits() 535 TypeSize getExtendedSizeInBits() const LLVM_READONLY;
|
H A D | LowLevelType.h | 183 constexpr TypeSize getSizeInBits() const { in getSizeInBits() 185 return TypeSize::getFixed(getScalarSizeInBits()); in getSizeInBits() 187 return TypeSize(getScalarSizeInBits() * EC.getKnownMinValue(), in getSizeInBits() 193 constexpr TypeSize getSizeInBytes() const { in getSizeInBytes() 194 TypeSize BaseSize = getSizeInBits(); in getSizeInBytes()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | Analysis.cpp | 83 TypeSize StartingOffset) { in ComputeValueVTs() 105 TypeSize EltSize = DL.getTypeAllocSize(EltTy); in ComputeValueVTs() 125 TypeSize StartingOffset) { in ComputeValueVTs() 134 TypeSize Offset = TypeSize::get(StartingOffset, Ty->isScalableTy()); in ComputeValueVTs() 142 TypeSize Offset = TypeSize::get(StartingOffset, Ty->isScalableTy()); in ComputeValueVTs() 144 SmallVector<TypeSize, 4> Offsets; in ComputeValueVTs() 146 for (TypeSize Offset : Offsets) in ComputeValueVTs() 158 TypeSize Offset = TypeSize::get(StartingOffset, Ty->isScalableTy()); in ComputeValueVTs() 167 TypeSize Offset = TypeSize::get(StartingOffset, Ty->isScalableTy()); in ComputeValueVTs() 169 SmallVector<TypeSize, 4> Offsets; in ComputeValueVTs() [all …]
|
H A D | StackProtector.cpp | 255 static bool HasAddressTaken(const Instruction *AI, TypeSize AllocSize, in HasAddressTaken() 265 !TypeSize::isKnownGE(AllocSize, MemLoc->Size.getValue())) in HasAddressTaken() 302 TypeSize OffsetSize = TypeSize::getFixed(Offset.getLimitedValue()); in HasAddressTaken() 303 if (!TypeSize::isKnownGT(AllocSize, OffsetSize)) in HasAddressTaken() 308 TypeSize NewAllocSize = in HasAddressTaken() 309 TypeSize::getFixed(AllocSize.getKnownMinValue()) - OffsetSize; in HasAddressTaken()
|
/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/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/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/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() 110 TypeSize::isKnownGT(*(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/Support/ |
H A D | TypeSize.cpp | 49 TypeSize::operator TypeSize::ScalarTy() const { in operator TypeSize::ScalarTy()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGOpenCLRuntime.cpp | 85 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/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/Analysis/ |
H A D | Loads.cpp | 367 const TypeSize LoadSize = TypeSize::getFixed(Size.getZExtValue()); in isSafeToLoadUnconditionally() 417 TypeSize::isKnownLE(LoadSize, DL.getTypeStoreSize(AccessedTy))) in isSafeToLoadUnconditionally() 421 TypeSize::isKnownLE(LoadSize, DL.getTypeStoreSize(AccessedTy))) in isSafeToLoadUnconditionally() 433 TypeSize TySize = DL.getTypeStoreSize(Ty); in isSafeToLoadUnconditionally() 535 TypeSize StoreSize = DL.getTypeSizeInBits(Val->getType()); in getAvailableLoadStore() 536 TypeSize LoadSize = DL.getTypeSizeInBits(AccessTy); in getAvailableLoadStore() 537 if (TypeSize::isKnownLE(LoadSize, StoreSize)) in getAvailableLoadStore() 561 TypeSize LoadTypeSize = DL.getTypeSizeInBits(AccessTy); in getAvailableLoadStore()
|
H A D | StackSafetyAnalysis.cpp | 156 TypeSize TS = DL.getTypeAllocSize(AI.getAllocatedType()); in getStaticAllocaSizeRange() 259 bool isSafeAccess(const Use &U, AllocaInst *AI, TypeSize AccessSize); 347 TypeSize TS) { in isSafeAccess() 421 auto TypeSize = DL.getTypeStoreSize(StoredVal->getType()); in analyzeAllUses() local 422 auto AccessRange = getAccessRange(UI, Ptr, TypeSize); in analyzeAllUses() 423 bool Safe = isSafeAccess(UI, AI, TypeSize); in analyzeAllUses() 434 auto TypeSize = DL.getTypeStoreSize(I->getType()); in analyzeAllUses() local 435 auto AccessRange = getAccessRange(UI, Ptr, TypeSize); in analyzeAllUses() 436 bool Safe = isSafeAccess(UI, AI, TypeSize); in analyzeAllUses() 498 auto AccessRange = getAccessRange(UI, Ptr, TypeSize); in analyzeAllUses() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/ |
H A D | AddressSanitizerCommon.h | 30 TypeSize TypeStoreSize = TypeSize::getFixed(0);
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | SanitizerCoverage.cpp | 854 int CallbackIdx = TypeSize == 32 ? 0 : in InjectTraceForDiv() 855 TypeSize == 64 ? 1 : -1; in InjectTraceForDiv() 857 auto Ty = Type::getIntNTy(*C, TypeSize); in InjectTraceForDiv() 878 return TypeSize == 8 ? 0 in InjectTraceForLoadsAndStores() 879 : TypeSize == 16 ? 1 in InjectTraceForLoadsAndStores() 880 : TypeSize == 32 ? 2 in InjectTraceForLoadsAndStores() 881 : TypeSize == 64 ? 3 in InjectTraceForLoadsAndStores() 882 : TypeSize == 128 ? 4 in InjectTraceForLoadsAndStores() 913 int CallbackIdx = TypeSize == 8 ? 0 : in InjectTraceForCmp() 914 TypeSize == 16 ? 1 : in InjectTraceForCmp() [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/Target/AArch64/ |
H A D | AArch64Arm64ECCallLowering.cpp | 326 unsigned TypeSize = ArgSizeBytes; in canonicalizeThunkType() local 327 if (TypeSize == 0) in canonicalizeThunkType() 328 TypeSize = DL.getTypeSizeInBits(T) / 8; in canonicalizeThunkType() 330 if (TypeSize != 4) in canonicalizeThunkType() 331 Out << TypeSize; in canonicalizeThunkType() 336 if (TypeSize == 1 || TypeSize == 2 || TypeSize == 4 || TypeSize == 8) { in canonicalizeThunkType() 338 X64Ty = llvm::Type::getIntNTy(M->getContext(), TypeSize * 8); in canonicalizeThunkType()
|
/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() 296 static uint64_t getSizeOrUnknown(const TypeSize &T) { in getSizeOrUnknown()
|