Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DCastSizeChecker.cpp50 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 DMallocChecker.cpp1137 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 DHWAddressSanitizer.cpp192 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 DAddressSanitizer.cpp692 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 DThreadSanitizer.cpp561 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 DSanitizerCoverage.cpp711 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 DEfficiencySanitizer.cpp850 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 DMemorySanitizer.cpp995 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 DARMCodeGenPrepare.cpp157 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 DCGOpenCLRuntime.cpp103 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 DCGClass.cpp802 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 DItaniumCXXABI.cpp1193 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 DRecordLayoutBuilder.cpp1452 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 DAMDGPUCallLowering.cpp78 unsigned TypeSize = DL.getTypeStoreSize(ParamTy); in lowerParameter() local
85 TypeSize, Align); in lowerParameter()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DInlineCost.cpp402 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 DSignals.inc672 DWORD TypeSize = sizeof(DumpType);
675 &TypeSize))
683 &TypeSize))
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp1306 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 DPatternMatch.h1719 unsigned TypeSize = V->getType()->getScalarSizeInBits();
1720 if (TypeSize == 0)
1723 unsigned ShiftWidth = TypeSize - 1;
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp841 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 DExecution.cpp971 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 DCodeGenPrepare.cpp3981 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 DSemaExpr.cpp10700 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 DSemaType.cpp2327 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 DSemaChecking.cpp8254 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 DSROA.cpp3408 uint64_t TypeSize = DL.getTypeSizeInBits(Ty); in stripAggregateTypeWrapping() local
3422 TypeSize > DL.getTypeSizeInBits(InnerTy)) in stripAggregateTypeWrapping()

12