/freebsd/contrib/llvm-project/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() 66 template <size_t NumBytes = LLVM_BLAKE3_OUT_LEN> 67 BLAKE3Result<NumBytes> final() { in final() 68 BLAKE3Result<NumBytes> Result; in final() 79 template <size_t NumBytes = LLVM_BLAKE3_OUT_LEN> 80 BLAKE3Result<NumBytes> result() { in result() 81 return final<NumBytes>(); in result() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
H A D | VEFrameLowering.cpp | 138 uint64_t NumBytes, in emitPrologueInsns() argument 186 uint64_t NumBytes, in emitEpilogueInsns() argument 229 int64_t NumBytes, in emitSPAdjustment() argument 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() [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,
|
/freebsd/contrib/llvm-project/clang/lib/Rewrite/ |
H A D | RewriteRope.cpp | 121 void erase(unsigned Offset, unsigned NumBytes); 221 void erase(unsigned Offset, unsigned NumBytes); 337 void RopePieceBTreeLeaf::erase(unsigned Offset, unsigned NumBytes) { in erase() argument 350 for (; Offset+NumBytes > PieceOffs+getPiece(i).size(); ++i) in erase() 354 if (Offset+NumBytes == PieceOffs+getPiece(i).size()) { in erase() 371 NumBytes -= CoverBytes; in erase() 376 if (NumBytes == 0) return; in erase() 380 assert(getPiece(StartPiece).size() > NumBytes); in erase() 381 Pieces[StartPiece].StartOffs += NumBytes; in erase() 384 Size -= NumBytes; in erase() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/ |
H A D | SparcFrameLowering.cpp | 43 int NumBytes, in emitSPAdjustment() argument 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() 67 .addReg(SP::G1).addImm(LO10(NumBytes)); in emitSPAdjustment() 78 .addImm(HIX22(NumBytes)); in emitSPAdjustment() 80 .addReg(SP::G1).addImm(LOX10(NumBytes)); in emitSPAdjustment() 108 int NumBytes = (int) MFI.getStackSize(); in emitPrologue() local 113 if (NumBytes == 0) in emitPrologue() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | Thumb1FrameLowering.cpp | 69 const ThumbRegisterInfo &MRI, int NumBytes, in emitPrologueEpilogueSPUpdate() argument 73 if (std::abs(NumBytes) > 508 * 3) { in emitPrologueEpilogueSPUpdate() 85 .addImm(NumBytes).setMIFlags(MIFlags); in emitPrologueEpilogueSPUpdate() 87 MRI.emitLoadConstPool(MBB, MBBI, dl, ScratchReg, 0, NumBytes, ARMCC::AL, in emitPrologueEpilogueSPUpdate() 99 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, in emitPrologueEpilogueSPUpdate() 107 const ThumbRegisterInfo &MRI, int NumBytes, in emitCallSPUpdate() argument 109 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, in emitCallSPUpdate() 159 unsigned NumBytes = MFI.getStackSize(); in emitPrologue() local 160 assert(NumBytes >= ArgRegsSaveSize && in emitPrologue() 173 NumBytes = (NumBytes + 3) & ~3; in emitPrologue() [all …]
|
H A D | ThumbRegisterInfo.cpp | 126 const DebugLoc &dl, Register DestReg, Register BaseReg, int NumBytes, in emitThumbRegPlusImmInReg() argument 134 (DestReg.isVirtual() || isARMLowRegister(DestReg)) && NumBytes >= 0 && in emitThumbRegPlusImmInReg() 135 NumBytes <= 1020 && (NumBytes % 4) == 0) { in emitThumbRegPlusImmInReg() 138 .addImm(NumBytes / 4) in emitThumbRegPlusImmInReg() 151 if (NumBytes < 0 && !isHigh && CanChangeCC) { in emitThumbRegPlusImmInReg() 153 NumBytes = -NumBytes; in emitThumbRegPlusImmInReg() 161 if (NumBytes <= 255 && NumBytes > in emitThumbRegPlusImmInReg() 190 emitThumbRegPlusImmediate(MachineBasicBlock & MBB,MachineBasicBlock::iterator & MBBI,const DebugLoc & dl,Register DestReg,Register BaseReg,int NumBytes,const TargetInstrInfo & TII,const ARMBaseRegisterInfo & MRI,unsigned MIFlags) emitThumbRegPlusImmediate() argument [all...] |
H A D | Thumb2InstrInfo.cpp | 312 Register BaseReg, int NumBytes, in emitT2RegPlusImmediate() argument 316 if (NumBytes == 0 && DestReg != BaseReg) { in emitT2RegPlusImmediate() 323 bool isSub = NumBytes < 0; in emitT2RegPlusImmediate() 324 if (isSub) NumBytes = -NumBytes; in emitT2RegPlusImmediate() 329 NumBytes >= 4096 && in emitT2RegPlusImmediate() 330 ARM_AM::getT2SOImmVal(NumBytes) == -1) { in emitT2RegPlusImmediate() 332 if (NumBytes < 65536) { in emitT2RegPlusImmediate() 335 .addImm(NumBytes) in emitT2RegPlusImmediate() 338 } else if ((NumBytes & 0xffff) == 0) { in emitT2RegPlusImmediate() 342 .addImm(NumBytes >> 16) in emitT2RegPlusImmediate() [all …]
|
H A D | ARMFrameLowering.cpp | 539 unsigned SrcReg, int NumBytes, unsigned MIFlags = MachineInstr::NoFlags, in emitRegPlusImmediate() argument 542 emitARMRegPlusImmediate(MBB, MBBI, dl, DestReg, SrcReg, NumBytes, in emitRegPlusImmediate() 545 emitT2RegPlusImmediate(MBB, MBBI, dl, DestReg, SrcReg, NumBytes, in emitRegPlusImmediate() 551 const ARMBaseInstrInfo &TII, int NumBytes, in emitSPUpdate() argument 555 emitRegPlusImmediate(isARM, MBB, MBBI, dl, TII, ARM::SP, ARM::SP, NumBytes, in emitSPUpdate() 748 unsigned NumBytes = MFI.getStackSize(); in emitPrologue() local 774 (!STI.isTargetWindows() || !WindowsRequiresStackProbe(MF, NumBytes))) { in emitPrologue() 775 if (NumBytes != 0) { in emitPrologue() 776 emitSPUpdate(isARM, MBB, MBBI, dl, TII, -NumBytes, in emitPrologue() 778 DefCFAOffsetCandidates.addInst(std::prev(MBBI), NumBytes, true); in emitPrologue() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
H A D | M68kFrameLowering.cpp | 337 int64_t NumBytes, bool InEpilogue) const { in emitSPUpdate() argument 338 bool IsSub = NumBytes < 0; in emitSPUpdate() 339 uint64_t Offset = IsSub ? -NumBytes : NumBytes; in emitSPUpdate() 524 uint64_t NumBytes = 0; in emitPrologue() local 535 NumBytes = FrameSize - MMFI->getCalleeSavedFrameSize(); in emitPrologue() 539 NumBytes = alignTo(NumBytes, MaxAlign); in emitPrologue() 544 MFI.setOffsetAdjustment(-NumBytes); in emitPrologue() 548 .addImm(-NumBytes) in emitPrologue() 579 NumBytes = StackSize - MMFI->getCalleeSavedFrameSize(); in emitPrologue() 611 NumBytes -= mergeSPUpdates(MBB, MBBI, true); in emitPrologue() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | DXContainer.cpp | 388 size_t NumBytes = NumDwords * sizeof(uint32_t); in parse() local 389 OutputVectorMasks[I].Data = Data.substr(Current - Data.begin(), NumBytes); in parse() 390 Current += NumBytes; in parse() 395 size_t NumBytes = NumDwords * sizeof(uint32_t); in parse() local 396 PatchOrPrimMasks.Data = Data.substr(Current - Data.begin(), NumBytes); in parse() 397 Current += NumBytes; in parse() 406 size_t NumBytes = NumDwords * sizeof(uint32_t); in parse() local 407 InputOutputMap[I].Data = Data.substr(Current - Data.begin(), NumBytes); in parse() 408 Current += NumBytes; in parse() 416 size_t NumBytes = NumDwords * sizeof(uint32_t); in parse() local [all …]
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/ |
H A D | MSP430FrameLowering.cpp | 98 uint64_t NumBytes = 0; in emitPrologue() local 102 NumBytes = FrameSize - MSP430FI->getCalleeSavedFrameSize(); in emitPrologue() 107 MFI.setOffsetAdjustment(-NumBytes); in emitPrologue() 142 NumBytes = StackSize - MSP430FI->getCalleeSavedFrameSize(); in emitPrologue() 164 if (NumBytes) { // adjust stack pointer: SP -= numbytes in emitPrologue() 172 if (NumBytes) { in emitPrologue() 176 .addImm(NumBytes) in emitPrologue() 214 uint64_t NumBytes = 0; in emitEpilogue() local 220 NumBytes = FrameSize - CSSize; in emitEpilogue() 239 NumBytes = StackSize - CSSize; in emitEpilogue() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Rewrite/Core/ |
H A D | RewriteRope.h | 161 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 D | simple_packed_serialization_test.cpp | 20 constexpr unsigned NumBytes = 8; in TEST() 21 char Buffer[NumBytes]; in TEST() 23 SPSOutputBuffer OB(Buffer, NumBytes); in TEST() 25 // Expect that we can write NumBytes of content. in TEST() 26 for (unsigned I = 0; I != NumBytes; ++I) { in TEST() 35 for (unsigned I = 0; I != NumBytes; ++I) in TEST() 19 constexpr unsigned NumBytes = 8; TEST() local
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | MemoryMapper.cpp | 44 void InProcessMemoryMapper::reserve(size_t NumBytes, in reserve() argument 48 NumBytes, nullptr, sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC); in reserve() 220 void SharedMemoryMapper::reserve(size_t NumBytes, in reserve() argument 227 [this, NumBytes, OnReserved = std::move(OnReserved)]( in reserve() 253 shmget(Key, NumBytes, IPC_CREAT | __IPC_SHAREAS | 0700); in reserve() 272 LocalAddr = mmap(nullptr, NumBytes, PROT_READ | PROT_WRITE, MAP_SHARED, in reserve() 302 Reservations.insert({RemoteAddr, {LocalAddr, NumBytes}}); in reserve() 305 OnReserved(ExecutorAddrRange(RemoteAddr, NumBytes)); in reserve() 307 SAs.Instance, static_cast<uint64_t>(NumBytes)); in reserve()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/ |
H A D | VEAsmBackend.cpp | 195 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup() local 197 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 201 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup() 203 Endian == llvm::endianness::little ? i : (NumBytes - 1) - i; in applyFixup()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
H A D | WebAssemblyAsmBackend.cpp | 97 unsigned NumBytes = alignTo(Info.TargetSize, 8) / 8; in applyFixup() local 105 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 109 for (unsigned I = 0; I != NumBytes; ++I) in applyFixup()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/MCTargetDesc/ |
H A D | LanaiAsmBackend.cpp | 94 unsigned NumBytes = (getFixupKindInfo(Kind).TargetSize + 7) / 8; in applyFixup() local 101 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup() 112 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/tests/ |
H A D | rawprofile.cpp | 68 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/MSP430/MCTargetDesc/ |
H A D | MSP430AsmBackend.cpp | 134 unsigned NumBytes = alignTo(Info.TargetSize + Info.TargetOffset, 8) / 8; in applyFixup() local 136 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 140 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
H A D | MemoryMapper.h | 50 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 D | CSKYAsmBackend.cpp | 219 unsigned NumBytes = alignTo(Info.TargetSize + Info.TargetOffset, 8) / 8; in applyFixup() local 221 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 228 if (IsLittleEndian && IsInstFixup && (NumBytes == 4)) { in applyFixup() 234 for (unsigned I = 0; I != NumBytes; I++) { in applyFixup() 235 unsigned Idx = IsLittleEndian ? I : (NumBytes - 1 - I); in applyFixup()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonFrameLowering.cpp | 614 unsigned NumBytes = MFI.getStackSize(); in insertPrologueInBlock() local 648 int NumBytes = 0; in insertPrologueInBlock() local 703 if (NumBytes != 0) in insertPrologueInBlock() 704 NumBytes = alignTo(NumBytes, ObjAlign); in insertPrologueInBlock() 712 ObjAlign.value() * Count + NumBytes) in insertPrologueInBlock() 718 .addImm(ObjAlign.value() * Count + NumBytes) in insertPrologueInBlock() 724 NumBytes += MFI.getObjectSize(i); in insertPrologueInBlock() 728 NumBytes = alignTo(NumBytes, 8); in insertPrologueInBlock() 733 NumBytes = (NumVarArgRegs % 2 == 0) ? NumBytes : NumBytes + 4; in insertPrologueInBlock() 738 .addImm(NumBytes + 4 * i) in insertPrologueInBlock() [all …]
|