Home
last modified time | relevance | path

Searched refs:SizeInBytes (Results 1 – 25 of 39) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRMCELFStreamer.cpp24 const MCSymbol *Sym, unsigned SizeInBytes, SMLoc Loc, in emitValueForModiferKind() argument
29 if (SizeInBytes == SIZE_LONG) in emitValueForModiferKind()
31 else if (SizeInBytes == SIZE_WORD) in emitValueForModiferKind()
40 SizeInBytes, Loc); in emitValueForModiferKind()
H A DAVRMCELFStreamer.h45 emitValueForModiferKind(const MCSymbol *Sym, unsigned SizeInBytes,
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_ring_buffer.h26 void *Ptr = MmapOrDie(SizeInBytes(Size), "RingBuffer"); in New()
28 uptr End = reinterpret_cast<uptr>(Ptr) + SizeInBytes(Size); in New()
33 UnmapOrDie(this, SizeInBytes(size())); in Delete()
41 static uptr SizeInBytes(uptr Size) { in SizeInBytes() function
45 uptr SizeInBytes() { return SizeInBytes(size()); } in SizeInBytes() function
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DUser.cpp96 intptr_t SizeInBytes; member
109 assert(DI->SizeInBytes != 0 && "Should not have had a descriptor otherwise!"); in getDescriptor()
112 reinterpret_cast<uint8_t *>(DI) - DI->SizeInBytes, DI->SizeInBytes); in getDescriptor()
157 DescInfo->SizeInBytes = DescBytes; in allocateFixedOperandUser()
208 uint8_t *Storage = reinterpret_cast<uint8_t *>(DI) - DI->SizeInBytes; in operator delete()
/freebsd/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfiling.c40 /* Return the number of bytes needed to add to SizeInBytes to make it
44 __llvm_profile_get_num_padding_bytes(uint64_t SizeInBytes) { in __llvm_profile_get_num_padding_bytes() argument
45 return 7 & (sizeof(uint64_t) - SizeInBytes % sizeof(uint64_t)); in __llvm_profile_get_num_padding_bytes()
H A DInstrProfiling.h98 uint8_t __llvm_profile_get_num_padding_bytes(uint64_t SizeInBytes);
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCExpr.h150 static unsigned encodeSubclassData(bool PrintInHex, unsigned SizeInBytes) { in encodeSubclassData() argument
151 assert(SizeInBytes <= sizeof(int64_t) && "Excessive size"); in encodeSubclassData()
152 return SizeInBytes | (PrintInHex ? PrintInHexBit : 0); in encodeSubclassData()
155 MCConstantExpr(int64_t Value, bool PrintInHex, unsigned SizeInBytes) in MCConstantExpr() argument
157 encodeSubclassData(PrintInHex, SizeInBytes)), Value(Value) {} in MCConstantExpr()
165 unsigned SizeInBytes = 0);
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAsanInstrumentation.cpp28 uint64_t getRedzoneSizeForGlobal(int AsanScale, uint64_t SizeInBytes) { in getRedzoneSizeForGlobal() argument
33 if (SizeInBytes <= MinRZ / 2) { in getRedzoneSizeForGlobal()
37 RZ = MinRZ - SizeInBytes; in getRedzoneSizeForGlobal()
40 RZ = std::clamp((SizeInBytes / MinRZ / 4) * MinRZ, MinRZ, kMaxRZ); in getRedzoneSizeForGlobal()
43 if (SizeInBytes % MinRZ) in getRedzoneSizeForGlobal()
44 RZ += MinRZ - (SizeInBytes % MinRZ); in getRedzoneSizeForGlobal()
47 assert((RZ + SizeInBytes) % MinRZ == 0); in getRedzoneSizeForGlobal()
H A DAMDGPUAsanInstrumentation.h41 uint64_t getRedzoneSizeForGlobal(int Scale, uint64_t SizeInBytes);
H A DAMDGPUSwLowerLDS.cpp432 const uint64_t SizeInBytes = DL.getTypeAllocSize(Ty); in populateSwMetadataGlobal() local
435 Constant *SizeInBytesConst = ConstantInt::get(Int32Ty, SizeInBytes); in populateSwMetadataGlobal()
438 AMDGPU::getRedzoneSizeForGlobal(AsanScale, SizeInBytes); in populateSwMetadataGlobal()
440 MallocSize += SizeInBytes; in populateSwMetadataGlobal()
447 alignTo(SizeInBytes + RightRedzoneSize, MaxAlignment); in populateSwMetadataGlobal()
468 const uint64_t SizeInBytes = DL.getTypeAllocSize(Ty); in populateSwMetadataGlobal() local
469 uint64_t AlignedSize = alignTo(SizeInBytes, MaxAlignment); in populateSwMetadataGlobal()
H A DSIMachineFunctionInfo.h835 void setScratchReservedForDynamicVGPRs(unsigned SizeInBytes) {
836 ScratchReservedForDynamicVGPRs = SizeInBytes;
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp91 ParseStatus parseLiteralValues(unsigned SizeInBytes, SMLoc L);
695 ParseStatus AVRAsmParser::parseLiteralValues(unsigned SizeInBytes, SMLoc L) { in parseLiteralValues() argument
705 AVRStreamer.emitValueForModiferKind(Symbol, SizeInBytes, L, in parseLiteralValues()
722 AVRStreamer.emitValueForModiferKind(Symbol, SizeInBytes, L, Spec); in parseLiteralValues()
733 Parser.getStreamer().emitValue(Value, SizeInBytes, L); in parseLiteralValues()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCExpr.cpp63 auto SizeInBytes = cast<MCConstantExpr>(*this).getSizeInBytes(); in print() local
67 switch (SizeInBytes) { in print()
214 unsigned SizeInBytes) { in create() argument
215 return new (Ctx) MCConstantExpr(Value, PrintInHex, SizeInBytes); in create()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DAlignment.h145 inline bool isAligned(Align Lhs, uint64_t SizeInBytes) { in isAligned() argument
146 return SizeInBytes % Lhs.value() == 0; in isAligned()
/freebsd/contrib/llvm-project/llvm/include/llvm/Bitstream/
H A DBitstreamReader.h310 size_t SizeInBytes() const { return BitcodeBytes.size(); } in SizeInBytes() function
400 using SimpleBitstreamCursor::SizeInBytes;
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_thread_list.h151 res += HeapAllocationsRingBuffer::SizeInBytes(sz); in MemoryUsedPerThread()
H A Dhwasan_thread.cpp66 sizeof(Thread), heap_allocations_->SizeInBytes(), in Init()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp812 uint64_t SizeInBytes = cast<ConstantInt>(MCI->getLength())->getZExtValue(); in processLoopMemCpy() local
813 if ((SizeInBytes >> 32) != 0) in processLoopMemCpy()
821 if (SizeInBytes != *StoreStrideValue && SizeInBytes != -*StoreStrideValue) { in processLoopMemCpy()
839 Dest, Source, SE->getConstant(Dest->getType(), SizeInBytes), in processLoopMemCpy()
878 uint64_t SizeInBytes = cast<ConstantInt>(MSI->getLength())->getZExtValue(); in processLoopMemSet() local
883 if (SizeInBytes != *Stride && SizeInBytes != -*Stride) in processLoopMemSet()
886 IsNegStride = SizeInBytes == -*Stride; in processLoopMemSet()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp995 uint64_t getRedzoneSizeForGlobal(uint64_t SizeInBytes) const;
2607 const uint64_t SizeInBytes = DL.getTypeAllocSize(Ty); in instrumentGlobals() local
2608 const uint64_t RightRedzoneSize = getRedzoneSizeForGlobal(SizeInBytes); in instrumentGlobals()
2688 ConstantInt::get(IntptrTy, SizeInBytes), in instrumentGlobals()
2689 ConstantInt::get(IntptrTy, SizeInBytes + RightRedzoneSize), in instrumentGlobals()
2741 ModuleAddressSanitizer::getRedzoneSizeForGlobal(uint64_t SizeInBytes) const { in getRedzoneSizeForGlobal()
2746 if (SizeInBytes <= MinRZ / 2) { in getRedzoneSizeForGlobal()
2750 RZ = MinRZ - SizeInBytes; in getRedzoneSizeForGlobal()
2753 RZ = std::clamp((SizeInBytes / MinRZ / 4) * MinRZ, MinRZ, kMaxRZ); in getRedzoneSizeForGlobal()
2756 if (SizeInBytes % MinRZ) in getRedzoneSizeForGlobal()
[all …]
H A DHWAddressSanitizer.cpp1695 uint64_t SizeInBytes = in instrumentGlobal() local
1697 uint64_t NewSize = alignTo(SizeInBytes, Mapping.getObjectAlignment()); in instrumentGlobal()
1698 if (SizeInBytes != NewSize) { in instrumentGlobal()
1701 std::vector<uint8_t> Init(NewSize - SizeInBytes, 0); in instrumentGlobal()
1734 for (uint64_t DescriptorPos = 0; DescriptorPos < SizeInBytes; in instrumentGlobal()
1746 uint32_t Size = std::min(SizeInBytes - DescriptorPos, MaxDescriptorSize); in instrumentGlobal()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp1958 translatePtrToMemberRep(unsigned SizeInBytes, bool IsPMF, unsigned Flags) { in translatePtrToMemberRep() argument
1965 return SizeInBytes == 0 ? PointerToMemberRepresentation::Unknown in translatePtrToMemberRep()
1977 return SizeInBytes == 0 ? PointerToMemberRepresentation::Unknown in translatePtrToMemberRep()
2003 uint8_t SizeInBytes = Ty->getSizeInBits() / 8; in lowerTypeMemberPointer() local
2005 ClassTI, translatePtrToMemberRep(SizeInBytes, IsPMF, Ty->getFlags())); in lowerTypeMemberPointer()
2006 PointerRecord PR(PointeeTI, PK, PM, PO, SizeInBytes, MPI); in lowerTypeMemberPointer()
2497 uint64_t SizeInBytes = Ty->getSizeInBits() / 8; in lowerCompleteTypeClass() local
2500 SizeInBytes, FullName, Ty->getIdentifier()); in lowerCompleteTypeClass()
2536 uint64_t SizeInBytes = Ty->getSizeInBits() / 8; in lowerCompleteTypeUnion() local
2539 UnionRecord UR(FieldCount, CO, FieldTI, SizeInBytes, FullName, in lowerCompleteTypeUnion()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProfReader.h464 inline uint8_t getNumPaddingBytes(uint64_t SizeInBytes) { in getNumPaddingBytes() argument
465 return 7 & (sizeof(uint64_t) - SizeInBytes % sizeof(uint64_t)); in getNumPaddingBytes()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DAssignmentTrackingAnalysis.cpp2494 uint64_t SizeInBytes = divideCeil(SizeInBits, 8); in removeRedundantDbgLocsUsingBackwardScan() local
2499 if (SizeInBytes == 0 || SizeInBytes > MaxSizeBytes) { in removeRedundantDbgLocsUsingBackwardScan()
2512 VariableDefinedBytes.try_emplace(Aggr, BitVector(SizeInBytes)); in removeRedundantDbgLocsUsingBackwardScan()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64Arm64ECCallLowering.cpp308 auto bitcast = [this](Type *Arm64Ty, uint64_t SizeInBytes) { in canonicalizeThunkType() argument
310 llvm::Type::getIntNTy(M->getContext(), SizeInBytes * 8), in canonicalizeThunkType()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp426 unsigned SizeInBytes) const;
433 MachineOperand &Offset, unsigned SizeInBytes,
437 unsigned SizeInBytes) const;
444 unsigned SizeInBytes) const;
7244 unsigned SizeInBytes, bool WantsExt) const { in selectExtendedSHL() argument
7266 int64_t LegalShiftVal = Log2_32(SizeInBytes); in selectExtendedSHL()
7357 MachineOperand &Root, unsigned SizeInBytes) const { in selectAddrModeShiftedExtendXReg()
7384 OffsetInst->getOperand(0), SizeInBytes, in selectAddrModeShiftedExtendXReg()
7431 unsigned SizeInBytes) const { in selectAddrModeXRO()
7456 unsigned Scale = Log2_32(SizeInBytes); in selectAddrModeXRO()
[all …]

12