Home
last modified time | relevance | path

Searched refs:NumBytes (Results 1 – 25 of 68) sorted by relevance

123

/external/llvm/lib/Target/ARM/
DThumb1FrameLowering.cpp45 int NumBytes, unsigned MIFlags = MachineInstr::NoFlags) { in emitSPUpdate() argument
46 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, in emitSPUpdate()
99 unsigned NumBytes = MFI->getStackSize(); in emitPrologue() local
100 assert(NumBytes >= ArgRegsSaveSize && in emitPrologue()
109 NumBytes = (NumBytes + 3) & ~3; in emitPrologue()
110 MFI->setStackSize(NumBytes); in emitPrologue()
128 if (NumBytes - ArgRegsSaveSize != 0) { in emitPrologue()
129 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -(NumBytes - ArgRegsSaveSize), in emitPrologue()
131 CFAOffset -= NumBytes - ArgRegsSaveSize; in emitPrologue()
174 unsigned DPRCSOffset = NumBytes - ArgRegsSaveSize - (GPRCS1Size + GPRCS2Size + DPRCSSize); in emitPrologue()
[all …]
DThumb2InstrInfo.cpp214 unsigned DestReg, unsigned BaseReg, int NumBytes, in emitT2RegPlusImmediate() argument
217 if (NumBytes == 0 && DestReg != BaseReg) { in emitT2RegPlusImmediate()
224 bool isSub = NumBytes < 0; in emitT2RegPlusImmediate()
225 if (isSub) NumBytes = -NumBytes; in emitT2RegPlusImmediate()
230 NumBytes >= 4096 && in emitT2RegPlusImmediate()
231 ARM_AM::getT2SOImmVal(NumBytes) == -1) { in emitT2RegPlusImmediate()
233 if (NumBytes < 65536) { in emitT2RegPlusImmediate()
236 .addImm(NumBytes) in emitT2RegPlusImmediate()
239 } else if ((NumBytes & 0xffff) == 0) { in emitT2RegPlusImmediate()
243 .addImm(NumBytes >> 16) in emitT2RegPlusImmediate()
[all …]
DThumb1RegisterInfo.cpp92 int NumBytes, bool CanChangeCC, in emitThumbRegPlusImmInReg() argument
104 if (NumBytes < 0 && !isHigh && CanChangeCC) { in emitThumbRegPlusImmInReg()
106 NumBytes = -NumBytes; in emitThumbRegPlusImmInReg()
114 if (NumBytes <= 255 && NumBytes >= 0) in emitThumbRegPlusImmInReg()
116 .addImm(NumBytes).setMIFlags(MIFlags); in emitThumbRegPlusImmInReg()
117 else if (NumBytes < 0 && NumBytes >= -255) { in emitThumbRegPlusImmInReg()
119 .addImm(NumBytes).setMIFlags(MIFlags); in emitThumbRegPlusImmInReg()
123 MRI.emitLoadConstPool(MBB, MBBI, dl, LdReg, 0, NumBytes, in emitThumbRegPlusImmInReg()
169 int NumBytes, const TargetInstrInfo &TII, in emitThumbRegPlusImmediate() argument
172 bool isSub = NumBytes < 0; in emitThumbRegPlusImmediate()
[all …]
DARMFrameLowering.cpp117 unsigned SrcReg, int NumBytes, in emitRegPlusImmediate() argument
122 emitARMRegPlusImmediate(MBB, MBBI, dl, DestReg, SrcReg, NumBytes, in emitRegPlusImmediate()
125 emitT2RegPlusImmediate(MBB, MBBI, dl, DestReg, SrcReg, NumBytes, in emitRegPlusImmediate()
131 const ARMBaseInstrInfo &TII, int NumBytes, in emitSPUpdate() argument
135 emitRegPlusImmediate(isARM, MBB, MBBI, dl, TII, ARM::SP, ARM::SP, NumBytes, in emitSPUpdate()
175 unsigned NumBytes = MFI->getStackSize(); in emitPrologue() local
204 (!STI.isTargetWindows() || !WindowsRequiresStackProbe(MF, NumBytes))) { in emitPrologue()
205 if (NumBytes - ArgRegsSaveSize != 0) { in emitPrologue()
206 emitSPUpdate(isARM, MBB, MBBI, dl, TII, -(NumBytes - ArgRegsSaveSize), in emitPrologue()
208 CFAOffset -= NumBytes - ArgRegsSaveSize; in emitPrologue()
[all …]
DARMBaseInstrInfo.h402 unsigned DestReg, unsigned BaseReg, int NumBytes,
408 unsigned DestReg, unsigned BaseReg, int NumBytes,
414 int NumBytes, const TargetInstrInfo &TII,
425 unsigned NumBytes);
/external/llvm/lib/Target/Sparc/
DSparcFrameLowering.cpp43 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()
96 int NumBytes = (int) MFI->getStackSize(); in emitPrologue() local
101 if (NumBytes == 0) in emitPrologue()
[all …]
/external/clang/lib/Rewrite/Core/
DRewriteRope.cpp118 void erase(unsigned Offset, unsigned NumBytes);
220 void erase(unsigned Offset, unsigned NumBytes);
336 void RopePieceBTreeLeaf::erase(unsigned Offset, unsigned NumBytes) { in erase() argument
349 for (; Offset+NumBytes > PieceOffs+getPiece(i).size(); ++i) in erase()
353 if (Offset+NumBytes == PieceOffs+getPiece(i).size()) in erase()
368 NumBytes -= CoverBytes; in erase()
373 if (NumBytes == 0) return; in erase()
377 assert(getPiece(StartPiece).size() > NumBytes); in erase()
378 Pieces[StartPiece].StartOffs += NumBytes; in erase()
381 Size -= NumBytes; in erase()
[all …]
/external/llvm/lib/Target/MSP430/
DMSP430FrameLowering.cpp54 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: SPW -= numbytes in emitPrologue()
96 if (NumBytes) { in emitPrologue()
99 .addReg(MSP430::SPW).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 …]
/external/llvm/lib/Target/AArch64/
DAArch64FrameLowering.cpp73 unsigned NumBytes = AFI->getLocalStackSize(); in canUseRedZone() local
78 if (MFI->hasCalls() || hasFP(MF) || NumBytes > 128) in canUseRedZone()
216 int NumBytes = (int)MFI->getStackSize(); in emitPrologue() local
221 AFI->setLocalStackSize(NumBytes); in emitPrologue()
228 if (NumBytes && !canUseRedZone(MF)) { in emitPrologue()
229 emitFrameOffset(MBB, MBBI, DL, AArch64::SP, AArch64::SP, -NumBytes, TII, in emitPrologue()
234 MCCFIInstruction::createDefCfaOffset(FrameLabel, -NumBytes)); in emitPrologue()
237 } else if (NumBytes) { in emitPrologue()
268 NumBytes -= 16; in emitPrologue()
270 assert(NumBytes >= 0 && "Negative stack allocation size!?"); in emitPrologue()
[all …]
DAArch64AsmPrinter.cpp423 unsigned NumBytes = Opers.getMetaOper(PatchPointOpers::NBytesPos).getImm(); in LowerPATCHPOINT() local
424 assert(NumBytes >= EncodedBytes && in LowerPATCHPOINT()
426 assert((NumBytes - EncodedBytes) % 4 == 0 && in LowerPATCHPOINT()
428 for (unsigned i = EncodedBytes; i < NumBytes; i += 4) in LowerPATCHPOINT()
/external/llvm/lib/Target/X86/
DX86FrameLowering.cpp150 unsigned StackPtr, int64_t NumBytes, in emitSPUpdate() argument
153 bool isSub = NumBytes < 0; in emitSPUpdate()
154 uint64_t Offset = isSub ? -NumBytes : NumBytes; in emitSPUpdate()
208 unsigned StackPtr, uint64_t *NumBytes = nullptr) { in mergeSPUpdatesUp() argument
217 if (NumBytes) in mergeSPUpdatesUp()
218 *NumBytes += PI->getOperand(2).getImm(); in mergeSPUpdatesUp()
223 if (NumBytes) in mergeSPUpdatesUp()
224 *NumBytes -= PI->getOperand(2).getImm(); in mergeSPUpdatesUp()
234 unsigned StackPtr, uint64_t *NumBytes = nullptr) { in mergeSPUpdatesDown() argument
247 if (NumBytes) in mergeSPUpdatesDown()
[all …]
DX86MCInstLower.cpp686 static void EmitNops(MCStreamer &OS, unsigned NumBytes, bool Is64Bit, const MCSubtargetInfo &STI) { in EmitNops() argument
690 while (NumBytes) { in EmitNops()
694 switch (NumBytes) { in EmitNops()
696 case 1: NumBytes -= 1; Opc = X86::NOOP; break; in EmitNops()
697 case 2: NumBytes -= 2; Opc = X86::XCHG16ar; break; in EmitNops()
698 case 3: NumBytes -= 3; Opc = X86::NOOPL; break; in EmitNops()
699 case 4: NumBytes -= 4; Opc = X86::NOOPL; Displacement = 8; break; in EmitNops()
700 case 5: NumBytes -= 5; Opc = X86::NOOPL; Displacement = 8; in EmitNops()
702 case 6: NumBytes -= 6; Opc = X86::NOOPW; Displacement = 8; in EmitNops()
704 case 7: NumBytes -= 7; Opc = X86::NOOPL; Displacement = 512; break; in EmitNops()
[all …]
/external/clang/include/clang/Rewrite/Core/
DRewriteRope.h179 void erase(unsigned Offset, unsigned NumBytes);
232 void erase(unsigned Offset, unsigned NumBytes) { in erase() argument
233 assert(Offset+NumBytes <= size() && "Invalid region to erase!"); in erase()
234 if (NumBytes == 0) return; in erase()
235 Chunks.erase(Offset, NumBytes); in erase()
/external/llvm/lib/Support/Windows/
DMemory.inc70 MemoryBlock Memory::allocateMappedMemory(size_t NumBytes,
75 if (NumBytes == 0)
82 const size_t NumBlocks = (NumBytes+Granularity-1)/Granularity;
101 return allocateMappedMemory(NumBytes, NULL, Flags, EC);
156 MemoryBlock Memory::AllocateRWX(size_t NumBytes,
161 MB = allocateMappedMemory(NumBytes, NearBlock,
/external/llvm/lib/Target/SystemZ/
DSystemZFrameLowering.cpp285 unsigned Reg, int64_t NumBytes, in emitIncrement() argument
287 while (NumBytes) { in emitIncrement()
289 int64_t ThisVal = NumBytes; in emitIncrement()
290 if (isInt<16>(NumBytes)) in emitIncrement()
306 NumBytes -= ThisVal; in emitIncrement()
432 uint64_t NumBytes = Offset - 0x7fff8; in emitEpilogue() local
434 NumBytes, ZII); in emitEpilogue()
435 Offset -= NumBytes; in emitEpilogue()
/external/llvm/include/llvm/Support/
DMemory.h77 static MemoryBlock allocateMappedMemory(size_t NumBytes,
121 static MemoryBlock AllocateRWX(size_t NumBytes,
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCAsmBackend.cpp120 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup() local
125 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
126 unsigned Idx = IsLittleEndian ? i : (NumBytes - 1 - i); in applyFixup()
/external/llvm/lib/Support/Unix/
DMemory.inc83 Memory::allocateMappedMemory(size_t NumBytes,
88 if (NumBytes == 0)
92 const size_t NumPages = (NumBytes+PageSize-1)/PageSize;
124 return allocateMappedMemory(NumBytes, nullptr, PFlags, EC);
180 Memory::AllocateRWX(size_t NumBytes, const MemoryBlock* NearBlock,
182 if (NumBytes == 0) return MemoryBlock();
185 size_t NumPages = (NumBytes+PageSize-1)/PageSize;
217 return AllocateRWX(NumBytes, nullptr);
/external/llvm/lib/Support/
Draw_ostream.cpp308 size_t NumBytes = OutBufEnd - OutBufCur; in write() local
314 size_t BytesToWrite = Size - (Size % NumBytes); in write()
327 copy_to_buffer(Ptr, NumBytes); in write()
329 return write(Ptr + NumBytes, Size - NumBytes); in write()
/external/llvm/lib/Target/Hexagon/
DHexagonFrameLowering.cpp86 int NumBytes = (int) MFI->getStackSize(); in emitPrologue() local
120 if (NumBytes >= ALLOCFRAME_MAX) { in emitPrologue()
126 HEXAGON_RESERVED_REG_1).addImm(NumBytes); in emitPrologue()
132 BuildMI(MBB, InsertPt, dl, TII.get(Hexagon::ALLOCFRAME)).addImm(NumBytes); in emitPrologue()
/external/llvm/lib/Target/Mips/MCTargetDesc/
DMipsAsmBackend.cpp178 unsigned NumBytes = (getFixupKindInfo(Kind).TargetSize + 7) / 8; in applyFixup() local
202 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
214 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
/external/llvm/lib/MC/
DMCObjectStreamer.cpp363 void MCObjectStreamer::EmitFill(uint64_t NumBytes, uint8_t FillValue) { in EmitFill() argument
366 getOrCreateDataFragment()->getContents().append(NumBytes, FillValue); in EmitFill()
369 void MCObjectStreamer::EmitZeros(uint64_t NumBytes) { in EmitZeros() argument
371 insert(new MCFillFragment(0, ItemSize, NumBytes)); in EmitZeros()
/external/llvm/include/llvm/MC/
DMCObjectStreamer.h125 void EmitFill(uint64_t NumBytes, uint8_t FillValue) override;
126 void EmitZeros(uint64_t NumBytes) override;
/external/llvm/tools/yaml2obj/
Dyaml2coff.cpp207 template <size_t NumBytes>
212 template <size_t NumBytes>
213 raw_ostream &operator<<(raw_ostream &OS, const zeros_impl<NumBytes> &) { in operator <<() argument
214 char Buffer[NumBytes]; in operator <<()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldMachO.cpp564 unsigned NumBytes = 1 << Size; in processSECTDIFFRelocation() local
566 memcpy(&Addend, LocalAddress, NumBytes); in processSECTDIFFRelocation()
629 unsigned NumBytes = 1 << Size; in processI386ScatteredVANILLA() local
631 memcpy(&Addend, LocalAddress, NumBytes); in processI386ScatteredVANILLA()
693 unsigned NumBytes = 1 << Size; in processRelocationRef() local
695 memcpy(&Addend, LocalAddress, NumBytes); in processRelocationRef()
739 Value.Addend += Offset + NumBytes; in processRelocationRef()

123