Home
last modified time | relevance | path

Searched refs:NumBytes (Results 1 – 25 of 154) sorted by relevance

1234567

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DBLAKE3.h34 template <size_t NumBytes = LLVM_BLAKE3_OUT_LEN>
35 using BLAKE3Result = std::array<uint8_t, NumBytes>;
58 template <size_t NumBytes = LLVM_BLAKE3_OUT_LEN>
59 void final(BLAKE3Result<NumBytes> &Result) { in final()
67 BLAKE3Result<NumBytes> final() { in final()
68 BLAKE3Result<NumBytes> Result; in final()
80 BLAKE3Result<NumBytes> result() { in result()
81 return final<NumBytes>(); in result()
89 return Hasher.final<NumBytes>(); in hash()
111 BLAKE3Result<NumBytes> final() { return BLAKE3::final<NumBytes>(); } in final()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVEFrameLowering.cpp234 if (NumBytes == 0) { in emitSPAdjustment()
236 } else if (isInt<7>(NumBytes)) { in emitSPAdjustment()
240 .addImm(NumBytes); in emitSPAdjustment()
241 } else if (isInt<32>(NumBytes)) { in emitSPAdjustment()
246 .addImm(Lo_32(NumBytes)); in emitSPAdjustment()
256 .addImm(Lo_32(NumBytes)); in emitSPAdjustment()
263 .addImm(Hi_32(NumBytes)); in emitSPAdjustment()
337 NumBytes = STI.getAdjustedFrameSize(NumBytes); in emitPrologue()
342 NumBytes = alignTo(NumBytes, MFI.getMaxAlign()); in emitPrologue()
345 MFI.setStackSize(NumBytes); in emitPrologue()
[all …]
H A DVEFrameLowering.h32 MachineBasicBlock::iterator MBBI, uint64_t NumBytes,
35 MachineBasicBlock::iterator MBBI, uint64_t NumBytes,
78 MachineBasicBlock::iterator MBBI, int64_t NumBytes,
/freebsd/contrib/llvm-project/clang/lib/Rewrite/
H A DRewriteRope.cpp371 NumBytes -= CoverBytes; in erase()
376 if (NumBytes == 0) return; in erase()
381 Pieces[StartPiece].StartOffs += NumBytes; in erase()
384 Size -= NumBytes; in erase()
574 Size -= NumBytes; in erase()
583 while (NumBytes) { in erase()
589 CurChild->erase(Offset, NumBytes); in erase()
598 NumBytes -= BytesFromChild; in erase()
607 NumBytes -= CurChild->size(); in erase()
659 return Leaf->erase(Offset, NumBytes); in erase()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcFrameLowering.cpp51 if (NumBytes >= -4096 && NumBytes < 4096) { in emitSPAdjustment()
53 .addReg(SP::O6).addImm(NumBytes); in emitSPAdjustment()
59 if (NumBytes >= 0) { in emitSPAdjustment()
65 .addImm(HI22(NumBytes)); in emitSPAdjustment()
78 .addImm(HIX22(NumBytes)); in emitSPAdjustment()
108 int NumBytes = (int) MFI.getStackSize(); in emitPrologue() local
113 if (NumBytes == 0) in emitPrologue()
140 NumBytes = Subtarget.getAdjustedFrameSize(NumBytes); in emitPrologue()
144 NumBytes = alignTo(NumBytes, MFI.getMaxAlign()); in emitPrologue()
147 MFI.setStackSize(NumBytes); in emitPrologue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DThumbRegisterInfo.cpp135 NumBytes <= 1020 && (NumBytes % 4) == 0) { in emitThumbRegPlusImmInReg()
138 .addImm(NumBytes / 4) in emitThumbRegPlusImmInReg()
153 NumBytes = -NumBytes; in emitThumbRegPlusImmInReg()
161 if (NumBytes <= 255 && NumBytes >= 0 && CanChangeCC) { in emitThumbRegPlusImmInReg()
164 .addImm(NumBytes) in emitThumbRegPlusImmInReg()
166 } else if (NumBytes < 0 && NumBytes >= -255 && CanChangeCC) { in emitThumbRegPlusImmInReg()
169 .addImm(NumBytes) in emitThumbRegPlusImmInReg()
178 .addImm(NumBytes) in emitThumbRegPlusImmInReg()
217 .addImm(NumBytes) in emitThumbRegPlusImmInReg()
227 .addImm(NumBytes) in emitThumbRegPlusImmInReg()
[all …]
H A DThumb1FrameLowering.cpp73 if (std::abs(NumBytes) > 508 * 3) { in emitPrologueEpilogueSPUpdate()
174 NumBytes = (NumBytes + 3) & ~3; in emitPrologue()
175 MFI.setStackSize(NumBytes); in emitPrologue()
297 NumBytes = DPRCSOffset; in emitPrologue()
304 adjustedGPRCS1Size += NumBytes; in emitPrologue()
305 NumBytes = 0; in emitPrologue()
344 if (NumBytes > 508) in emitPrologue()
416 if (NumBytes) { in emitPrologue()
433 CFAOffset += NumBytes; in emitPrologue()
553 NumBytes = AFI->getFramePtrSpillOffset() - NumBytes; in emitEpilogue()
[all …]
H A DThumb2InstrInfo.cpp303 bool isSub = NumBytes < 0; in emitT2RegPlusImmediate()
304 if (isSub) NumBytes = -NumBytes; in emitT2RegPlusImmediate()
309 NumBytes >= 4096 && in emitT2RegPlusImmediate()
312 if (NumBytes < 65536) { in emitT2RegPlusImmediate()
315 .addImm(NumBytes) in emitT2RegPlusImmediate()
322 .addImm(NumBytes >> 16) in emitT2RegPlusImmediate()
352 while (NumBytes) { in emitT2RegPlusImmediate()
353 unsigned ThisVal = NumBytes; in emitT2RegPlusImmediate()
389 NumBytes = 0; in emitT2RegPlusImmediate()
395 NumBytes = 0; in emitT2RegPlusImmediate()
[all …]
H A DARMFrameLowering.cpp747 unsigned NumBytes = MFI.getStackSize(); in emitPrologue() local
774 if (NumBytes != 0) { in emitPrologue()
964 NumBytes = DPRCSOffset; in emitPrologue()
976 uint32_t NumWords = NumBytes >> 2; in emitPrologue()
1032 .addImm(NumBytes) in emitPrologue()
1037 NumBytes = 0; in emitPrologue()
1040 if (NumBytes) { in emitPrologue()
1332 NumBytes -= (ReservedArgStack + in emitEpilogue()
1342 NumBytes = AFI->getFramePtrSpillOffset() - NumBytes; in emitEpilogue()
1343 if (NumBytes) { in emitEpilogue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DDXContainer.cpp380 size_t NumBytes = NumDwords * sizeof(uint32_t); in parse() local
382 Current += NumBytes; in parse()
387 size_t NumBytes = NumDwords * sizeof(uint32_t); in parse() local
389 Current += NumBytes; in parse()
398 size_t NumBytes = NumDwords * sizeof(uint32_t); in parse() local
400 Current += NumBytes; in parse()
408 size_t NumBytes = NumDwords * sizeof(uint32_t); in parse() local
409 InputPatchMap.Data = Data.substr(Current - Data.begin(), NumBytes); in parse()
410 Current += NumBytes; in parse()
418 size_t NumBytes = NumDwords * sizeof(uint32_t); in parse() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DFormattedStream.cpp76 unsigned NumBytes; in UpdatePosition() local
77 for (const char *End = Ptr + Size; Ptr < End; Ptr += NumBytes) { in UpdatePosition()
78 NumBytes = getNumBytesForUTF8(*Ptr); in UpdatePosition()
85 if ((unsigned)(End - Ptr) < NumBytes) { in UpdatePosition()
90 ProcessUTF8CodePoint(StringRef(Ptr, NumBytes)); in UpdatePosition()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kFrameLowering.cpp340 bool IsSub = NumBytes < 0; in emitSPUpdate()
341 uint64_t Offset = IsSub ? -NumBytes : NumBytes; in emitSPUpdate()
527 uint64_t NumBytes = 0; in emitPrologue() local
542 NumBytes = alignTo(NumBytes, MaxAlign); in emitPrologue()
547 MFI.setOffsetAdjustment(-NumBytes); in emitPrologue()
551 .addImm(-NumBytes) in emitPrologue()
645 if (!HasFP && NumBytes) { in emitPrologue()
689 uint64_t NumBytes = 0; in emitEpilogue() local
694 NumBytes = FrameSize - CSSize; in emitEpilogue()
702 NumBytes = StackSize - CSSize; in emitEpilogue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOAArch64.h37 unsigned NumBytes = 1 << RE.Size; in decodeAddend() local
53 if (NumBytes != 4 && NumBytes != 8) { in decodeAddend()
70 assert(NumBytes == 4 && "Invalid relocation size."); in decodeAddend()
82 if (NumBytes == 4) in decodeAddend()
155 void encodeAddend(uint8_t *LocalAddress, unsigned NumBytes, in encodeAddend() argument
163 assert((NumBytes == 4 || NumBytes == 8) && "Invalid relocation size."); in encodeAddend()
170 assert(NumBytes == 4 && "Invalid relocation size."); in encodeAddend()
182 if (NumBytes == 4) in encodeAddend()
491 unsigned NumBytes = 1 << Size; in processSubtractRelocation() local
500 SignExtend64(readBytesUnaligned(LocalAddress, NumBytes), NumBytes * 8); in processSubtractRelocation()
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430FrameLowering.cpp99 uint64_t NumBytes = 0; in emitPrologue() local
103 NumBytes = FrameSize - MSP430FI->getCalleeSavedFrameSize(); in emitPrologue()
108 MFI.setOffsetAdjustment(-NumBytes); in emitPrologue()
165 if (NumBytes) { // adjust stack pointer: SP -= numbytes in emitPrologue()
173 if (NumBytes) { in emitPrologue()
177 .addImm(NumBytes) in emitPrologue()
215 uint64_t NumBytes = 0; in emitEpilogue() local
221 NumBytes = FrameSize - CSSize; in emitEpilogue()
240 NumBytes = StackSize - CSSize; in emitEpilogue()
277 if (NumBytes) { in emitEpilogue()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Rewrite/Core/
H A DRewriteRope.h161 void erase(unsigned Offset, unsigned NumBytes);
211 void erase(unsigned Offset, unsigned NumBytes) { in erase() argument
212 assert(Offset+NumBytes <= size() && "Invalid region to erase!"); in erase()
213 if (NumBytes == 0) return; in erase()
214 Chunks.erase(Offset, NumBytes); in erase()
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/
H A Dsimple_packed_serialization_test.cpp20 constexpr unsigned NumBytes = 8; in TEST() local
21 char Buffer[NumBytes]; in TEST()
23 SPSOutputBuffer OB(Buffer, NumBytes); in TEST()
26 for (unsigned I = 0; I != NumBytes; ++I) { in TEST()
35 for (unsigned I = 0; I != NumBytes; ++I) in TEST()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/
H A DVEAsmBackend.cpp205 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup() local
207 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup()
211 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
213 Endian == llvm::endianness::little ? i : (NumBytes - 1) - i; in applyFixup()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyAsmBackend.cpp104 unsigned NumBytes = alignTo(Info.TargetSize, 8) / 8; in applyFixup() local
112 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup()
116 for (unsigned I = 0; I != NumBytes; ++I) in applyFixup()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DMemoryMapper.cpp40 void InProcessMemoryMapper::reserve(size_t NumBytes, in reserve() argument
44 NumBytes, nullptr, sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC); in reserve()
216 void SharedMemoryMapper::reserve(size_t NumBytes, in reserve() argument
223 [this, NumBytes, OnReserved = std::move(OnReserved)]( in reserve()
251 LocalAddr = mmap(nullptr, NumBytes, PROT_READ | PROT_WRITE, MAP_SHARED, in reserve()
281 Reservations.insert({RemoteAddr, {LocalAddr, NumBytes}}); in reserve()
284 OnReserved(ExecutorAddrRange(RemoteAddr, NumBytes)); in reserve()
286 SAs.Instance, static_cast<uint64_t>(NumBytes)); in reserve()
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/tests/
H A Drawprofile.cpp68 uint64_t NumBytes = SerializeToRawProfile(FakeMap, Modules, Ptr); in TEST() local
71 ASSERT_GT(NumBytes, 0ULL); in TEST()
83 EXPECT_EQ(TotalSize, NumBytes); in TEST()
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/MCTargetDesc/
H A DLanaiAsmBackend.cpp101 unsigned NumBytes = (getFixupKindInfo(Kind).TargetSize + 7) / 8; in applyFixup() local
108 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
119 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/MCTargetDesc/
H A DMSP430AsmBackend.cpp140 unsigned NumBytes = alignTo(Info.TargetSize + Info.TargetOffset, 8) / 8; in applyFixup() local
142 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup()
146 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DGOFFEmitter.cpp53 size_t NumBytes; member
57 OS.write_zeros(Z.NumBytes); in operator <<()
61 ZerosImpl zeros(const size_t NumBytes) { return ZerosImpl{NumBytes}; } in zeros() argument
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DMemoryMapper.h50 virtual void reserve(size_t NumBytes, OnReservedFunction OnReserved) = 0;
90 void reserve(size_t NumBytes, OnReservedFunction OnReserved) override;
142 void reserve(size_t NumBytes, OnReservedFunction OnReserved) override;
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYAsmBackend.cpp220 unsigned NumBytes = alignTo(Info.TargetSize + Info.TargetOffset, 8) / 8; in applyFixup() local
222 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup()
229 if (IsLittleEndian && IsInstFixup && (NumBytes == 4)) { in applyFixup()
235 for (unsigned I = 0; I != NumBytes; I++) { in applyFixup()
236 unsigned Idx = IsLittleEndian ? I : (NumBytes - 1 - I); in applyFixup()

1234567