/external/llvm/lib/Target/Alpha/ |
D | AlphaFrameLowering.cpp | 65 long NumBytes = MFI->getStackSize(); in emitPrologue() local 68 NumBytes += 8; //reserve space for the old FP in emitPrologue() 71 if (NumBytes == 0) return; in emitPrologue() 74 NumBytes = (NumBytes+Align-1)/Align*Align; in emitPrologue() 77 MFI->setStackSize(NumBytes); in emitPrologue() 80 NumBytes = -NumBytes; in emitPrologue() 81 if (NumBytes >= Alpha::IMM_LOW) { in emitPrologue() 82 BuildMI(MBB, MBBI, dl, TII.get(Alpha::LDA), Alpha::R30).addImm(NumBytes) in emitPrologue() 84 } else if (getUpper16(NumBytes) >= Alpha::IMM_LOW) { in emitPrologue() 86 .addImm(getUpper16(NumBytes)).addReg(Alpha::R30); in emitPrologue() [all …]
|
/external/llvm/lib/Target/Sparc/ |
D | SparcFrameLowering.cpp | 38 int NumBytes = (int) MFI->getStackSize(); in emitPrologue() local 47 NumBytes += 92; in emitPrologue() 51 NumBytes = (NumBytes + 7) & ~7; in emitPrologue() 52 NumBytes = -NumBytes; in emitPrologue() 54 if (NumBytes >= -4096) { in emitPrologue() 56 .addReg(SP::O6).addImm(NumBytes); in emitPrologue() 60 unsigned OffHi = (unsigned)NumBytes >> 10U; in emitPrologue() 64 .addReg(SP::G1).addImm(NumBytes & ((1 << 10)-1)); in emitPrologue()
|
/external/llvm/lib/Target/ARM/ |
D | Thumb1FrameLowering.cpp | 42 int NumBytes, unsigned MIFlags = MachineInstr::NoFlags) { in emitSPUpdate() argument 43 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, in emitSPUpdate() 58 unsigned NumBytes = MFI->getStackSize(); in emitPrologue() local 65 NumBytes = (NumBytes + 3) & ~3; in emitPrologue() 66 MFI->setStackSize(NumBytes); in emitPrologue() 78 if (NumBytes != 0) in emitPrologue() 79 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -NumBytes, in emitPrologue() 125 unsigned DPRCSOffset = NumBytes - (GPRCS1Size + GPRCS2Size + DPRCSSize); in emitPrologue() 128 AFI->setFramePtrSpillOffset(MFI->getObjectOffset(FramePtrSpillFI) + NumBytes); in emitPrologue() 132 NumBytes = DPRCSOffset; in emitPrologue() [all …]
|
D | Thumb2InstrInfo.cpp | 174 unsigned DestReg, unsigned BaseReg, int NumBytes, in emitT2RegPlusImmediate() argument 177 bool isSub = NumBytes < 0; in emitT2RegPlusImmediate() 178 if (isSub) NumBytes = -NumBytes; in emitT2RegPlusImmediate() 183 NumBytes >= 4096 && in emitT2RegPlusImmediate() 184 ARM_AM::getT2SOImmVal(NumBytes) == -1) { in emitT2RegPlusImmediate() 186 if (NumBytes < 65536) { in emitT2RegPlusImmediate() 189 .addImm(NumBytes) in emitT2RegPlusImmediate() 192 } else if ((NumBytes & 0xffff) == 0) { in emitT2RegPlusImmediate() 196 .addImm(NumBytes >> 16) in emitT2RegPlusImmediate() 219 while (NumBytes) { in emitT2RegPlusImmediate() [all …]
|
D | Thumb1RegisterInfo.cpp | 93 int NumBytes, bool CanChangeCC, in emitThumbRegPlusImmInReg() argument 105 if (NumBytes < 0 && !isHigh && CanChangeCC) { in emitThumbRegPlusImmInReg() 107 NumBytes = -NumBytes; in emitThumbRegPlusImmInReg() 115 if (NumBytes <= 255 && NumBytes >= 0) in emitThumbRegPlusImmInReg() 117 .addImm(NumBytes).setMIFlags(MIFlags); in emitThumbRegPlusImmInReg() 118 else if (NumBytes < 0 && NumBytes >= -255) { in emitThumbRegPlusImmInReg() 120 .addImm(NumBytes).setMIFlags(MIFlags); in emitThumbRegPlusImmInReg() 124 MRI.emitLoadConstPool(MBB, MBBI, dl, LdReg, 0, NumBytes, in emitThumbRegPlusImmInReg() 170 int NumBytes, const TargetInstrInfo &TII, in emitThumbRegPlusImmediate() argument 173 bool isSub = NumBytes < 0; in emitThumbRegPlusImmediate() [all …]
|
D | ARMFrameLowering.cpp | 109 int NumBytes, unsigned MIFlags = MachineInstr::NoFlags) { in emitSPUpdate() argument 111 emitARMRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, in emitSPUpdate() 114 emitT2RegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, in emitSPUpdate() 131 unsigned NumBytes = MFI->getStackSize(); in emitPrologue() local 147 if (NumBytes != 0) in emitPrologue() 148 emitSPUpdate(isARM, MBB, MBBI, dl, TII, -NumBytes, in emitPrologue() 209 unsigned DPRCSOffset = NumBytes - (GPRCS1Size + GPRCS2Size + DPRCSSize); in emitPrologue() 214 NumBytes); in emitPrologue() 228 NumBytes = DPRCSOffset; in emitPrologue() 229 if (NumBytes) { in emitPrologue() [all …]
|
D | ARMAsmBackend.cpp | 400 unsigned NumBytes = 4; // FIXME: 2 for Thumb in ApplyFixup() local 409 for (unsigned i = 0; i != NumBytes; ++i) in ApplyFixup() 480 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in ApplyFixup() local 485 assert(Offset + NumBytes <= DataSize && "Invalid fixup offset!"); in ApplyFixup() 489 for (unsigned i = 0; i != NumBytes; ++i) in ApplyFixup()
|
D | ARMBaseInstrInfo.h | 472 unsigned DestReg, unsigned BaseReg, int NumBytes, 478 unsigned DestReg, unsigned BaseReg, int NumBytes, 484 int NumBytes, const TargetInstrInfo &TII,
|
D | ARMFastISel.cpp | 198 unsigned &NumBytes); 201 unsigned &NumBytes); 1543 unsigned &NumBytes) { in ProcessCallArgs() argument 1549 NumBytes = CCInfo.getNextStackOffset(); in ProcessCallArgs() 1555 .addImm(NumBytes)); in ProcessCallArgs() 1648 unsigned &NumBytes) { in FinishCall() argument 1653 .addImm(NumBytes).addImm(0)); in FinishCall() 1821 unsigned NumBytes; in ARMEmitLibcall() local 1822 if (!ProcessCallArgs(Args, ArgRegs, ArgVTs, ArgFlags, RegArgs, CC, NumBytes)) in ARMEmitLibcall() 1846 if (!FinishCall(RetVT, UsedRegs, I, CC, NumBytes)) return false; in ARMEmitLibcall() [all …]
|
/external/clang/lib/Rewrite/ |
D | RewriteRope.cpp | 120 void erase(unsigned Offset, unsigned NumBytes); 224 void erase(unsigned Offset, unsigned NumBytes); 341 void RopePieceBTreeLeaf::erase(unsigned Offset, unsigned NumBytes) { in erase() argument 354 for (; Offset+NumBytes > PieceOffs+getPiece(i).size(); ++i) in erase() 358 if (Offset+NumBytes == PieceOffs+getPiece(i).size()) in erase() 373 NumBytes -= CoverBytes; in erase() 378 if (NumBytes == 0) return; in erase() 382 assert(getPiece(StartPiece).size() > NumBytes); in erase() 383 Pieces[StartPiece].StartOffs += NumBytes; in erase() 386 Size -= NumBytes; in erase() [all …]
|
/external/llvm/lib/Target/MSP430/ |
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: 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/X86/ |
D | X86FrameLowering.cpp | 142 unsigned StackPtr, int64_t NumBytes, in emitSPUpdate() argument 145 bool isSub = NumBytes < 0; in emitSPUpdate() 146 uint64_t Offset = isSub ? -NumBytes : NumBytes; in emitSPUpdate() 187 unsigned StackPtr, uint64_t *NumBytes = NULL) { in mergeSPUpdatesUp() argument 195 if (NumBytes) in mergeSPUpdatesUp() 196 *NumBytes += PI->getOperand(2).getImm(); in mergeSPUpdatesUp() 201 if (NumBytes) in mergeSPUpdatesUp() 202 *NumBytes -= PI->getOperand(2).getImm(); in mergeSPUpdatesUp() 211 unsigned StackPtr, uint64_t *NumBytes = NULL) { in mergeSPUpdatesDown() argument 224 if (NumBytes) in mergeSPUpdatesDown() [all …]
|
/external/clang/include/clang/Rewrite/ |
D | RewriteRope.h | 167 void erase(unsigned Offset, unsigned NumBytes); 219 void erase(unsigned Offset, unsigned NumBytes) { in erase() argument 220 assert(Offset+NumBytes <= size() && "Invalid region to erase!"); in erase() 221 if (NumBytes == 0) return; in erase() 222 Chunks.erase(Offset, NumBytes); in erase()
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZFrameLowering.cpp | 68 int64_t NumBytes, const TargetInstrInfo &TII) { in emitSPUpdate() argument 70 bool isSub = NumBytes < 0; in emitSPUpdate() 71 uint64_t Offset = isSub ? -NumBytes : NumBytes; in emitSPUpdate() 110 uint64_t NumBytes = StackSize - getOffsetOfLocalArea(); in emitPrologue() local 125 emitSPUpdate(MBB, MBBI, -(int64_t)NumBytes, TII); in emitPrologue() 162 uint64_t NumBytes = StackSize - getOffsetOfLocalArea(); in emitEpilogue() local 189 uint64_t Offset = NumBytes + MI.getOperand(i).getImm(); in emitEpilogue() 194 NumBytes = Offset - 524287; in emitEpilogue() 196 emitSPUpdate(MBB, MBBI, NumBytes, TII); in emitEpilogue()
|
/external/llvm/lib/Support/Windows/ |
D | Memory.inc | 27 MemoryBlock Memory::AllocateRWX(size_t NumBytes, 30 if (NumBytes == 0) return MemoryBlock(); 33 size_t NumPages = (NumBytes+pageSize-1)/pageSize;
|
/external/llvm/lib/Support/Unix/ |
D | Memory.inc | 32 llvm::sys::Memory::AllocateRWX(size_t NumBytes, const MemoryBlock* NearBlock, 34 if (NumBytes == 0) return MemoryBlock(); 37 size_t NumPages = (NumBytes+pageSize-1)/pageSize; 69 return AllocateRWX(NumBytes, 0);
|
/external/llvm/lib/Target/PTX/ |
D | PTXMCAsmStreamer.cpp | 152 virtual void EmitFill(uint64_t NumBytes, uint8_t FillValue, 407 void PTXMCAsmStreamer::EmitFill(uint64_t NumBytes, uint8_t FillValue, in EmitFill() argument 409 if (NumBytes == 0) return; in EmitFill() 413 OS << ZeroDirective << NumBytes; in EmitFill() 421 MCStreamer::EmitFill(NumBytes, FillValue, AddrSpace); in EmitFill()
|
/external/llvm/lib/Support/ |
D | raw_ostream.cpp | 298 size_t NumBytes = OutBufEnd - OutBufCur; in write() local 304 size_t BytesToWrite = Size - (Size % NumBytes); in write() 312 copy_to_buffer(Ptr, NumBytes); in write() 314 return write(Ptr + NumBytes, Size - NumBytes); in write()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopIdiomRecognize.cpp | 510 Value *NumBytes = in processLoopStridedStore() local 515 NewCall = Builder.CreateMemSet(BasePtr, SplatValue,NumBytes,StoreAlignment); in processLoopStridedStore() 532 NewCall = Builder.CreateCall3(MSP, BasePtr, PatternPtr, NumBytes); in processLoopStridedStore() 616 Value *NumBytes = in processLoopStoreOfLoopLoad() local 620 Builder.CreateMemCpy(StoreBasePtr, LoadBasePtr, NumBytes, in processLoopStoreOfLoopLoad()
|
/external/llvm/utils/TableGen/ |
D | DAGISelMatcherEmitter.cpp | 105 unsigned NumBytes = 0; in GetVBRSize() local 108 ++NumBytes; in GetVBRSize() 110 return NumBytes+1; in GetVBRSize() 122 unsigned NumBytes = 0; in EmitVBRValue() local 126 ++NumBytes; in EmitVBRValue() 132 return NumBytes+1; in EmitVBRValue()
|
/external/llvm/include/llvm/MC/ |
D | MCStreamer.h | 386 virtual void EmitFill(uint64_t NumBytes, uint8_t FillValue, 391 void EmitZeros(uint64_t NumBytes, unsigned AddrSpace) { in EmitZeros() argument 392 EmitFill(NumBytes, 0, AddrSpace); in EmitZeros()
|
/external/llvm/include/llvm/Support/ |
D | Memory.h | 56 static MemoryBlock AllocateRWX(size_t NumBytes,
|
/external/llvm/lib/MC/ |
D | MCLoggingStreamer.cpp | 179 virtual void EmitFill(uint64_t NumBytes, uint8_t FillValue, in EmitFill() argument 182 return Child->EmitFill(NumBytes, FillValue, AddrSpace); in EmitFill()
|
D | MCAsmStreamer.cpp | 184 virtual void EmitFill(uint64_t NumBytes, uint8_t FillValue, 655 void MCAsmStreamer::EmitFill(uint64_t NumBytes, uint8_t FillValue, in EmitFill() argument 657 if (NumBytes == 0) return; in EmitFill() 661 OS << ZeroDirective << NumBytes; in EmitFill() 669 MCStreamer::EmitFill(NumBytes, FillValue, AddrSpace); in EmitFill()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | DwarfCompileUnit.cpp | 478 int NumBytes = FltVal.getBitWidth() / 8; // 8 bits per byte. in addConstantFPValue() local 481 int Start = (LittleEndian ? 0 : NumBytes - 1); in addConstantFPValue() 482 int Stop = (LittleEndian ? NumBytes : -1); in addConstantFPValue() 520 int NumBytes = Val.getBitWidth() / 8; // 8 bits per byte. in addConstantValue() local 523 int Start = (LittleEndian ? 0 : NumBytes - 1); in addConstantValue() 524 int Stop = (LittleEndian ? NumBytes : -1); in addConstantValue()
|