| /freebsd-src/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-src/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-src/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-src/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-src/contrib/llvm-project/llvm/lib/Target/ARM/ |
| 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 >= 0 && CanChangeCC) { in emitThumbRegPlusImmInReg() 164 .addImm(NumBytes) in emitThumbRegPlusImmInReg() 166 } else if (NumBytes < 0 && NumBytes >= -255 && CanChangeCC) { in emitThumbRegPlusImmInReg() 169 .addImm(NumBytes) in emitThumbRegPlusImmInReg() [all …]
|
| 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() 160 assert(NumBytes >= ArgRegsSaveSize && in emitPrologue() local 161 "ArgRegsSaveSize is included in NumBytes"); in emitPrologue() 513 int NumBytes = (int)MFI.getStackSize(); emitEpilogue() local [all...] |
| H A D | Thumb2InstrInfo.cpp | 312 Register BaseReg, int NumBytes, in emitT2RegPlusImmediate() 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 in emitT2RegPlusImmediate() 292 emitT2RegPlusImmediate(MachineBasicBlock & MBB,MachineBasicBlock::iterator & MBBI,const DebugLoc & dl,Register DestReg,Register BaseReg,int NumBytes,ARMCC::CondCodes Pred,Register PredReg,const ARMBaseInstrInfo & TII,unsigned MIFlags) emitT2RegPlusImmediate() argument [all...] |
| H A D | ARMFrameLowering.cpp | 539 unsigned SrcReg, int NumBytes, unsigned MIFlags = MachineInstr::NoFlags, in emitRegPlusImmediate() 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() 555 emitRegPlusImmediate(isARM, MBB, MBBI, dl, TII, ARM::SP, ARM::SP, NumBytes, in emitSPUpdate() 748 unsigned NumBytes = MFI.getStackSize(); in emitPrologue() 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, tru in emitPrologue() 537 emitRegPlusImmediate(bool isARM,MachineBasicBlock & MBB,MachineBasicBlock::iterator & MBBI,const DebugLoc & dl,const ARMBaseInstrInfo & TII,unsigned DestReg,unsigned SrcReg,int NumBytes,unsigned MIFlags=MachineInstr::NoFlags,ARMCC::CondCodes Pred=ARMCC::AL,unsigned PredReg=0) emitRegPlusImmediate() argument 549 emitSPUpdate(bool isARM,MachineBasicBlock & MBB,MachineBasicBlock::iterator & MBBI,const DebugLoc & dl,const ARMBaseInstrInfo & TII,int NumBytes,unsigned MIFlags=MachineInstr::NoFlags,ARMCC::CondCodes Pred=ARMCC::AL,unsigned PredReg=0) emitSPUpdate() argument 747 unsigned NumBytes = MFI.getStackSize(); emitPrologue() local 1290 int NumBytes = (int)MFI.getStackSize(); emitEpilogue() local [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/Object/ |
| H A D | DXContainer.cpp | 388 size_t NumBytes = NumDwords * sizeof(uint32_t); in parse() 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() 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() 407 InputOutputMap[I].Data = Data.substr(Current - Data.begin(), NumBytes); in parse() 408 Current += NumBytes; in parse() local 416 size_t NumBytes in parse() 380 size_t NumBytes = NumDwords * sizeof(uint32_t); parse() local 387 size_t NumBytes = NumDwords * sizeof(uint32_t); parse() local 398 size_t NumBytes = NumDwords * sizeof(uint32_t); parse() local 418 size_t NumBytes = NumDwords * sizeof(uint32_t); parse() local [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/M68k/ |
| H A D | M68kFrameLowering.cpp | 337 int64_t NumBytes, bool InEpilogue) const { in emitSPUpdate() 338 bool IsSub = NumBytes < 0; in emitSPUpdate() 339 uint64_t Offset = IsSub ? -NumBytes : NumBytes; in emitSPUpdate() argument 524 uint64_t NumBytes = 0; in emitPrologue() 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() 527 uint64_t NumBytes = 0; emitPrologue() local 689 uint64_t NumBytes = 0; emitEpilogue() local [all...] |
| /freebsd-src/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-src/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-src/contrib/llvm-project/llvm/lib/Target/MSP430/ |
| H A D | MSP430FrameLowering.cpp | 98 uint64_t NumBytes = 0; in emitPrologue() 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() 167 //NumBytes -= mergeSPUpdates(MBB, MBBI, true); in emitPrologue() 170 // mergeSPUpdatesDown(MBB, MBBI, &NumBytes); in emitPrologue() 172 if (NumBytes) { in emitPrologue() 176 .addImm(NumBytes) in emitPrologue() 214 uint64_t NumBytes in emitEpilogue() 99 uint64_t NumBytes = 0; emitPrologue() local 215 uint64_t NumBytes = 0; emitEpilogue() local [all...] |
| /freebsd-src/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-src/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-src/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/ |
| H A D | VEAsmBackend.cpp | 195 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup() 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() 205 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); applyFixup() local
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
| H A D | WebAssemblyAsmBackend.cpp | 97 unsigned NumBytes = alignTo(Info.TargetSize, 8) / 8; in applyFixup() 105 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 109 for (unsigned I = 0; I != NumBytes; ++I) in applyFixup() 104 unsigned NumBytes = alignTo(Info.TargetSize, 8) / 8; applyFixup() local
|
| /freebsd-src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | MemoryMapper.cpp | 44 void InProcessMemoryMapper::reserve(size_t NumBytes, in reserve() 48 NumBytes, nullptr, sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC); in reserve() 220 void SharedMemoryMapper::reserve(size_t NumBytes, in reserve() 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 prepare() 305 OnReserved(ExecutorAddrRange(RemoteAddr, NumBytes)); in initialize() 307 SAs.Instance, static_cast<uint64_t>(NumBytes)); in initialize() 40 reserve(size_t NumBytes,OnReservedFunction OnReserved) reserve() argument 216 reserve(size_t NumBytes,OnReservedFunction OnReserved) reserve() argument
|
| /freebsd-src/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-src/contrib/llvm-project/llvm/lib/Target/Lanai/MCTargetDesc/ |
| H A D | LanaiAsmBackend.cpp | 94 unsigned NumBytes = (getFixupKindInfo(Kind).TargetSize + 7) / 8; in applyFixup() 101 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup() local 112 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
|
| /freebsd-src/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() 136 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 140 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup() local
|
| /freebsd-src/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | GOFFEmitter.cpp | 53 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-src/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-src/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() 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() 220 unsigned NumBytes = alignTo(Info.TargetSize + Info.TargetOffset, 8) / 8; applyFixup() local
|