Home
last modified time | relevance | path

Searched refs:NumBytes (Results 1 – 25 of 74) 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()
98 unsigned NumBytes = MFI->getStackSize(); in emitPrologue() local
99 assert(NumBytes >= ArgRegsSaveSize && in emitPrologue()
108 NumBytes = (NumBytes + 3) & ~3; in emitPrologue()
109 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()
175 unsigned DPRCSOffset = NumBytes - ArgRegsSaveSize - (GPRCS1Size + GPRCS2Size + DPRCSSize); in emitPrologue()
[all …]
DThumb2InstrInfo.cpp222 unsigned DestReg, unsigned BaseReg, int NumBytes, in emitT2RegPlusImmediate() argument
225 if (NumBytes == 0 && DestReg != BaseReg) { in emitT2RegPlusImmediate()
232 bool isSub = NumBytes < 0; in emitT2RegPlusImmediate()
233 if (isSub) NumBytes = -NumBytes; in emitT2RegPlusImmediate()
238 NumBytes >= 4096 && in emitT2RegPlusImmediate()
239 ARM_AM::getT2SOImmVal(NumBytes) == -1) { in emitT2RegPlusImmediate()
241 if (NumBytes < 65536) { in emitT2RegPlusImmediate()
244 .addImm(NumBytes) in emitT2RegPlusImmediate()
247 } else if ((NumBytes & 0xffff) == 0) { in emitT2RegPlusImmediate()
251 .addImm(NumBytes >> 16) in emitT2RegPlusImmediate()
[all …]
DThumbRegisterInfo.cpp128 int NumBytes, bool CanChangeCC, in emitThumbRegPlusImmInReg() argument
140 if (NumBytes < 0 && !isHigh && CanChangeCC) { in emitThumbRegPlusImmInReg()
142 NumBytes = -NumBytes; in emitThumbRegPlusImmInReg()
150 if (NumBytes <= 255 && NumBytes >= 0 && CanChangeCC) { in emitThumbRegPlusImmInReg()
152 .addImm(NumBytes).setMIFlags(MIFlags); in emitThumbRegPlusImmInReg()
153 } else if (NumBytes < 0 && NumBytes >= -255 && CanChangeCC) { in emitThumbRegPlusImmInReg()
155 .addImm(NumBytes).setMIFlags(MIFlags); in emitThumbRegPlusImmInReg()
159 MRI.emitLoadConstPool(MBB, MBBI, dl, LdReg, 0, NumBytes, in emitThumbRegPlusImmInReg()
184 int NumBytes, const TargetInstrInfo &TII, in emitThumbRegPlusImmediate() argument
187 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()
297 unsigned NumBytes = MFI->getStackSize(); in emitPrologue() local
324 (!STI.isTargetWindows() || !WindowsRequiresStackProbe(MF, NumBytes))) { in emitPrologue()
325 if (NumBytes - ArgRegsSaveSize != 0) { in emitPrologue()
326 emitSPUpdate(isARM, MBB, MBBI, dl, TII, -(NumBytes - ArgRegsSaveSize), in emitPrologue()
329 NumBytes - ArgRegsSaveSize, true); in emitPrologue()
[all …]
/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/
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/unittests/MC/
DDisassembler.cpp39 unsigned NumBytes = sizeof(Bytes); in TEST() local
42 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString, in TEST()
48 NumBytes -= InstSize; in TEST()
50 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString, in TEST()
56 NumBytes -= InstSize; in TEST()
58 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString, in TEST()
/external/llvm/lib/Target/MSP430/
DMSP430FrameLowering.cpp55 uint64_t NumBytes = 0; in emitPrologue() local
59 NumBytes = FrameSize - MSP430FI->getCalleeSavedFrameSize(); in emitPrologue()
64 MFI->setOffsetAdjustment(-NumBytes); in emitPrologue()
80 NumBytes = StackSize - MSP430FI->getCalleeSavedFrameSize(); in emitPrologue()
89 if (NumBytes) { // adjust stack pointer: SP -= numbytes in emitPrologue()
97 if (NumBytes) { in emitPrologue()
100 .addReg(MSP430::SP).addImm(NumBytes); in emitPrologue()
128 uint64_t NumBytes = 0; in emitEpilogue() local
133 NumBytes = FrameSize - CSSize; in emitEpilogue()
138 NumBytes = StackSize - CSSize; in emitEpilogue()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64FrameLowering.cpp128 unsigned NumBytes = AFI->getLocalStackSize(); in canUseRedZone() local
133 if (MFI->hasCalls() || hasFP(MF) || NumBytes > 128) in canUseRedZone()
272 int NumBytes = (int)MFI->getStackSize(); in emitPrologue() local
277 AFI->setLocalStackSize(NumBytes); in emitPrologue()
284 if (NumBytes && !canUseRedZone(MF)) { in emitPrologue()
285 emitFrameOffset(MBB, MBBI, DL, AArch64::SP, AArch64::SP, -NumBytes, TII, in emitPrologue()
290 MCCFIInstruction::createDefCfaOffset(FrameLabel, -NumBytes)); in emitPrologue()
294 } else if (NumBytes) { in emitPrologue()
325 NumBytes -= 16; in emitPrologue()
327 assert(NumBytes >= 0 && "Negative stack allocation size!?"); in emitPrologue()
[all …]
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOAArch64.h38 unsigned NumBytes = 1 << RE.Size; in decodeAddend() local
45 assert((NumBytes == 4 || NumBytes == 8) && "Invalid relocation size."); in decodeAddend()
52 assert(NumBytes == 4 && "Invalid relocation size."); in decodeAddend()
63 if (NumBytes == 4) in decodeAddend()
133 void encodeAddend(uint8_t *LocalAddress, unsigned NumBytes, in encodeAddend() argument
140 assert((NumBytes == 4 || NumBytes == 8) && "Invalid relocation size."); in encodeAddend()
147 assert(NumBytes == 4 && "Invalid relocation size."); in encodeAddend()
158 if (NumBytes == 4) in encodeAddend()
DRuntimeDyldMachOI386.h144 unsigned NumBytes = 1 << Size; in processSECTDIFFRelocation() local
145 uint64_t Addend = readBytesUnaligned(LocalAddress, NumBytes); in processSECTDIFFRelocation()
204 unsigned NumBytes = 1 << Size; in processI386ScatteredVANILLA() local
205 int64_t Addend = readBytesUnaligned(LocalAddress, NumBytes); in processI386ScatteredVANILLA()
/external/clang/include/clang/Rewrite/Core/
DRewriteRope.h155 void erase(unsigned Offset, unsigned NumBytes);
202 void erase(unsigned Offset, unsigned NumBytes) { in erase() argument
203 assert(Offset+NumBytes <= size() && "Invalid region to erase!"); in erase()
204 if (NumBytes == 0) return; in erase()
205 Chunks.erase(Offset, NumBytes); in erase()
/external/llvm/lib/Target/X86/
DX86FrameLowering.cpp210 unsigned StackPtr, int64_t NumBytes, in emitSPUpdate() argument
213 bool isSub = NumBytes < 0; in emitSPUpdate()
214 uint64_t Offset = isSub ? -NumBytes : NumBytes; in emitSPUpdate()
294 unsigned StackPtr, uint64_t *NumBytes = nullptr) { in mergeSPUpdatesUp() argument
303 if (NumBytes) in mergeSPUpdatesUp()
304 *NumBytes += PI->getOperand(2).getImm(); in mergeSPUpdatesUp()
309 if (NumBytes) in mergeSPUpdatesUp()
310 *NumBytes -= PI->getOperand(2).getImm(); in mergeSPUpdatesUp()
666 uint64_t NumBytes = 0; in emitPrologue() local
676 NumBytes = FrameSize - X86FI->getCalleeSavedFrameSize(); in emitPrologue()
[all …]
DX86MCInstLower.cpp67 static void EmitNops(MCStreamer &OS, unsigned NumBytes, bool Is64Bit,
757 static void EmitNops(MCStreamer &OS, unsigned NumBytes, bool Is64Bit, const MCSubtargetInfo &STI) { in EmitNops() argument
761 while (NumBytes) { in EmitNops()
765 switch (NumBytes) { in EmitNops()
767 case 1: NumBytes -= 1; Opc = X86::NOOP; break; in EmitNops()
768 case 2: NumBytes -= 2; Opc = X86::XCHG16ar; break; in EmitNops()
769 case 3: NumBytes -= 3; Opc = X86::NOOPL; break; in EmitNops()
770 case 4: NumBytes -= 4; Opc = X86::NOOPL; Displacement = 8; break; in EmitNops()
771 case 5: NumBytes -= 5; Opc = X86::NOOPL; Displacement = 8; in EmitNops()
773 case 6: NumBytes -= 6; Opc = X86::NOOPW; Displacement = 8; in EmitNops()
[all …]
/external/deqp/framework/common/
DtcuFormatUtil.hpp134 template <typename T, int NumBytes = sizeof(T)>
152 return stream << Hex<NumBytes*2>(m_value); in toStream()
161 return Hex<NumBytes*2>(m_value).toString(); in toString()
169 template <typename T, int NumBytes>
170 inline std::ostream& operator<< (std::ostream& stream, const Enum<T, NumBytes>& fmt) { return fmt.t… in operator <<()
/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.cpp287 unsigned Reg, int64_t NumBytes, in emitIncrement() argument
289 while (NumBytes) { in emitIncrement()
291 int64_t ThisVal = NumBytes; in emitIncrement()
292 if (isInt<16>(NumBytes)) in emitIncrement()
308 NumBytes -= ThisVal; in emitIncrement()
434 uint64_t NumBytes = Offset - 0x7fff8; in emitEpilogue() local
436 NumBytes, ZII); in emitEpilogue()
437 Offset -= NumBytes; in emitEpilogue()
/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/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.cpp122 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup() local
127 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
128 unsigned Idx = IsLittleEndian ? i : (NumBytes - 1 - i); in applyFixup()
/external/llvm/lib/Support/
Draw_ostream.cpp309 size_t NumBytes = OutBufEnd - OutBufCur; in write() local
315 assert(NumBytes != 0 && "undefined behavior"); in write()
316 size_t BytesToWrite = Size - (Size % NumBytes); in write()
329 copy_to_buffer(Ptr, NumBytes); in write()
331 return write(Ptr + NumBytes, Size - NumBytes); in write()
/external/llvm/lib/Target/Hexagon/
DHexagonFrameLowering.cpp87 int NumBytes = (int) MFI->getStackSize(); in emitPrologue() local
121 if (NumBytes >= ALLOCFRAME_MAX) { in emitPrologue()
127 HEXAGON_RESERVED_REG_1).addImm(NumBytes); in emitPrologue()
133 BuildMI(MBB, InsertPt, dl, TII.get(Hexagon::S2_allocframe)).addImm(NumBytes); in emitPrologue()
/external/llvm/include/llvm/MC/
DMCObjectStreamer.h135 void EmitFill(uint64_t NumBytes, uint8_t FillValue) override;
136 void EmitZeros(uint64_t NumBytes) override;
/external/llvm/lib/Target/Mips/MCTargetDesc/
DMipsAsmBackend.cpp196 unsigned NumBytes = (getFixupKindInfo(Kind).TargetSize + 7) / 8; in applyFixup() local
221 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
233 for (unsigned i = 0; i != NumBytes; ++i) { in applyFixup()
/external/llvm/lib/MC/
DMCObjectStreamer.cpp410 void MCObjectStreamer::EmitFill(uint64_t NumBytes, uint8_t FillValue) { in EmitFill() argument
413 getOrCreateDataFragment()->getContents().append(NumBytes, FillValue); in EmitFill()
416 void MCObjectStreamer::EmitZeros(uint64_t NumBytes) { in EmitZeros() argument
420 insert(new MCFillFragment(0, ItemSize, NumBytes)); in EmitZeros()

123