| /netbsd-src/external/apache2/llvm/dist/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,
|
| /netbsd-src/external/apache2/llvm/dist/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 …]
|
| /netbsd-src/external/apache2/llvm/dist/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 …]
|
| /netbsd-src/external/apache2/llvm/dist/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 | 278 Register BaseReg, int NumBytes, in emitT2RegPlusImmediate() argument 282 if (NumBytes == 0 && DestReg != BaseReg) { in emitT2RegPlusImmediate() 289 bool isSub = NumBytes < 0; in emitT2RegPlusImmediate() 290 if (isSub) NumBytes = -NumBytes; in emitT2RegPlusImmediate() 295 NumBytes >= 4096 && in emitT2RegPlusImmediate() 296 ARM_AM::getT2SOImmVal(NumBytes) == -1) { in emitT2RegPlusImmediate() 298 if (NumBytes < 65536) { in emitT2RegPlusImmediate() 301 .addImm(NumBytes) in emitT2RegPlusImmediate() 304 } else if ((NumBytes & 0xffff) == 0) { in emitT2RegPlusImmediate() 308 .addImm(NumBytes >> 16) in emitT2RegPlusImmediate() [all …]
|
| H A D | ARMFrameLowering.cpp | 243 unsigned SrcReg, int NumBytes, unsigned MIFlags = MachineInstr::NoFlags, in emitRegPlusImmediate() argument 246 emitARMRegPlusImmediate(MBB, MBBI, dl, DestReg, SrcReg, NumBytes, in emitRegPlusImmediate() 249 emitT2RegPlusImmediate(MBB, MBBI, dl, DestReg, SrcReg, NumBytes, in emitRegPlusImmediate() 255 const ARMBaseInstrInfo &TII, int NumBytes, in emitSPUpdate() argument 259 emitRegPlusImmediate(isARM, MBB, MBBI, dl, TII, ARM::SP, ARM::SP, NumBytes, in emitSPUpdate() 447 unsigned NumBytes = MFI.getStackSize(); in emitPrologue() local 479 (!STI.isTargetWindows() || !WindowsRequiresStackProbe(MF, NumBytes))) { in emitPrologue() 480 if (NumBytes - ArgRegsSaveSize != 0) { in emitPrologue() 481 emitSPUpdate(isARM, MBB, MBBI, dl, TII, -(NumBytes - ArgRegsSaveSize), in emitPrologue() 484 NumBytes - ArgRegsSaveSize, true); in emitPrologue() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/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() 79 NumBytes = StackSize - MSP430FI->getCalleeSavedFrameSize(); in emitPrologue() 88 if (NumBytes) { // adjust stack pointer: SP -= numbytes in emitPrologue() 96 if (NumBytes) { in emitPrologue() 99 .addReg(MSP430::SP).addImm(NumBytes); in emitPrologue() 127 uint64_t NumBytes = 0; in emitEpilogue() local 132 NumBytes = FrameSize - CSSize; in emitEpilogue() 137 NumBytes = StackSize - CSSize; in emitEpilogue() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/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() 587 NumBytes = StackSize - MMFI->getCalleeSavedFrameSize(); in emitPrologue() 619 NumBytes -= mergeSPUpdates(MBB, MBBI, true); in emitPrologue() 622 emitSPUpdate(MBB, MBBI, -(int64_t)NumBytes, /*InEpilogue=*/false); in emitPrologue() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/CSKY/MCTargetDesc/ |
| H A D | CSKYAsmBackend.cpp | 116 unsigned NumBytes = alignTo(Info.TargetSize + Info.TargetOffset, 8) / 8; in applyFixup() local 118 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 124 if (IsLittleEndian && (NumBytes == 4)) { in applyFixup() 130 for (unsigned I = 0; I != NumBytes; I++) { in applyFixup() 131 unsigned Idx = IsLittleEndian ? I : (NumBytes - 1 - I); in applyFixup()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/ |
| H A D | AArch64FrameLowering.cpp | 351 uint64_t NumBytes = AFI->getLocalStackSize(); in canUseRedZone() local 353 return !(MFI.hasCalls() || hasFP(MF) || NumBytes > RedZoneSize || in canUseRedZone() 446 int NumBytes, int NumVGScaledBytes, unsigned VG, in appendVGScaledOffsetExpr() argument 450 if (NumBytes) { in appendVGScaledOffsetExpr() 452 Expr.append(buffer, buffer + encodeSLEB128(NumBytes, buffer)); in appendVGScaledOffsetExpr() 454 Comment << (NumBytes < 0 ? " - " : " + ") << std::abs(NumBytes); in appendVGScaledOffsetExpr() 477 int64_t NumBytes, NumVGScaledBytes; in createDefCFAExpressionFromSP() local 478 AArch64InstrInfo::decomposeStackOffsetForDwarfOffsets(OffsetFromSP, NumBytes, in createDefCFAExpressionFromSP() 488 appendVGScaledOffsetExpr(Expr, NumBytes, NumVGScaledBytes, in createDefCFAExpressionFromSP() 505 int64_t NumBytes, NumVGScaledBytes; in createCfaOffset() local [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/VE/MCTargetDesc/ |
| H A D | VEAsmBackend.cpp | 199 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup() local 201 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 205 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup() 206 unsigned Idx = Endian == support::little ? i : (NumBytes - 1) - i; in applyFixup()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
| H A D | WebAssemblyAsmBackend.cpp | 103 unsigned NumBytes = alignTo(Info.TargetSize, 8) / 8; in applyFixup() local 111 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 115 for (unsigned I = 0; I != NumBytes; ++I) in applyFixup()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Lanai/MCTargetDesc/ |
| H A D | LanaiAsmBackend.cpp | 99 unsigned NumBytes = (getFixupKindInfo(Kind).TargetSize + 7) / 8; in applyFixup() local 106 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup() 117 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/MSP430/MCTargetDesc/ |
| H A D | MSP430AsmBackend.cpp | 139 unsigned NumBytes = alignTo(Info.TargetSize + Info.TargetOffset, 8) / 8; in applyFixup() local 141 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 145 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/ |
| H A D | X86FrameLowering.cpp | 208 int64_t NumBytes, bool InEpilogue) const { in emitSPUpdate() argument 209 bool isSub = NumBytes < 0; in emitSPUpdate() 210 uint64_t Offset = isSub ? -NumBytes : NumBytes; in emitSPUpdate() 1424 uint64_t NumBytes = 0; in emitPrologue() local 1454 NumBytes = FrameSize - X86FI->getCalleeSavedFrameSize(); in emitPrologue() 1458 NumBytes = alignTo(NumBytes, MaxAlign); in emitPrologue() 1545 NumBytes = StackSize - X86FI->getCalleeSavedFrameSize(); in emitPrologue() 1552 MFI.setOffsetAdjustment(-NumBytes); in emitPrologue() 1559 unsigned ParentFrameNumBytes = NumBytes; in emitPrologue() 1561 NumBytes = getWinEHFuncletFrameSize(MF); in emitPrologue() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/ |
| H A D | HexagonFrameLowering.cpp | 609 unsigned NumBytes = MFI.getStackSize(); in insertPrologueInBlock() local 643 int NumBytes = 0; in insertPrologueInBlock() local 698 if (NumBytes != 0) in insertPrologueInBlock() 699 NumBytes = alignTo(NumBytes, ObjAlign); in insertPrologueInBlock() 707 ObjAlign.value() * Count + NumBytes) in insertPrologueInBlock() 713 .addImm(ObjAlign.value() * Count + NumBytes) in insertPrologueInBlock() 719 NumBytes += MFI.getObjectSize(i); in insertPrologueInBlock() 723 NumBytes = alignTo(NumBytes, 8); in insertPrologueInBlock() 728 NumBytes = (NumVarArgRegs % 2 == 0) ? NumBytes : NumBytes + 4; in insertPrologueInBlock() 733 .addImm(NumBytes + 4 * i) in insertPrologueInBlock() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/ |
| H A D | SystemZAsmPrinter.cpp | 554 unsigned NumBytes, const MCSubtargetInfo &STI) { in EmitNop() argument 555 if (NumBytes < 2) { in EmitNop() 559 else if (NumBytes < 4) { in EmitNop() 564 else if (NumBytes < 6) { in EmitNop() 691 unsigned NumBytes = Opers.getNumPatchBytes(); in LowerPATCHPOINT() local 692 assert(NumBytes >= EncodedBytes && in LowerPATCHPOINT() 694 assert((NumBytes - EncodedBytes) % 2 == 0 && in LowerPATCHPOINT() 696 while (EncodedBytes < NumBytes) in LowerPATCHPOINT() 697 EncodedBytes += EmitNop(OutContext, *OutStreamer, NumBytes - EncodedBytes, in LowerPATCHPOINT()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
| H A D | AMDGPUAsmBackend.cpp | 145 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup() local 147 assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!"); in applyFixup() 151 for (unsigned i = 0; i != NumBytes; ++i) in applyFixup()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/Windows/ |
| H A D | Memory.inc | 100 MemoryBlock Memory::allocateMappedMemory(size_t NumBytes, 105 if (NumBytes == 0) 121 size_t NumBlocks = (NumBytes + Granularity - 1) / Granularity; 140 return allocateMappedMemory(NumBytes, NULL, Flags & ~MF_HUGE_HINT, EC);
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/MSF/ |
| H A D | MSFCommon.h | 108 inline uint64_t bytesToBlocks(uint64_t NumBytes, uint64_t BlockSize) { in bytesToBlocks() argument 109 return divideCeil(NumBytes, BlockSize); in bytesToBlocks()
|