| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | TypeSize.h | 405 class TypeSize; 417 class TypeSize : public LinearPolySize<TypeSize> { 419 TypeSize(const LinearPolySize<TypeSize> &V) : LinearPolySize(V) {} 457 friend TypeSize operator*(const TypeSize &LHS, const int RHS) { 460 friend TypeSize operator*(const TypeSize &LHS, const unsigned RHS) { 463 friend TypeSize operator*(const TypeSize &LHS, const int64_t RHS) { 466 friend TypeSize operator*(const int LHS, const TypeSize &RHS) { 469 friend TypeSize operator*(const unsigned LHS, const TypeSize &RHS) { 472 friend TypeSize operator*(const int64_t LHS, const TypeSize &RHS) { 475 friend TypeSize operator*(const uint64_t LHS, const TypeSize &RHS) { [all …]
|
| H A D | MachineValueType.h | 860 TypeSize getSizeInBits() const { in getSizeInBits() 880 case v1i1: return TypeSize::Fixed(1); in getSizeInBits() 882 case v2i1: return TypeSize::Fixed(2); in getSizeInBits() 884 case v4i1: return TypeSize::Fixed(4); in getSizeInBits() 888 case v8i1: return TypeSize::Fixed(8); in getSizeInBits() 897 case v1f16: return TypeSize::Fixed(16); in getSizeInBits() 911 case v1i32: return TypeSize::Fixed(32); in getSizeInBits() 933 case v1f64: return TypeSize::Fixed(64); in getSizeInBits() 1072 TypeSize getStoreSize() const { in getStoreSize() 1073 TypeSize BaseSize = getSizeInBits(); in getStoreSize() [all …]
|
| H A D | LowLevelTypeImpl.h | 153 TypeSize getSizeInBits() const { in getSizeInBits() 155 return TypeSize::Fixed(getScalarSizeInBits()); in getSizeInBits() 157 return TypeSize(getScalarSizeInBits() * EC.getKnownMinValue(), in getSizeInBits() 163 TypeSize getSizeInBytes() const { in getSizeInBytes() 164 TypeSize BaseSize = getSizeInBits(); in getSizeInBytes()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | DataLayout.h | 457 TypeSize getTypeSizeInBits(Type *Ty) const; 466 TypeSize getTypeStoreSize(Type *Ty) const { in getTypeStoreSize() 467 TypeSize BaseSize = getTypeSizeInBits(Ty); in getTypeStoreSize() 498 TypeSize getTypeAllocSize(Type *Ty) const { in getTypeAllocSize() 669 return TypeSize::Fixed( in getTypeSizeInBits() 675 return TypeSize::Fixed(16); in getTypeSizeInBits() 677 return TypeSize::Fixed(32); in getTypeSizeInBits() 680 return TypeSize::Fixed(64); in getTypeSizeInBits() 683 return TypeSize::Fixed(128); in getTypeSizeInBits() 685 return TypeSize::Fixed(8192); in getTypeSizeInBits() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VETargetTransformInfo.h | 53 TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind K) const { in getRegisterBitWidth() 56 return TypeSize::getFixed(64); in getRegisterBitWidth() 59 return TypeSize::getFixed(0); in getRegisterBitWidth() 61 return TypeSize::getScalable(0); in getRegisterBitWidth()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | ValueTypes.h | 236 return TypeSize::isKnownGT(getSizeInBits(), VT.getSizeInBits()); in knownBitsGT() 242 return TypeSize::isKnownGE(getSizeInBits(), VT.getSizeInBits()); in knownBitsGE() 247 return TypeSize::isKnownLT(getSizeInBits(), VT.getSizeInBits()); in knownBitsLT() 253 return TypeSize::isKnownLE(getSizeInBits(), VT.getSizeInBits()); in knownBitsLE() 341 TypeSize getSizeInBits() const { in getSizeInBits() 363 TypeSize getStoreSize() const { in getStoreSize() 364 TypeSize BaseSize = getSizeInBits(); in getStoreSize() 374 TypeSize getStoreSizeInBits() const { in getStoreSizeInBits() 511 TypeSize getExtendedSizeInBits() const LLVM_READONLY;
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | MemProfiler.cpp | 152 uint64_t TypeSize; member 174 Value *Addr, uint32_t TypeSize, bool IsWrite); 177 unsigned Alignment, uint32_t TypeSize, 337 Access.TypeSize = DL.getTypeStoreSizeInBits(LI->getType()); in isInterestingMemoryAccess() 344 Access.TypeSize = in isInterestingMemoryAccess() 352 Access.TypeSize = in isInterestingMemoryAccess() 360 Access.TypeSize = in isInterestingMemoryAccess() 383 Access.TypeSize = DL.getTypeStoreSizeInBits(Ty); in isInterestingMemoryAccess() 458 Access.Alignment, Access.TypeSize, in instrumentMop() 464 instrumentAddress(I, I, Access.Addr, Access.TypeSize, Access.IsWrite); in instrumentMop() [all …]
|
| H A D | AddressSanitizer.cpp | 690 uint64_t TypeSize) const; 1299 static size_t TypeSizeToSizeIndex(uint32_t TypeSize) { in TypeSizeToSizeIndex() argument 1300 size_t Res = countTrailingZeros(TypeSize / 8); in TypeSizeToSizeIndex() 1555 if ((TypeSize == 8 || TypeSize == 16 || TypeSize == 32 || TypeSize == 64 || in doInstrumentAddress() 1556 TypeSize == 128) && in doInstrumentAddress() 1627 isSafeAccess(ObjSizeVis, Addr, O.TypeSize)) { in instrumentMop() 1636 isSafeAccess(ObjSizeVis, Addr, O.TypeSize)) { in instrumentMop() 1695 if (TypeSize / 8 > 1) in createSlowPathCmp() 1742 size_t AccessSizeIndex = TypeSizeToSizeIndex(TypeSize); in instrumentAddress() 1766 if (ClAlwaysSlowPath || (TypeSize < 8 * Granularity)) { in instrumentAddress() [all …]
|
| H A D | ThreadSanitizer.cpp | 692 const uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in instrumentLoadOrStore() local 694 if (Alignment == 0 || Alignment >= 8 || (Alignment % (TypeSize / 8)) == 0) { in instrumentLoadOrStore() 870 uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in getMemoryAccessFuncIndex() local 871 if (TypeSize != 8 && TypeSize != 16 && in getMemoryAccessFuncIndex() 872 TypeSize != 32 && TypeSize != 64 && TypeSize != 128) { in getMemoryAccessFuncIndex() 877 size_t Idx = countTrailingZeros(TypeSize / 8); in getMemoryAccessFuncIndex()
|
| H A D | SanitizerCoverage.cpp | 839 uint64_t TypeSize = DL->getTypeStoreSizeInBits(A1->getType()); in InjectTraceForDiv() local 840 int CallbackIdx = TypeSize == 32 ? 0 : in InjectTraceForDiv() 841 TypeSize == 64 ? 1 : -1; in InjectTraceForDiv() 843 auto Ty = Type::getIntNTy(*C, TypeSize); in InjectTraceForDiv() 869 uint64_t TypeSize = DL->getTypeStoreSizeInBits(A0->getType()); in InjectTraceForCmp() local 870 int CallbackIdx = TypeSize == 8 ? 0 : in InjectTraceForCmp() 871 TypeSize == 16 ? 1 : in InjectTraceForCmp() 872 TypeSize == 32 ? 2 : in InjectTraceForCmp() 873 TypeSize == 64 ? 3 : -1; in InjectTraceForCmp() 888 auto Ty = Type::getIntNTy(*C, TypeSize); in InjectTraceForCmp()
|
| /freebsd-13.1/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-13.1/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()
|
| H A D | CheckPlacementNew.cpp | 77 CharUnits TypeSize = AstContext.getTypeSizeInChars(ElementType); in getExtentSizeOfNewTarget() local 87 SvalBuilder.makeArrayIndex(TypeSize.getQuantity()), in getExtentSizeOfNewTarget() 96 TypeSize.getQuantity()); in getExtentSizeOfNewTarget()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Type.cpp | 128 TypeSize Type::getPrimitiveSizeInBits() const { in getPrimitiveSizeInBits() 130 case Type::HalfTyID: return TypeSize::Fixed(16); in getPrimitiveSizeInBits() 131 case Type::BFloatTyID: return TypeSize::Fixed(16); in getPrimitiveSizeInBits() 132 case Type::FloatTyID: return TypeSize::Fixed(32); in getPrimitiveSizeInBits() 133 case Type::DoubleTyID: return TypeSize::Fixed(64); in getPrimitiveSizeInBits() 134 case Type::X86_FP80TyID: return TypeSize::Fixed(80); in getPrimitiveSizeInBits() 135 case Type::FP128TyID: return TypeSize::Fixed(128); in getPrimitiveSizeInBits() 136 case Type::PPC_FP128TyID: return TypeSize::Fixed(128); in getPrimitiveSizeInBits() 137 case Type::X86_MMXTyID: return TypeSize::Fixed(64); in getPrimitiveSizeInBits() 138 case Type::X86_AMXTyID: return TypeSize::Fixed(8192); in getPrimitiveSizeInBits() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetTransformInfo.h | 60 TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind K) const { in getRegisterBitWidth() 63 return TypeSize::getFixed(ST->getXLen()); in getRegisterBitWidth() 65 return TypeSize::getFixed( in getRegisterBitWidth() 68 return TypeSize::getScalable( in getRegisterBitWidth()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/ |
| H A D | TypeSize.cpp | 49 TypeSize::operator TypeSize::ScalarTy() const { in operator TypeSize::ScalarTy()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMTargetTransformInfo.h | 159 TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind K) const { in getRegisterBitWidth() 162 return TypeSize::getFixed(32); in getRegisterBitWidth() 165 return TypeSize::getFixed(128); in getRegisterBitWidth() 167 return TypeSize::getFixed(128); in getRegisterBitWidth() 168 return TypeSize::getFixed(0); in getRegisterBitWidth() 170 return TypeSize::getScalable(0); in getRegisterBitWidth()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGOpenCLRuntime.cpp | 102 unsigned TypeSize = CGM.getContext() in getPipeElemSize() local 105 return llvm::ConstantInt::get(Int32Ty, TypeSize, false); in getPipeElemSize() 112 unsigned TypeSize = CGM.getContext() in getPipeElemAlign() local 115 return llvm::ConstantInt::get(Int32Ty, TypeSize, false); in getPipeElemAlign()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.h | 109 TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind K) const { in getRegisterBitWidth() 112 return TypeSize::getFixed(64); in getRegisterBitWidth() 115 return TypeSize::getFixed( in getRegisterBitWidth() 117 return TypeSize::getFixed(ST->hasNEON() ? 128 : 0); in getRegisterBitWidth() 119 return TypeSize::getScalable(ST->hasSVE() ? 128 : 0); in getRegisterBitWidth()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/ |
| H A D | AddressSanitizerCommon.h | 30 uint64_t TypeSize; variable 41 TypeSize = DL.getTypeStoreSizeInBits(OpType); in IsWrite()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXTargetTransformInfo.h | 74 TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind K) const { in getRegisterBitWidth() 75 return TypeSize::getFixed(32); in getRegisterBitWidth()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | TypePromotion.cpp | 143 unsigned TypeSize = 0; member in __anon57ec75710111::TypePromotion 205 return V->getType()->getScalarSizeInBits() == TypeSize; in EqualTypeSize() 209 return V->getType()->getScalarSizeInBits() <= TypeSize; in LessOrEqualTypeSize() 213 return V->getType()->getScalarSizeInBits() > TypeSize; in GreaterThanTypeSize() 217 return V->getType()->getScalarSizeInBits() < TypeSize; in LessThanTypeSize() 370 APInt Max = APInt::getAllOnesValue(TypePromotion::TypeSize); in isSafeWrap() 810 TypeSize = OrigTy->getPrimitiveSizeInBits().getFixedSize(); in TryToPromote() 818 << TypeSize << " bits to " << PromotedWidth << "\n"); in TryToPromote()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | MemoryLocation.h | 101 static LocationSize precise(TypeSize Value) { in precise() 115 static LocationSize upperBound(TypeSize Value) { in upperBound() 281 static uint64_t getSizeOrUnknown(const TypeSize &T) { in getSizeOrUnknown()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonTargetTransformInfo.cpp | 101 TypeSize 105 return TypeSize::getFixed(32); in getRegisterBitWidth() 107 return TypeSize::getFixed(getMinVectorRegisterBitWidth()); in getRegisterBitWidth() 109 return TypeSize::getScalable(0); in getRegisterBitWidth()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Basic/Targets/ |
| H A D | AArch64.cpp | 883 unsigned MicrosoftARM64TargetInfo::getMinGlobalAlign(uint64_t TypeSize) const { in getMinGlobalAlign() 884 unsigned Align = WindowsARM64TargetInfo::getMinGlobalAlign(TypeSize); in getMinGlobalAlign() 890 if (TypeSize >= 512) { // TypeSize >= 64 bytes in getMinGlobalAlign() 892 } else if (TypeSize >= 64) { // TypeSize >= 8 bytes in getMinGlobalAlign() 894 } else if (TypeSize >= 16) { // TypeSize >= 2 bytes in getMinGlobalAlign()
|