| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CastSizeChecker.cpp | 50 CharUnits TypeSize, QualType ToPointeeTy) { in evenFlexibleArraySize() argument 68 if (ArrayTy->getSize() == 1 && TypeSize > FlexSize) in evenFlexibleArraySize() 69 TypeSize -= FlexSize; in evenFlexibleArraySize() 81 CharUnits Left = RegionSize - TypeSize; in evenFlexibleArraySize()
|
| H A D | MallocChecker.cpp | 1137 CharUnits TypeSize = AstContext.getTypeSizeInChars(ElementType); in addExtentSize() local 1144 svalBuilder.makeArrayIndex(TypeSize.getQuantity()), in addExtentSize()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/ |
| H A D | HWAddressSanitizer.cpp | 192 uint64_t *TypeSize, unsigned *Alignment, 423 uint64_t *TypeSize, in isInterestingMemoryAccess() argument 438 *TypeSize = DL.getTypeStoreSizeInBits(LI->getType()); in isInterestingMemoryAccess() 492 static size_t TypeSizeToSizeIndex(uint32_t TypeSize) { in TypeSizeToSizeIndex() argument 493 size_t Res = countTrailingZeros(TypeSize / 8); in TypeSizeToSizeIndex() 595 uint64_t TypeSize = 0; in instrumentMemAccess() local 614 if (isPowerOf2_64(TypeSize) && in instrumentMemAccess() 615 (TypeSize / 8 <= (1UL << (kNumberOfAccessSizes - 1))) && in instrumentMemAccess() 617 Alignment >= TypeSize / 8)) { in instrumentMemAccess() 618 size_t AccessSizeIndex = TypeSizeToSizeIndex(TypeSize); in instrumentMemAccess() [all …]
|
| H A D | AddressSanitizer.cpp | 692 uint64_t TypeSize) const; 1115 size_t Res = countTrailingZeros(TypeSize / 8); in TypeSizeToSizeIndex() 1271 *TypeSize = DL.getTypeStoreSizeInBits(Ty); in isInterestingMemoryAccess() 1354 if ((TypeSize == 8 || TypeSize == 16 || TypeSize == 32 || TypeSize == 64 || in doInstrumentAddress() 1355 TypeSize == 128) && in doInstrumentAddress() 1407 uint64_t TypeSize = 0; in instrumentMop() local 1431 isSafeAccess(ObjSizeVis, Addr, TypeSize)) { in instrumentMop() 1440 isSafeAccess(ObjSizeVis, Addr, TypeSize)) { in instrumentMop() 1501 if (TypeSize / 8 > 1) in createSlowPathCmp() 2534 uint64_t TypeSize; in runOnFunction() local [all …]
|
| H A D | ThreadSanitizer.cpp | 561 const uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in instrumentLoadOrStore() local 563 if (Alignment == 0 || Alignment >= 8 || (Alignment % (TypeSize / 8)) == 0) in instrumentLoadOrStore() 722 uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in getMemoryAccessFuncIndex() local 723 if (TypeSize != 8 && TypeSize != 16 && in getMemoryAccessFuncIndex() 724 TypeSize != 32 && TypeSize != 64 && TypeSize != 128) { in getMemoryAccessFuncIndex() 729 size_t Idx = countTrailingZeros(TypeSize / 8); in getMemoryAccessFuncIndex()
|
| H A D | SanitizerCoverage.cpp | 711 uint64_t TypeSize = DL->getTypeStoreSizeInBits(A1->getType()); in InjectTraceForDiv() local 712 int CallbackIdx = TypeSize == 32 ? 0 : in InjectTraceForDiv() 713 TypeSize == 64 ? 1 : -1; in InjectTraceForDiv() 715 auto Ty = Type::getIntNTy(*C, TypeSize); in InjectTraceForDiv() 741 uint64_t TypeSize = DL->getTypeStoreSizeInBits(A0->getType()); in InjectTraceForCmp() local 742 int CallbackIdx = TypeSize == 8 ? 0 : in InjectTraceForCmp() 743 TypeSize == 16 ? 1 : in InjectTraceForCmp() 744 TypeSize == 32 ? 2 : in InjectTraceForCmp() 745 TypeSize == 64 ? 3 : -1; in InjectTraceForCmp() 760 auto Ty = Type::getIntNTy(*C, TypeSize); in InjectTraceForCmp()
|
| H A D | EfficiencySanitizer.cpp | 850 const uint32_t TypeSize = DL.getTypeStoreSizeInBits(OrigTy); in instrumentFastpathWorkingSet() local 856 assert(TypeSize <= 128); in instrumentFastpathWorkingSet() 857 if (!(TypeSize == 8 || in instrumentFastpathWorkingSet() 858 (Alignment % (TypeSize / 8)) == 0)) { in instrumentFastpathWorkingSet()
|
| H A D | MemorySanitizer.cpp | 995 static unsigned TypeSizeToSizeIndex(unsigned TypeSize) { in TypeSizeToSizeIndex() argument 996 if (TypeSize <= 8) return 0; in TypeSizeToSizeIndex() 997 return Log2_32_Ceil((TypeSize + 7) / 8); in TypeSizeToSizeIndex() 1334 uint32_t TypeSize = DL.getTypeSizeInBits(OrigTy); in getShadowTy() local 1335 return IntegerType::get(*MS.C, TypeSize); in getShadowTy() 3392 uint64_t TypeSize = DL.getTypeAllocSize(I.getAllocatedType()); in visitAllocaInst() local 3393 Value *Len = ConstantInt::get(MS.IntptrTy, TypeSize); in visitAllocaInst()
|
| /freebsd-12.1/contrib/llvm/lib/Target/ARM/ |
| H A D | ARMCodeGenPrepare.cpp | 157 static unsigned TypeSize; member in __anon96a67c9e0111::ARMCodeGenPrepare 193 return V->getType()->getScalarSizeInBits() > ARMCodeGenPrepare::TypeSize; in GreaterThanTypeSize() 197 return V->getType()->getScalarSizeInBits() < ARMCodeGenPrepare::TypeSize; in LessThanTypeSize() 376 APInt Max = APInt::getAllOnesValue(ARMCodeGenPrepare::TypeSize); in isSafeOverflow() 431 return ARMCodeGenPrepare::TypeSize == 16 ? Intrinsic::arm_uadd16 : in getNarrowIntrinsic() 434 return ARMCodeGenPrepare::TypeSize == 16 ? Intrinsic::arm_usub16 : in getNarrowIntrinsic() 755 << ARMCodeGenPrepare::TypeSize << " to 32-bits\n"); in Mutate() 909 TypeSize = OrigTy->getPrimitiveSizeInBits(); in TryToPromote() 910 if (TypeSize > 16 || TypeSize < 8) in TryToPromote() 919 << TypeSize << "\n"); in TryToPromote() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/ |
| H A D | CGOpenCLRuntime.cpp | 103 unsigned TypeSize = CGM.getContext() in getPipeElemSize() local 106 return llvm::ConstantInt::get(Int32Ty, TypeSize, false); in getPipeElemSize() 113 unsigned TypeSize = CGM.getContext() in getPipeElemAlign() local 116 return llvm::ConstantInt::get(Int32Ty, TypeSize, false); in getPipeElemAlign()
|
| H A D | CGClass.cpp | 802 uint64_t TypeSize = Info.getNonVirtualSize().getQuantity(); in EmitAsanPrologueOrEpilogue() local 807 uint64_t NextField = i == SSV.size() - 1 ? TypeSize : SSV[i + 1].Offset; in EmitAsanPrologueOrEpilogue()
|
| H A D | ItaniumCXXABI.cpp | 1193 uint64_t TypeSize = getContext().getTypeSizeInChars(ThrowType).getQuantity(); in emitThrow() local 1197 AllocExceptionFn, llvm::ConstantInt::get(SizeTy, TypeSize), "exception"); in emitThrow()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/AST/ |
| H A D | RecordLayoutBuilder.cpp | 1452 uint64_t TypeSize = FieldInfo.Width; in LayoutBitField() local 1515 FieldAlign = TypeSize; in LayoutBitField() 1520 if (LastBitfieldTypeSize != TypeSize || in LayoutBitField() 1533 if (FieldSize > TypeSize) { in LayoutBitField() 1689 setDataSize(FieldOffset + TypeSize); in LayoutBitField() 1690 UnfilledBitsInLastUnit = TypeSize; in LayoutBitField() 1693 LastBitfieldTypeSize = TypeSize; in LayoutBitField() 1769 if (!llvm::isPowerOf2_64(TypeSize.getQuantity())) { in LayoutField() 1794 if (TypeSize > FieldAlign && in LayoutField() 1795 llvm::isPowerOf2_64(TypeSize.getQuantity())) in LayoutField() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCallLowering.cpp | 78 unsigned TypeSize = DL.getTypeStoreSize(ParamTy); in lowerParameter() local 85 TypeSize, Align); in lowerParameter()
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | InlineCost.cpp | 402 APInt TypeSize(IntPtrWidth, DL.getTypeAllocSize(GTI.getIndexedType())); in accumulateGEPOffset() local 403 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize; in accumulateGEPOffset() 1963 unsigned TypeSize = DL.getTypeSizeInBits(PTy->getElementType()); in getCallsiteCost() local 1967 unsigned NumStores = (TypeSize + PointerSize - 1) / PointerSize; in getCallsiteCost()
|
| /freebsd-12.1/contrib/llvm/lib/Support/Windows/ |
| H A D | Signals.inc | 672 DWORD TypeSize = sizeof(DumpType); 675 &TypeSize)) 683 &TypeSize))
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/IPO/ |
| H A D | GlobalOpt.cpp | 1306 unsigned TypeSize = DL.getTypeAllocSize(FieldTy); in PerformHeapAllocSRoA() local 1308 TypeSize = DL.getStructLayout(ST)->getSizeInBytes(); in PerformHeapAllocSRoA() 1311 ConstantInt::get(IntPtrTy, TypeSize), in PerformHeapAllocSRoA() 1534 unsigned TypeSize = DL.getStructLayout(AllocSTy)->getSizeInBytes(); in tryToOptimizeStoreOfMallocToGlobal() local 1535 Value *AllocSize = ConstantInt::get(IntPtrTy, TypeSize); in tryToOptimizeStoreOfMallocToGlobal()
|
| /freebsd-12.1/contrib/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 1719 unsigned TypeSize = V->getType()->getScalarSizeInBits(); 1720 if (TypeSize == 0) 1723 unsigned ShiftWidth = TypeSize - 1;
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 841 uint64_t TypeSize = DL.getTypeAllocSize(AI->getAllocatedType()); in isObjectSizeLessThanOrEq() local 844 if ((CS->getValue().zextOrSelf(128)*APInt(128, TypeSize)).ugt(MaxSize)) in isObjectSizeLessThanOrEq()
|
| /freebsd-12.1/contrib/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | Execution.cpp | 971 unsigned TypeSize = (size_t)getDataLayout().getTypeAllocSize(Ty); in visitAllocaInst() local 974 unsigned MemToAlloc = std::max(1U, NumElements * TypeSize); in visitAllocaInst() 979 LLVM_DEBUG(dbgs() << "Allocated Type: " << *Ty << " (" << TypeSize in visitAllocaInst()
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 3981 uint64_t TypeSize = DL.getTypeAllocSize(GTI.getIndexedType()); in matchOperationAddr() local 3985 ConstantOffset += CVal.getSExtValue() * TypeSize; in matchOperationAddr() 3989 if (TypeSize) { // Scales of zero don't do anything. in matchOperationAddr() 3996 VariableScale = TypeSize; in matchOperationAddr()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/ |
| H A D | SemaExpr.cpp | 10700 unsigned TypeSize = Context.getTypeSize(VTy->getElementType()); in GetSignedVectorType() local 10703 if (TypeSize == Context.getTypeSize(Context.CharTy)) in GetSignedVectorType() 10705 else if (TypeSize == Context.getTypeSize(Context.ShortTy)) in GetSignedVectorType() 10707 else if (TypeSize == Context.getTypeSize(Context.IntTy)) in GetSignedVectorType() 10709 else if (TypeSize == Context.getTypeSize(Context.LongTy)) in GetSignedVectorType() 10711 assert(TypeSize == Context.getTypeSize(Context.LongLongTy) && in GetSignedVectorType() 10716 if (TypeSize == Context.getTypeSize(Context.LongLongTy)) in GetSignedVectorType() 10719 else if (TypeSize == Context.getTypeSize(Context.LongTy)) in GetSignedVectorType() 10722 else if (TypeSize == Context.getTypeSize(Context.IntTy)) in GetSignedVectorType() 10725 else if (TypeSize == Context.getTypeSize(Context.ShortTy)) in GetSignedVectorType() [all …]
|
| H A D | SemaType.cpp | 2327 unsigned TypeSize = static_cast<unsigned>(Context.getTypeSize(CurType)); in BuildVectorType() local 2335 if (VectorSize % TypeSize) { in BuildVectorType() 2341 if (VectorType::isVectorSizeTooLarge(VectorSize / TypeSize)) { in BuildVectorType() 2347 return Context.getVectorType(CurType, VectorSize / TypeSize, in BuildVectorType()
|
| H A D | SemaChecking.cpp | 8254 size_t TypeSize = T->getSize().getZExtValue(); in CheckFormatString() local 8255 size_t StrLen = std::min(std::max(TypeSize, size_t(1)) - 1, StrRef.size()); in CheckFormatString() 8260 if (TypeSize <= StrRef.size() && in CheckFormatString() 8261 StrRef.substr(0, TypeSize).find('\0') == StringRef::npos) { in CheckFormatString() 8312 size_t TypeSize = T->getSize().getZExtValue(); in FormatStringHasSArg() local 8313 size_t StrLen = std::min(std::max(TypeSize, size_t(1)) - 1, StrRef.size()); in FormatStringHasSArg()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/ |
| H A D | SROA.cpp | 3408 uint64_t TypeSize = DL.getTypeSizeInBits(Ty); in stripAggregateTypeWrapping() local 3422 TypeSize > DL.getTypeSizeInBits(InnerTy)) in stripAggregateTypeWrapping()
|