Lines Matching defs:SizeInBytes
952 uint64_t getRedzoneSizeForGlobal(uint64_t SizeInBytes) const;
2553 const uint64_t SizeInBytes = DL.getTypeAllocSize(Ty);
2554 const uint64_t RightRedzoneSize = getRedzoneSizeForGlobal(SizeInBytes);
2634 ConstantInt::get(IntptrTy, SizeInBytes),
2635 ConstantInt::get(IntptrTy, SizeInBytes + RightRedzoneSize),
2687 ModuleAddressSanitizer::getRedzoneSizeForGlobal(uint64_t SizeInBytes) const {
2692 if (SizeInBytes <= MinRZ / 2) {
2694 // at least 32 bytes, optimize when SizeInBytes is less than or equal to
2696 RZ = MinRZ - SizeInBytes;
2698 // Calculate RZ, where MinRZ <= RZ <= MaxRZ, and RZ ~ 1/4 * SizeInBytes.
2699 RZ = std::clamp((SizeInBytes / MinRZ / 4) * MinRZ, MinRZ, kMaxRZ);
2702 if (SizeInBytes % MinRZ)
2703 RZ += MinRZ - (SizeInBytes % MinRZ);
2706 assert((RZ + SizeInBytes) % MinRZ == 0);