| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/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,
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/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() 78 NumBytes = StackSize - MSP430FI->getCalleeSavedFrameSize(); 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() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/ARM/ |
| H A D | Thumb1FrameLowering.cpp | 70 const ThumbRegisterInfo &MRI, int NumBytes, in emitPrologueEpilogueSPUpdate() argument 74 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() 160 unsigned NumBytes = MFI.getStackSize(); in emitPrologue() local 161 assert(NumBytes >= ArgRegsSaveSize && in emitPrologue() 174 NumBytes = (NumBytes + 3) & ~3; in emitPrologue() [all …]
|
| H A D | ThumbRegisterInfo.cpp | 125 const DebugLoc &dl, Register DestReg, Register BaseReg, int NumBytes, in emitThumbRegPlusImmInReg() argument 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() 165 MRI.emitLoadConstPool(MBB, MBBI, dl, LdReg, 0, NumBytes, ARMCC::AL, 0, in emitThumbRegPlusImmInReg() 188 Register BaseReg, int NumBytes, in emitThumbRegPlusImmediate() argument [all …]
|
| H A D | Thumb2InstrInfo.cpp | 294 Register BaseReg, int NumBytes, in emitT2RegPlusImmediate() argument 298 if (NumBytes == 0 && DestReg != BaseReg) { in emitT2RegPlusImmediate() 305 bool isSub = NumBytes < 0; in emitT2RegPlusImmediate() 306 if (isSub) NumBytes = -NumBytes; in emitT2RegPlusImmediate() 311 NumBytes >= 4096 && in emitT2RegPlusImmediate() 312 ARM_AM::getT2SOImmVal(NumBytes) == -1) { in emitT2RegPlusImmediate() 314 if (NumBytes < 65536) { in emitT2RegPlusImmediate() 317 .addImm(NumBytes) in emitT2RegPlusImmediate() 320 } else if ((NumBytes & 0xffff) == 0) { in emitT2RegPlusImmediate() 324 .addImm(NumBytes >> 16) in emitT2RegPlusImmediate() [all …]
|
| H A D | ARMFrameLowering.cpp | 538 unsigned SrcReg, int NumBytes, unsigned MIFlags = MachineInstr::NoFlags, in emitRegPlusImmediate() argument 541 emitARMRegPlusImmediate(MBB, MBBI, dl, DestReg, SrcReg, NumBytes, in emitRegPlusImmediate() 544 emitT2RegPlusImmediate(MBB, MBBI, dl, DestReg, SrcReg, NumBytes, in emitRegPlusImmediate() 550 const ARMBaseInstrInfo &TII, int NumBytes, in emitSPUpdate() argument 554 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 …]
|
| /openbsd-src/gnu/llvm/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() 527 uint64_t NumBytes = 0; in emitPrologue() local 538 NumBytes = FrameSize - MMFI->getCalleeSavedFrameSize(); in emitPrologue() 542 NumBytes = alignTo(NumBytes, MaxAlign); in emitPrologue() 547 MFI.setOffsetAdjustment(-NumBytes); in emitPrologue() 551 .addImm(-NumBytes) in emitPrologue() 582 NumBytes = StackSize - MMFI->getCalleeSavedFrameSize(); in emitPrologue() 614 NumBytes -= mergeSPUpdates(MBB, MBBI, true); in emitPrologue() [all …]
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/orc/tests/unit/ |
| 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()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/ |
| H A D | MemoryMapper.cpp | 40 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()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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;
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/ |
| H A D | AArch64FrameLowering.cpp | 420 uint64_t NumBytes = AFI->getLocalStackSize(); in canUseRedZone() local 422 return !(MFI.hasCalls() || hasFP(MF) || NumBytes > RedZoneSize || in canUseRedZone() 1485 int64_t NumBytes = IsFunclet ? getWinEHFuncletFrameSize(MF) in emitPrologue() local 1487 if (!AFI->hasStackFrame() && !windowsRequiresStackProbe(MF, NumBytes)) { in emitPrologue() 1492 AFI->setLocalStackSize(NumBytes); in emitPrologue() 1493 if (!NumBytes) in emitPrologue() 1502 StackOffset::getFixed(-NumBytes), TII, in emitPrologue() 1509 MCCFIInstruction::cfiDefCfaOffset(FrameLabel, NumBytes)); in emitPrologue() 1531 AFI->setLocalStackSize(NumBytes - PrologueSaveSize); in emitPrologue() 1532 bool CombineSPBump = shouldCombineCSRLocalStackBump(MF, NumBytes); in emitPrologue() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/LoongArch/MCTargetDesc/ |
| H A D | LoongArchAsmBackend.cpp | 154 unsigned NumBytes = alignTo(Info.TargetSize + Info.TargetOffset, 8) / 8; in applyFixup() local 156 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 159 for (unsigned I = 0; I != NumBytes; ++I) { in applyFixup()
|
| /openbsd-src/gnu/llvm/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()
|