| /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/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() 95 int NumBytes = (int) MFI.getStackSize(); in emitPrologue() local 100 if (NumBytes == 0) in emitPrologue() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VEFrameLowering.cpp | 135 uint64_t NumBytes, in emitPrologueInsns() argument 183 uint64_t NumBytes, in emitEpilogueInsns() argument 226 int64_t NumBytes, in emitSPAdjustment() argument 231 if (NumBytes == 0) { in emitSPAdjustment() 233 } else if (isInt<7>(NumBytes)) { in emitSPAdjustment() 237 .addImm(NumBytes); in emitSPAdjustment() 238 } else if (isInt<32>(NumBytes)) { in emitSPAdjustment() 243 .addImm(Lo_32(NumBytes)); in emitSPAdjustment() 253 .addImm(Lo_32(NumBytes)); in emitSPAdjustment() 260 .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, 79 MachineBasicBlock::iterator MBBI, int64_t NumBytes,
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | RewriteRope.cpp | 120 void erase(unsigned Offset, unsigned NumBytes); 220 void erase(unsigned Offset, unsigned NumBytes); 334 void RopePieceBTreeLeaf::erase(unsigned Offset, unsigned NumBytes) { in erase() argument 347 for (; Offset + NumBytes > PieceOffs + getPiece(i).size(); ++i) in erase() 351 if (Offset + NumBytes == PieceOffs + getPiece(i).size()) { in erase() 368 NumBytes -= CoverBytes; in erase() 373 if (NumBytes == 0) in erase() 378 assert(getPiece(StartPiece).size() > NumBytes); in erase() 379 Pieces[StartPiece].StartOffs += NumBytes; in erase() 382 Size -= NumBytes; in erase() [all …]
|
| H A D | FormattedStream.cpp | 76 unsigned NumBytes; in UpdatePosition() local 77 for (const char *End = Ptr + Size; Ptr < End; Ptr += NumBytes) { in UpdatePosition() 80 NumBytes = 1; in UpdatePosition() 85 NumBytes = getNumBytesForUTF8(*Ptr); in UpdatePosition() 92 if ((unsigned)(End - Ptr) < NumBytes) { in UpdatePosition() 97 ProcessUTF8CodePoint(StringRef(Ptr, NumBytes)); in UpdatePosition()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | Thumb1FrameLowering.cpp | 67 const ThumbRegisterInfo &MRI, int NumBytes, in emitPrologueEpilogueSPUpdate() argument 71 if (std::abs(NumBytes) > 508 * 3) { in emitPrologueEpilogueSPUpdate() 83 .addImm(NumBytes).setMIFlags(MIFlags); in emitPrologueEpilogueSPUpdate() 85 MRI.emitLoadConstPool(MBB, MBBI, dl, ScratchReg, 0, NumBytes, ARMCC::AL, in emitPrologueEpilogueSPUpdate() 97 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, in emitPrologueEpilogueSPUpdate() 105 const ThumbRegisterInfo &MRI, int NumBytes, in emitCallSPUpdate() argument 107 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, in emitCallSPUpdate() 156 unsigned NumBytes = MFI.getStackSize(); in emitPrologue() local 157 assert(NumBytes >= ArgRegsSaveSize && in emitPrologue() 172 NumBytes = (NumBytes + 3) & ~3; in emitPrologue() [all …]
|
| H A D | ThumbRegisterInfo.cpp | 124 const DebugLoc &dl, Register DestReg, Register BaseReg, int NumBytes, in emitThumbRegPlusImmInReg() argument 132 (DestReg.isVirtual() || isARMLowRegister(DestReg)) && NumBytes >= 0 && in emitThumbRegPlusImmInReg() 133 NumBytes <= 1020 && (NumBytes % 4) == 0) { in emitThumbRegPlusImmInReg() 136 .addImm(NumBytes / 4) in emitThumbRegPlusImmInReg() 149 if (NumBytes < 0 && !isHigh && CanChangeCC) { in emitThumbRegPlusImmInReg() 151 NumBytes = -NumBytes; in emitThumbRegPlusImmInReg() 159 if (NumBytes <= 255 && NumBytes >= 0 && CanChangeCC) { in emitThumbRegPlusImmInReg() 162 .addImm(NumBytes) in emitThumbRegPlusImmInReg() 164 } else if (NumBytes < 0 && NumBytes >= -255 && CanChangeCC) { in emitThumbRegPlusImmInReg() 167 .addImm(NumBytes) in emitThumbRegPlusImmInReg() [all …]
|
| H A D | Thumb2InstrInfo.cpp | 314 Register BaseReg, int NumBytes, in emitT2RegPlusImmediate() argument 318 if (NumBytes == 0 && DestReg != BaseReg) { in emitT2RegPlusImmediate() 325 bool isSub = NumBytes < 0; in emitT2RegPlusImmediate() 326 if (isSub) NumBytes = -NumBytes; in emitT2RegPlusImmediate() 331 NumBytes >= 4096 && in emitT2RegPlusImmediate() 332 ARM_AM::getT2SOImmVal(NumBytes) == -1) { in emitT2RegPlusImmediate() 334 if (NumBytes < 65536) { in emitT2RegPlusImmediate() 337 .addImm(NumBytes) in emitT2RegPlusImmediate() 340 } else if ((NumBytes & 0xffff) == 0) { in emitT2RegPlusImmediate() 344 .addImm(NumBytes >> 16) in emitT2RegPlusImmediate() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
| H A D | M68kFrameLowering.cpp | 339 int64_t NumBytes, bool InEpilogue) const { in emitSPUpdate() argument 340 bool IsSub = NumBytes < 0; in emitSPUpdate() 341 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 | 443 size_t NumBytes = NumDwords * sizeof(uint32_t); in parse() local 444 OutputVectorMasks[I].Data = Data.substr(Current - Data.begin(), NumBytes); in parse() 445 Current += NumBytes; in parse() 450 size_t NumBytes = NumDwords * sizeof(uint32_t); in parse() local 451 PatchOrPrimMasks.Data = Data.substr(Current - Data.begin(), NumBytes); in parse() 452 Current += NumBytes; in parse() 461 size_t NumBytes = NumDwords * sizeof(uint32_t); in parse() local 462 InputOutputMap[I].Data = Data.substr(Current - Data.begin(), NumBytes); in parse() 463 Current += NumBytes; in parse() 471 size_t NumBytes = NumDwords * sizeof(uint32_t); in parse() local [all …]
|
| /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 | 96 uint64_t NumBytes = 0; in emitPrologue() local 100 NumBytes = FrameSize - MSP430FI->getCalleeSavedFrameSize(); in emitPrologue() 105 MFI.setOffsetAdjustment(-NumBytes); in emitPrologue() 140 NumBytes = StackSize - MSP430FI->getCalleeSavedFrameSize(); in emitPrologue() 162 if (NumBytes) { // adjust stack pointer: SP -= numbytes in emitPrologue() 170 if (NumBytes) { in emitPrologue() 174 .addImm(NumBytes) in emitPrologue() 212 uint64_t NumBytes = 0; in emitEpilogue() local 218 NumBytes = FrameSize - CSSize; in emitEpilogue() 237 NumBytes = StackSize - CSSize; in emitEpilogue() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | RewriteRope.h | 162 LLVM_ABI 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) in erase() 215 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() 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 D | VEAsmBackend.cpp | 175 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup() local 177 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 181 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup() 182 unsigned Idx = Endian == llvm::endianness::little ? i : (NumBytes - 1) - i; in applyFixup()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
| H A D | WebAssemblyAsmBackend.cpp | 92 unsigned NumBytes = alignTo(Info.TargetSize, 8) / 8; in applyFixup() local 100 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 104 for (unsigned I = 0; I != NumBytes; ++I) in applyFixup()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | MemoryMapper.cpp | 43 void InProcessMemoryMapper::reserve(size_t NumBytes, in reserve() argument 47 NumBytes, nullptr, sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC); in reserve() 229 void SharedMemoryMapper::reserve(size_t NumBytes, in reserve() argument 237 [this, NumBytes, OnReserved = std::move(OnReserved), SharedMemoryId]( in reserve() 263 shmget(Key, NumBytes, IPC_CREAT | __IPC_SHAREAS | 0700); in reserve() 282 LocalAddr = mmap(nullptr, NumBytes, PROT_READ | PROT_WRITE, MAP_SHARED, in reserve() 313 {RemoteAddr, {LocalAddr, NumBytes, SharedMemoryId}}); in reserve() 316 OnReserved(ExecutorAddrRange(RemoteAddr, NumBytes)); in reserve() 318 SAs.Instance, static_cast<uint64_t>(NumBytes)); in reserve()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/MCTargetDesc/ |
| H A D | MSP430AsmBackend.cpp | 121 unsigned NumBytes = alignTo(Info.TargetSize + Info.TargetOffset, 8) / 8; in applyFixup() local 123 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 127 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/MCTargetDesc/ |
| H A D | LanaiAsmBackend.cpp | 89 unsigned NumBytes = (getFixupKindInfo(Kind).TargetSize + 7) / 8; in applyFixup() local 96 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup() 107 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/ObjectYAML/ |
| H A D | GOFFEmitter.cpp | 52 size_t NumBytes; member 56 OS.write_zeros(Z.NumBytes); in operator <<() 60 ZerosImpl zeros(const size_t NumBytes) { return ZerosImpl{NumBytes}; } in zeros() argument
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | MemoryMapper.h | 51 virtual void reserve(size_t NumBytes, OnReservedFunction OnReserved) = 0; 91 void reserve(size_t NumBytes, OnReservedFunction OnReserved) override; 143 void reserve(size_t NumBytes, OnReservedFunction OnReserved) override;
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | DAGISelMatcherEmitter.cpp | 228 unsigned NumBytes = 0; in GetVBRSize() local 231 ++NumBytes; in GetVBRSize() 233 return NumBytes + 1; in GetVBRSize() 245 unsigned NumBytes = 0; in EmitVBRValue() local 249 ++NumBytes; in EmitVBRValue() 255 return NumBytes + 1; in EmitVBRValue() 665 unsigned NumBytes = EmitVBRValue(VT, OS); in EmitMatcher() local 667 return NumBytes + 1; in EmitMatcher() 673 unsigned NumBytes = EmitVBRValue(cast<CheckTypeMatcher>(N)->getType(), OS); in EmitMatcher() local 675 return NumBytes + 2; in EmitMatcher() [all …]
|