Searched refs:NumBytes (Results 1 - 25 of 67) sorted by relevance

123

/external/llvm/lib/Target/Sparc/
H A DSparcFrameLowering.cpp43 int NumBytes,
51 if (NumBytes >= -4096 && NumBytes < 4096) {
53 .addReg(SP::O6).addImm(NumBytes);
59 if (NumBytes >= 0) {
61 // sethi %hi(NumBytes), %g1
62 // or %g1, %lo(NumBytes), %g1
65 .addImm(HI22(NumBytes));
67 .addReg(SP::G1).addImm(LO10(NumBytes));
74 // sethi %hix(NumBytes),
40 emitSPAdjustment(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, int NumBytes, unsigned ADDrr, unsigned ADDri) const argument
96 int NumBytes = (int) MFI->getStackSize(); local
167 int NumBytes = (int) MFI->getStackSize(); local
[all...]
H A DSparcFrameLowering.h54 int NumBytes, unsigned ADDrr, unsigned ADDri) const;
/external/llvm/lib/Target/ARM/
H A DThumb1FrameLowering.cpp45 int NumBytes, unsigned MIFlags = MachineInstr::NoFlags) {
46 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII,
99 unsigned NumBytes = MFI->getStackSize(); local
100 assert(NumBytes >= ArgRegsSaveSize &&
101 "ArgRegsSaveSize is included in NumBytes");
109 NumBytes = (NumBytes + 3) & ~3;
110 MFI->setStackSize(NumBytes);
128 if (NumBytes - ArgRegsSaveSize != 0) {
129 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -(NumBytes
41 emitSPUpdate(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, const TargetInstrInfo &TII, DebugLoc dl, const Thumb1RegisterInfo &MRI, int NumBytes, unsigned MIFlags = MachineInstr::NoFlags) argument
331 int NumBytes = (int)MFI->getStackSize(); local
[all...]
H A DThumb2InstrInfo.cpp214 unsigned DestReg, unsigned BaseReg, int NumBytes,
217 if (NumBytes == 0 && DestReg != BaseReg) {
224 bool isSub = NumBytes < 0;
225 if (isSub) NumBytes = -NumBytes;
230 NumBytes >= 4096 &&
231 ARM_AM::getT2SOImmVal(NumBytes) == -1) {
233 if (NumBytes < 65536) {
236 .addImm(NumBytes)
239 } else if ((NumBytes
212 emitT2RegPlusImmediate(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, DebugLoc dl, unsigned DestReg, unsigned BaseReg, int NumBytes, ARMCC::CondCodes Pred, unsigned PredReg, const ARMBaseInstrInfo &TII, unsigned MIFlags) argument
[all...]
H A DThumb1RegisterInfo.cpp92 int NumBytes, bool CanChangeCC,
104 if (NumBytes < 0 && !isHigh && CanChangeCC) {
106 NumBytes = -NumBytes;
114 if (NumBytes <= 255 && NumBytes >= 0)
116 .addImm(NumBytes).setMIFlags(MIFlags);
117 else if (NumBytes < 0 && NumBytes >= -255) {
119 .addImm(NumBytes)
88 emitThumbRegPlusImmInReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, DebugLoc dl, unsigned DestReg, unsigned BaseReg, int NumBytes, bool CanChangeCC, const TargetInstrInfo &TII, const ARMBaseRegisterInfo& MRI, unsigned MIFlags = MachineInstr::NoFlags) argument
165 emitThumbRegPlusImmediate(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, DebugLoc dl, unsigned DestReg, unsigned BaseReg, int NumBytes, const TargetInstrInfo &TII, const ARMBaseRegisterInfo& MRI, unsigned MIFlags) argument
[all...]
H A DARMFrameLowering.cpp117 unsigned SrcReg, int NumBytes,
122 emitARMRegPlusImmediate(MBB, MBBI, dl, DestReg, SrcReg, NumBytes,
125 emitT2RegPlusImmediate(MBB, MBBI, dl, DestReg, SrcReg, NumBytes,
131 const ARMBaseInstrInfo &TII, int NumBytes,
135 emitRegPlusImmediate(isARM, MBB, MBBI, dl, TII, ARM::SP, ARM::SP, NumBytes,
175 unsigned NumBytes = MFI->getStackSize(); local
204 (!STI.isTargetWindows() || !WindowsRequiresStackProbe(MF, NumBytes))) {
205 if (NumBytes - ArgRegsSaveSize != 0) {
206 emitSPUpdate(isARM, MBB, MBBI, dl, TII, -(NumBytes - ArgRegsSaveSize),
208 CFAOffset -= NumBytes
114 emitRegPlusImmediate(bool isARM, MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, DebugLoc dl, const ARMBaseInstrInfo &TII, unsigned DestReg, unsigned SrcReg, int NumBytes, unsigned MIFlags = MachineInstr::NoFlags, ARMCC::CondCodes Pred = ARMCC::AL, unsigned PredReg = 0) argument
129 emitSPUpdate(bool isARM, MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, DebugLoc dl, const ARMBaseInstrInfo &TII, int NumBytes, unsigned MIFlags = MachineInstr::NoFlags, ARMCC::CondCodes Pred = ARMCC::AL, unsigned PredReg = 0) argument
586 int NumBytes = (int)MFI->getStackSize(); local
[all...]
H A DARMBaseInstrInfo.h402 unsigned DestReg, unsigned BaseReg, int NumBytes,
408 unsigned DestReg, unsigned BaseReg, int NumBytes,
414 int NumBytes, const TargetInstrInfo &TII,
420 /// NumBytes. This can save a few bytes per function in code-size, but
425 unsigned NumBytes);
/external/clang/lib/Rewrite/Core/
H A DRewriteRope.cpp116 /// erase - Remove NumBytes from this node at the specified offset. We are
118 void erase(unsigned Offset, unsigned NumBytes);
218 /// erase - Remove NumBytes from this node at the specified offset. We are
220 void erase(unsigned Offset, unsigned NumBytes);
334 /// erase - Remove NumBytes from this node at the specified offset. We are
336 void RopePieceBTreeLeaf::erase(unsigned Offset, unsigned NumBytes) {
347 // Figure out how many pieces completely cover 'NumBytes'. We want to remove
349 for (; Offset+NumBytes > PieceOffs+getPiece(i).size(); ++i)
353 if (Offset+NumBytes == PieceOffs+getPiece(i).size())
368 NumBytes
[all...]
/external/llvm/lib/Target/MSP430/
H A DMSP430FrameLowering.cpp54 uint64_t NumBytes = 0; local
58 NumBytes = FrameSize - MSP430FI->getCalleeSavedFrameSize();
63 MFI->setOffsetAdjustment(-NumBytes);
79 NumBytes = StackSize - MSP430FI->getCalleeSavedFrameSize();
88 if (NumBytes) { // adjust stack pointer: SPW -= numbytes
91 //NumBytes -= mergeSPUpdates(MBB, MBBI, true);
94 // mergeSPUpdatesDown(MBB, MBBI, &NumBytes);
96 if (NumBytes) {
99 .addReg(MSP430::SPW).addImm(NumBytes);
127 uint64_t NumBytes local
[all...]
/external/llvm/include/llvm/Support/
H A DMemory.h55 /// \p NumBytes bytes of virtual memory is made.
77 static MemoryBlock allocateMappedMemory(size_t NumBytes,
113 /// attempt to allocate \p NumBytes bytes of virtual memory is made.
121 static MemoryBlock AllocateRWX(size_t NumBytes,
/external/clang/include/clang/Rewrite/Core/
H A DRewriteRope.h179 void erase(unsigned Offset, unsigned NumBytes);
232 void erase(unsigned Offset, unsigned NumBytes) { argument
233 assert(Offset+NumBytes <= size() && "Invalid region to erase!");
234 if (NumBytes == 0) return;
235 Chunks.erase(Offset, NumBytes);
/external/llvm/lib/Target/X86/
H A DX86FrameLowering.cpp150 unsigned StackPtr, int64_t NumBytes,
153 bool isSub = NumBytes < 0;
154 uint64_t Offset = isSub ? -NumBytes : NumBytes;
208 unsigned StackPtr, uint64_t *NumBytes = nullptr) {
217 if (NumBytes)
218 *NumBytes += PI->getOperand(2).getImm();
223 if (NumBytes)
224 *NumBytes -= PI->getOperand(2).getImm();
234 unsigned StackPtr, uint64_t *NumBytes
149 emitSPUpdate(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, unsigned StackPtr, int64_t NumBytes, bool Is64Bit, bool IsLP64, bool UseLEA, const TargetInstrInfo &TII, const TargetRegisterInfo &TRI) argument
[all...]
H A DX86MCInstLower.cpp686 static void EmitNops(MCStreamer &OS, unsigned NumBytes, bool Is64Bit, const MCSubtargetInfo &STI) { argument
690 while (NumBytes) {
694 switch (NumBytes) {
696 case 1: NumBytes -= 1; Opc = X86::NOOP; break;
697 case 2: NumBytes -= 2; Opc = X86::XCHG16ar; break;
698 case 3: NumBytes -= 3; Opc = X86::NOOPL; break;
699 case 4: NumBytes -= 4; Opc = X86::NOOPL; Displacement = 8; break;
700 case 5: NumBytes -= 5; Opc = X86::NOOPL; Displacement = 8;
702 case 6: NumBytes -= 6; Opc = X86::NOOPW; Displacement = 8;
704 case 7: NumBytes
741 unsigned NumBytes = MI.getOperand(1).getImm(); local
774 unsigned NumBytes = opers.getMetaOper(PatchPointOpers::NBytesPos).getImm(); local
[all...]
/external/llvm/lib/Target/AArch64/
H A DAArch64FrameLowering.cpp73 unsigned NumBytes = AFI->getLocalStackSize(); local
78 if (MFI->hasCalls() || hasFP(MF) || NumBytes > 128)
216 int NumBytes = (int)MFI->getStackSize(); local
221 AFI->setLocalStackSize(NumBytes);
228 if (NumBytes && !canUseRedZone(MF)) {
229 emitFrameOffset(MBB, MBBI, DL, AArch64::SP, AArch64::SP, -NumBytes, TII,
234 MCCFIInstruction::createDefCfaOffset(FrameLabel, -NumBytes));
237 } else if (NumBytes) {
268 NumBytes -= 16;
270 assert(NumBytes >
444 int NumBytes = MFI->getStackSize(); local
[all...]
H A DAArch64AsmPrinter.cpp423 unsigned NumBytes = Opers.getMetaOper(PatchPointOpers::NBytesPos).getImm(); local
424 assert(NumBytes >= EncodedBytes &&
426 assert((NumBytes - EncodedBytes) % 4 == 0 &&
428 for (unsigned i = EncodedBytes; i < NumBytes; i += 4)
/external/llvm/lib/Support/Unix/
H A 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/Target/PowerPC/MCTargetDesc/
H A DPPCAsmBackend.cpp120 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); variable
125 for (unsigned i = 0; i != NumBytes; ++i) {
126 unsigned Idx = IsLittleEndian ? i : (NumBytes - 1 - i);
/external/llvm/lib/Support/Windows/
H A 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/include/llvm/MC/
H A DMCObjectStreamer.h125 void EmitFill(uint64_t NumBytes, uint8_t FillValue) override;
126 void EmitZeros(uint64_t NumBytes) override;
/external/llvm/lib/Target/SystemZ/
H A DSystemZFrameLowering.cpp281 // Emit instructions before MBBI (in MBB) to add NumBytes to Reg.
285 unsigned Reg, int64_t NumBytes,
287 while (NumBytes) {
289 int64_t ThisVal = NumBytes;
290 if (isInt<16>(NumBytes))
306 NumBytes -= ThisVal;
432 uint64_t NumBytes = Offset - 0x7fff8; local
434 NumBytes, ZII);
435 Offset -= NumBytes;
282 emitIncrement(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, const DebugLoc &DL, unsigned Reg, int64_t NumBytes, const TargetInstrInfo *TII) argument
/external/llvm/lib/Target/Hexagon/
H A DHexagonFrameLowering.cpp86 int NumBytes = (int) MFI->getStackSize(); local
120 if (NumBytes >= ALLOCFRAME_MAX) {
126 HEXAGON_RESERVED_REG_1).addImm(NumBytes);
132 BuildMI(MBB, InsertPt, dl, TII.get(Hexagon::ALLOCFRAME)).addImm(NumBytes);
/external/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsAsmBackend.cpp178 unsigned NumBytes = (getFixupKindInfo(Kind).TargetSize + 7) / 8; local
202 for (unsigned i = 0; i != NumBytes; ++i) {
214 for (unsigned i = 0; i != NumBytes; ++i) {
/external/llvm/lib/Support/
H A Draw_ostream.cpp308 size_t NumBytes = OutBufEnd - OutBufCur; local
314 size_t BytesToWrite = Size - (Size % NumBytes);
327 copy_to_buffer(Ptr, NumBytes);
329 return write(Ptr + NumBytes, Size - NumBytes);
/external/llvm/lib/MC/
H A DMCObjectStreamer.cpp363 void MCObjectStreamer::EmitFill(uint64_t NumBytes, uint8_t FillValue) { argument
366 getOrCreateDataFragment()->getContents().append(NumBytes, FillValue);
369 void MCObjectStreamer::EmitZeros(uint64_t NumBytes) { argument
371 insert(new MCFillFragment(0, ItemSize, NumBytes));
/external/llvm/tools/yaml2obj/
H A Dyaml2coff.cpp207 template <size_t NumBytes>
212 template <size_t NumBytes>
213 raw_ostream &operator<<(raw_ostream &OS, const zeros_impl<NumBytes> &) {
214 char Buffer[NumBytes];

Completed in 915 milliseconds

123