| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | BLAKE3.h | 34 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 …]
|
| /llvm-project-15.0.7/llvm/unittests/MC/ |
| H A D | Disassembler.cpp | 38 unsigned NumBytes = sizeof(Bytes); in TEST() local 45 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString, in TEST() 51 NumBytes -= InstSize; in TEST() 53 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString, in TEST() 59 NumBytes -= InstSize; in TEST() 61 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString, in TEST() 84 unsigned NumBytes = sizeof(Bytes); in TEST() local 87 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString, in TEST() 93 NumBytes -= InstSize; in TEST() 95 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString, in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/VE/ |
| H A D | VEFrameLowering.cpp | 234 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 D | VEFrameLowering.h | 32 MachineBasicBlock::iterator MBBI, uint64_t NumBytes, 35 MachineBasicBlock::iterator MBBI, uint64_t NumBytes, 78 MachineBasicBlock::iterator MBBI, int64_t NumBytes,
|
| /llvm-project-15.0.7/clang/lib/Rewrite/ |
| H A D | RewriteRope.cpp | 371 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 …]
|
| /llvm-project-15.0.7/llvm/lib/Target/Sparc/ |
| H A D | SparcFrameLowering.cpp | 51 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 …]
|
| /llvm-project-15.0.7/llvm/lib/Target/MSP430/ |
| H A D | MSP430FrameLowering.cpp | 54 uint64_t NumBytes = 0; in emitPrologue() local 58 NumBytes = FrameSize - MSP430FI->getCalleeSavedFrameSize(); in emitPrologue() 63 MFI.setOffsetAdjustment(-NumBytes); in emitPrologue() 87 if (NumBytes) { // adjust stack pointer: SP -= numbytes in emitPrologue() 95 if (NumBytes) { in emitPrologue() 98 .addReg(MSP430::SP).addImm(NumBytes); in emitPrologue() 126 uint64_t NumBytes = 0; in emitEpilogue() local 131 NumBytes = FrameSize - CSSize; in emitEpilogue() 136 NumBytes = StackSize - CSSize; in emitEpilogue() 167 if (NumBytes) { in emitEpilogue() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | Thumb1FrameLowering.cpp | 74 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() 541 NumBytes = AFI->getFramePtrSpillOffset() - NumBytes; in emitEpilogue() [all …]
|
| H A D | ThumbRegisterInfo.cpp | 137 if (NumBytes < 0 && !isHigh && CanChangeCC) { in emitThumbRegPlusImmInReg() 139 NumBytes = -NumBytes; in emitThumbRegPlusImmInReg() 147 if (NumBytes <= 255 && NumBytes >= 0 && CanChangeCC) { in emitThumbRegPlusImmInReg() 150 .addImm(NumBytes) in emitThumbRegPlusImmInReg() 152 } else if (NumBytes < 0 && NumBytes >= -255 && CanChangeCC) { in emitThumbRegPlusImmInReg() 155 .addImm(NumBytes) in emitThumbRegPlusImmInReg() 163 .addImm(NumBytes).setMIFlags(MIFlags); in emitThumbRegPlusImmInReg() 192 bool isSub = NumBytes < 0; in emitThumbRegPlusImmediate() 193 unsigned Bytes = (unsigned)NumBytes; in emitThumbRegPlusImmediate() 194 if (isSub) Bytes = -NumBytes; in emitThumbRegPlusImmediate() [all …]
|
| H A D | Thumb2InstrInfo.cpp | 301 bool isSub = NumBytes < 0; in emitT2RegPlusImmediate() 302 if (isSub) NumBytes = -NumBytes; in emitT2RegPlusImmediate() 307 NumBytes >= 4096 && in emitT2RegPlusImmediate() 310 if (NumBytes < 65536) { in emitT2RegPlusImmediate() 313 .addImm(NumBytes) in emitT2RegPlusImmediate() 320 .addImm(NumBytes >> 16) in emitT2RegPlusImmediate() 350 while (NumBytes) { in emitT2RegPlusImmediate() 351 unsigned ThisVal = NumBytes; in emitT2RegPlusImmediate() 387 NumBytes = 0; in emitT2RegPlusImmediate() 393 NumBytes = 0; in emitT2RegPlusImmediate() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | FormattedStream.cpp | 76 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()
|
| /llvm-project-15.0.7/llvm/lib/Target/M68k/ |
| H A D | M68kFrameLowering.cpp | 340 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() 649 if (!HasFP && NumBytes) { in emitPrologue() 693 uint64_t NumBytes = 0; in emitEpilogue() local 698 NumBytes = FrameSize - CSSize; in emitEpilogue() 709 NumBytes = StackSize - CSSize; in emitEpilogue() 730 if (NumBytes || MFI.hasVarSizedObjects()) in emitEpilogue() [all …]
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| H A D | RuntimeDyldMachOAArch64.h | 37 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()
|
| /llvm-project-15.0.7/clang/include/clang/Rewrite/Core/ |
| H A D | RewriteRope.h | 161 void erase(unsigned Offset, unsigned NumBytes); 207 void erase(unsigned Offset, unsigned NumBytes) { in erase() argument 208 assert(Offset+NumBytes <= size() && "Invalid region to erase!"); in erase() 209 if (NumBytes == 0) return; in erase() 210 Chunks.erase(Offset, NumBytes); in erase()
|
| /llvm-project-15.0.7/compiler-rt/lib/orc/unittests/ |
| H A D | simple_packed_serialization_test.cpp | 19 constexpr unsigned NumBytes = 8; in TEST() local 20 char Buffer[NumBytes]; in TEST() 22 SPSOutputBuffer OB(Buffer, NumBytes); in TEST() 25 for (unsigned I = 0; I != NumBytes; ++I) { in TEST() 34 for (unsigned I = 0; I != NumBytes; ++I) in TEST()
|
| /llvm-project-15.0.7/llvm/unittests/ExecutionEngine/Orc/ |
| H A D | SimplePackedSerializationTest.cpp | 16 constexpr unsigned NumBytes = 8; in TEST() local 17 char Buffer[NumBytes]; in TEST() 19 SPSOutputBuffer OB(Buffer, NumBytes); in TEST() 22 for (unsigned I = 0; I != NumBytes; ++I) { in TEST() 31 for (unsigned I = 0; I != NumBytes; ++I) in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Target/VE/MCTargetDesc/ |
| H A D | VEAsmBackend.cpp | 203 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup() local 205 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 209 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup() 210 unsigned Idx = Endian == support::little ? i : (NumBytes - 1) - i; in applyFixup()
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
| H A D | WebAssemblyAsmBackend.cpp | 104 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()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/ |
| H A D | MemoryMapper.cpp | 38 void InProcessMemoryMapper::reserve(size_t NumBytes, in reserve() argument 42 NumBytes, nullptr, sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC); in reserve() 197 void SharedMemoryMapper::reserve(size_t NumBytes, in reserve() argument 204 [this, NumBytes, OnReserved = std::move(OnReserved)]( in reserve() 232 LocalAddr = mmap(nullptr, NumBytes, PROT_READ | PROT_WRITE, MAP_SHARED, in reserve() 262 Reservations.insert({RemoteAddr, {LocalAddr, NumBytes}}); in reserve() 265 OnReserved(ExecutorAddrRange(RemoteAddr, NumBytes)); in reserve() 267 SAs.Instance, static_cast<uint64_t>(NumBytes)); in reserve()
|
| /llvm-project-15.0.7/llvm/lib/Target/MSP430/MCTargetDesc/ |
| H A D | MSP430AsmBackend.cpp | 140 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()
|
| /llvm-project-15.0.7/llvm/lib/Target/Lanai/MCTargetDesc/ |
| H A D | LanaiAsmBackend.cpp | 101 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()
|
| /llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | MemoryMapper.h | 49 virtual void reserve(size_t NumBytes, OnReservedFunction OnReserved) = 0; 89 void reserve(size_t NumBytes, OnReservedFunction OnReserved) override; 140 void reserve(size_t NumBytes, OnReservedFunction OnReserved) override;
|
| /llvm-project-15.0.7/llvm/lib/Target/CSKY/MCTargetDesc/ |
| H A D | CSKYAsmBackend.cpp | 220 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()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64FrameLowering.cpp | 1499 if (!NumBytes) in emitPrologue() 1546 NumBytes = 0; in emitPrologue() 1549 NumBytes -= PrologueSaveSize; in emitPrologue() 1637 if (NumBytes >= (1 << 28)) in emitPrologue() 1716 .addImm(NumBytes) in emitPrologue() 1719 NumBytes = 0; in emitPrologue() 1757 if (NumBytes) { in emitPrologue() 2074 NumBytes -= PrologueSaveSize; in emitEpilogue() 2119 NumBytes = 0; in emitEpilogue() 2171 NumBytes = 0; in emitEpilogue() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/memprof/tests/ |
| H A D | rawprofile.cpp | 93 uint64_t NumBytes = SerializeToRawProfile(FakeMap, Layout, Ptr); in TEST() local 96 ASSERT_GT(NumBytes, 0ULL); in TEST() 108 EXPECT_EQ(TotalSize, NumBytes); in TEST()
|