Home
last modified time | relevance | path

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

12

/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 const MCSymbol *Sym, unsigned SizeInBytes, SMLoc Loc = SMLoc(),
/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
/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()
154 DescInfo->SizeInBytes = DescBytes; in operator new()
202 uint8_t *Storage = reinterpret_cast<uint8_t *>(DI) - DI->SizeInBytes; in operator delete()
/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64GlobalsTagging.cpp
/llvm-project/flang/include/flang/Runtime/
H A Ddescriptor.h114 static constexpr RT_API_ATTRS std::size_t SizeInBytes(int lenParameters) {
119 RT_API_ATTRS std::size_t SizeInBytes() const; in SizeInBytes() function
353 static constexpr RT_API_ATTRS std::size_t SizeInBytes( in Addendum()
358 bytes += DescriptorAddendum::SizeInBytes(lengthTypeParameters);
363 RT_API_ATTRS std::size_t SizeInBytes() const;
454 Descriptor::SizeInBytes(maxRank, hasAddendum, maxLengthTypeParameters)};
468 assert(descriptor().SizeInBytes() <= byteSize);
/llvm-project/flang/unittests/Runtime/
H A DTemporaryStack.cpp42 ASSERT_EQ(lhsAdd->SizeInBytes() == rhsAdd->SizeInBytes(), true); in descriptorAlmostEqual()
43 ASSERT_EQ(memcmp(lhsAdd, rhsAdd, lhsAdd->SizeInBytes()) == 0, true); in descriptorAlmostEqual()
247 ASSERT_EQ(memcmp(input.get(), out.get(), input->SizeInBytes()), 0); in TEST()
261 ASSERT_EQ(memcmp(input.get(), out.get(), input->SizeInBytes()), 0); in TEST()
/llvm-project/flang/runtime/
H A Ddescriptor.cpp29 std::memcpy(this, &that, that.SizeInBytes()); in operator =()
110 std::size_t bytes{SizeInBytes(rank, addendum, derivedTypeLenParameters)}; in Create()
142 RT_API_ATTRS std::size_t Descriptor::SizeInBytes() const { in SizeInBytes()
145 (addendum ? addendum->SizeInBytes() : 0); in Elements()
333 RT_API_ATTRS std::size_t DescriptorAddendum::SizeInBytes() const { in Dump()
334 return SizeInBytes(LenParameters());
139 RT_API_ATTRS std::size_t Descriptor::SizeInBytes() const { SizeInBytes() function in Fortran::runtime::Descriptor
317 RT_API_ATTRS std::size_t DescriptorAddendum::SizeInBytes() const { SizeInBytes() function in Fortran::runtime::DescriptorAddendum
H A Dassign.cpp147 const char *xDescLast{xDesc + x.SizeInBytes() - 1};
149 const char *yDescLast{yDesc + y.SizeInBytes() - 1};
266 std::memcpy(deferDeallocation, &to, to.SizeInBytes()); in Assign()
271 auto descBytes{from.SizeInBytes()}; in Assign()
412 std::size_t componentByteSize{comp.SizeInBytes(to)}; in Assign()
419 std::size_t componentByteSize{comp.SizeInBytes(to)}; in Assign()
H A Dinternal-unit.cpp38 terminator, that.SizeInBytes() <= d.SizeInBytes(maxRank, true, 0)); in InternalDescriptorUnit()
40 that.SizeInBytes() <= MaxDescriptorSizeInBytes(maxRank, true, 0)); in InternalDescriptorUnit()
H A Dtype-info.cpp82 RT_API_ATTRS std::size_t Component::SizeInBytes( in SizeInBytes()
88 return Descriptor::SizeInBytes( in SizeInBytes()
91 return Descriptor::SizeInBytes(rank_); in SizeInBytes()
81 RT_API_ATTRS std::size_t Component::SizeInBytes( SizeInBytes() function in Fortran::runtime::typeInfo::Component
H A Dfile.h114 RT_API_ATTRS std::int64_t SizeInBytes(const char *path);
H A Dfile.cpp448 std::int64_t SizeInBytes(const char *path) { in SizeInBytes() function
475 RT_API_ATTRS std::int64_t SizeInBytes(const char *path) { in SizeInBytes() function
H A Dtemporary-stack.cpp110 const std::size_t bytes = source.SizeInBytes(); in cloneDescriptor()
/llvm-project/compiler-rt/lib/profile/
H A DInstrProfiling.c44 __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);
/llvm-project/llvm/include/llvm/MC/
H A DMCExpr.h147 // Subclass data stores SizeInBytes in bits 0..7 and PrintInHex in bit 8.
152 static unsigned encodeSubclassData(bool PrintInHex, unsigned SizeInBytes) {
153 assert(SizeInBytes <= sizeof(int64_t) && "Excessive size"); in MCConstantExpr() argument
154 return SizeInBytes | (PrintInHex ? PrintInHexBit : 0); in MCConstantExpr()
157 MCConstantExpr(int64_t Value, bool PrintInHex, unsigned SizeInBytes)
159 encodeSubclassData(PrintInHex, SizeInBytes)), Value(Value) {}
167 unsigned SizeInBytes = 0);
148 encodeSubclassData(bool PrintInHex,unsigned SizeInBytes) encodeSubclassData() argument
/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp90 ParseStatus parseLiteralValues(unsigned SizeInBytes, SMLoc L);
690 ParseStatus AVRAsmParser::parseLiteralValues(unsigned SizeInBytes, SMLoc L) { in parseLiteralValues()
700 AVRStreamer.emitValueForModiferKind(Symbol, SizeInBytes, L, in parseLiteralValues()
718 AVRStreamer.emitValueForModiferKind(Symbol, SizeInBytes, L, ModifierKind); in parseLiteralValues()
729 Parser.getStreamer().emitValue(Value, SizeInBytes, L);
685 parseLiteralValues(unsigned SizeInBytes,SMLoc L) parseLiteralValues() argument
/llvm-project/llvm/include/llvm/Support/
H A DAlignment.h144 /// Checks that SizeInBytes is a multiple of the alignment.
145 inline bool isAligned(Align Lhs, uint64_t SizeInBytes) { in isAligned() argument
146 return SizeInBytes % Lhs.value() == 0; in isAligned()
/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp783 uint64_t SizeInBytes = cast<ConstantInt>(MCI->getLength())->getZExtValue(); in processLoopMemCpy()
784 if ((SizeInBytes >> 32) != 0) in processLoopMemCpy()
802 if (SizeInBytes != StoreStrideValue && SizeInBytes != -StoreStrideValue) { in processLoopMemCpy()
820 Dest, Source, SE->getConstant(Dest->getType(), SizeInBytes), in processLoopMemSet()
862 uint64_t SizeInBytes = cast<ConstantInt>(MSI->getLength())->getZExtValue(); in processLoopMemSet()
868 if (SizeInBytes != Stride && SizeInBytes != -Stride) in processLoopMemSet()
871 IsNegStride = SizeInBytes == -Stride; in processLoopMemSet()
777 uint64_t SizeInBytes = cast<ConstantInt>(MCI->getLength())->getZExtValue(); processLoopMemCpy() local
856 uint64_t SizeInBytes = cast<ConstantInt>(MSI->getLength())->getZExtValue(); processLoopMemSet() local
/llvm-project/llvm/lib/MC/
H A DMCExpr.cpp47 auto SizeInBytes = cast<MCConstantExpr>(*this).getSizeInBytes(); in print() local
51 switch (SizeInBytes) { in print()
224 unsigned SizeInBytes) { in getVariantKindName()
225 return new (Ctx) MCConstantExpr(Value, PrintInHex, SizeInBytes); in getVariantKindName()
195 create(int64_t Value,MCContext & Ctx,bool PrintInHex,unsigned SizeInBytes) create() argument
/llvm-project/llvm/include/llvm/Bitstream/
H A DBitstreamReader.h309 size_t SizeInBytes() const { return BitcodeBytes.size(); } in SizeInBytes() function
399 using SimpleBitstreamCursor::SizeInBytes;
/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()
/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp952 uint64_t getRedzoneSizeForGlobal(uint64_t SizeInBytes) const;
2553 const uint64_t SizeInBytes = DL.getTypeAllocSize(Ty); in instrumentGlobals()
2554 const uint64_t RightRedzoneSize = getRedzoneSizeForGlobal(SizeInBytes); in instrumentGlobals()
2634 ConstantInt::get(IntptrTy, SizeInBytes), in instrumentGlobals()
2635 ConstantInt::get(IntptrTy, SizeInBytes + RightRedzoneSize), in instrumentGlobals()
2687 ModuleAddressSanitizer::getRedzoneSizeForGlobal(uint64_t SizeInBytes) const { in instrumentGlobals()
2692 if (SizeInBytes <= MinRZ / 2) {
2694 // at least 32 bytes, optimize when SizeInBytes is less than or equal to in getRedzoneSizeForGlobal()
2696 RZ = MinRZ - SizeInBytes; in getRedzoneSizeForGlobal()
2698 // Calculate RZ, where MinRZ <= RZ <= MaxRZ, and RZ ~ 1/4 * SizeInBytes in getRedzoneSizeForGlobal()
2556 const uint64_t SizeInBytes = DL.getTypeAllocSize(Ty); instrumentGlobals() local
[all...]

12