/external/llvm/lib/Target/Sparc/ |
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() 112 int NumBytes = (int) MFI->getStackSize(); in emitPrologue() local 117 if (NumBytes == 0) in emitPrologue() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | Thumb1FrameLowering.cpp | 46 int NumBytes, unsigned MIFlags = MachineInstr::NoFlags) { in emitSPUpdate() argument 47 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() 113 NumBytes = (NumBytes + 3) & ~3; in emitPrologue() 114 MFI->setStackSize(NumBytes); in emitPrologue() 133 if (NumBytes - ArgRegsSaveSize != 0) { in emitPrologue() 134 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -(NumBytes - ArgRegsSaveSize), in emitPrologue() 136 CFAOffset -= NumBytes - ArgRegsSaveSize; in emitPrologue() 178 unsigned DPRCSOffset = NumBytes - ArgRegsSaveSize - (GPRCS1Size + GPRCS2Size + DPRCSSize); in emitPrologue() [all …]
|
D | Thumb2InstrInfo.cpp | 218 unsigned DestReg, unsigned BaseReg, int NumBytes, in emitT2RegPlusImmediate() argument 221 if (NumBytes == 0 && DestReg != BaseReg) { in emitT2RegPlusImmediate() 228 bool isSub = NumBytes < 0; in emitT2RegPlusImmediate() 229 if (isSub) NumBytes = -NumBytes; in emitT2RegPlusImmediate() 234 NumBytes >= 4096 && in emitT2RegPlusImmediate() 235 ARM_AM::getT2SOImmVal(NumBytes) == -1) { in emitT2RegPlusImmediate() 237 if (NumBytes < 65536) { in emitT2RegPlusImmediate() 240 .addImm(NumBytes) in emitT2RegPlusImmediate() 243 } else if ((NumBytes & 0xffff) == 0) { in emitT2RegPlusImmediate() 247 .addImm(NumBytes >> 16) in emitT2RegPlusImmediate() [all …]
|
D | ThumbRegisterInfo.cpp | 128 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 …]
|
D | ARMFrameLowering.cpp | 126 unsigned SrcReg, int NumBytes, in emitRegPlusImmediate() argument 131 emitARMRegPlusImmediate(MBB, MBBI, dl, DestReg, SrcReg, NumBytes, in emitRegPlusImmediate() 134 emitT2RegPlusImmediate(MBB, MBBI, dl, DestReg, SrcReg, NumBytes, in emitRegPlusImmediate() 140 const ARMBaseInstrInfo &TII, int NumBytes, in emitSPUpdate() argument 144 emitRegPlusImmediate(isARM, MBB, MBBI, dl, TII, ARM::SP, ARM::SP, NumBytes, in emitSPUpdate() 306 unsigned NumBytes = MFI->getStackSize(); in emitPrologue() local 337 (!STI.isTargetWindows() || !WindowsRequiresStackProbe(MF, NumBytes))) { in emitPrologue() 338 if (NumBytes - ArgRegsSaveSize != 0) { in emitPrologue() 339 emitSPUpdate(isARM, MBB, MBBI, dl, TII, -(NumBytes - ArgRegsSaveSize), in emitPrologue() 342 NumBytes - ArgRegsSaveSize, true); in emitPrologue() [all …]
|
/external/clang/lib/Rewrite/ |
D | RewriteRope.cpp | 118 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/ |
D | Disassembler.cpp | 39 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/ |
D | MSP430FrameLowering.cpp | 56 uint64_t NumBytes = 0; in emitPrologue() local 60 NumBytes = FrameSize - MSP430FI->getCalleeSavedFrameSize(); in emitPrologue() 65 MFI->setOffsetAdjustment(-NumBytes); in emitPrologue() 81 NumBytes = StackSize - MSP430FI->getCalleeSavedFrameSize(); in emitPrologue() 90 if (NumBytes) { // adjust stack pointer: SP -= numbytes in emitPrologue() 98 if (NumBytes) { in emitPrologue() 101 .addReg(MSP430::SP).addImm(NumBytes); in emitPrologue() 129 uint64_t NumBytes = 0; in emitEpilogue() local 134 NumBytes = FrameSize - CSSize; in emitEpilogue() 139 NumBytes = StackSize - CSSize; in emitEpilogue() [all …]
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64FrameLowering.cpp | 128 unsigned NumBytes = AFI->getLocalStackSize(); in canUseRedZone() local 133 if (MFI->hasCalls() || hasFP(MF) || NumBytes > 128) in canUseRedZone() 300 int NumBytes = (int)MFI->getStackSize(); in emitPrologue() local 305 AFI->setLocalStackSize(NumBytes); in emitPrologue() 312 if (NumBytes && !canUseRedZone(MF)) { in emitPrologue() 313 emitFrameOffset(MBB, MBBI, DL, AArch64::SP, AArch64::SP, -NumBytes, TII, in emitPrologue() 318 MCCFIInstruction::createDefCfaOffset(FrameLabel, -NumBytes)); in emitPrologue() 322 } else if (NumBytes) { in emitPrologue() 337 NumBytes -= 16; in emitPrologue() 339 assert(NumBytes >= 0 && "Negative stack allocation size!?"); in emitPrologue() [all …]
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOAArch64.h | 38 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()
|
D | RuntimeDyldMachOX86_64.h | 158 unsigned NumBytes = 1 << Size; in processSubtractRelocation() local 167 SignExtend64(readBytesUnaligned(LocalAddress, NumBytes), NumBytes * 8); in processSubtractRelocation()
|
/external/clang/include/clang/Rewrite/Core/ |
D | RewriteRope.h | 155 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/tpm2/ |
D | TcpServer.c | 15 BOOL ReadBytes(SOCKET s, char* buffer, int NumBytes); 18 BOOL WriteBytes(SOCKET s, char* buffer, int NumBytes); 322 int NumBytes in ReadBytes() argument 327 while(numGot<NumBytes) in ReadBytes() 329 res = recv(s, buffer+numGot, NumBytes-numGot, 0); in ReadBytes() 353 int NumBytes in WriteBytes() argument 358 while(numSent<NumBytes) in WriteBytes() 360 res = send(s, buffer+numSent, NumBytes-numSent, 0); in WriteBytes()
|
/external/llvm/lib/Target/X86/ |
D | X86FrameLowering.cpp | 250 int64_t NumBytes, bool InEpilogue) const { in emitSPUpdate() argument 251 bool isSub = NumBytes < 0; in emitSPUpdate() 252 uint64_t Offset = isSub ? -NumBytes : NumBytes; in emitSPUpdate() 998 uint64_t NumBytes = 0; in emitPrologue() local 1026 NumBytes = FrameSize - X86FI->getCalleeSavedFrameSize(); in emitPrologue() 1030 NumBytes = RoundUpToAlignment(NumBytes, MaxAlign); in emitPrologue() 1036 MFI->setOffsetAdjustment(-NumBytes); in emitPrologue() 1038 assert(MFI->getOffsetAdjustment() == -(int)NumBytes && in emitPrologue() 1090 NumBytes = StackSize - X86FI->getCalleeSavedFrameSize(); in emitPrologue() 1095 unsigned ParentFrameNumBytes = NumBytes; in emitPrologue() [all …]
|
D | X86MCInstLower.cpp | 71 static void EmitNops(MCStreamer &OS, unsigned NumBytes, bool Is64Bit, 792 static void EmitNops(MCStreamer &OS, unsigned NumBytes, bool Is64Bit, const MCSubtargetInfo &STI) { in EmitNops() argument 796 while (NumBytes) { in EmitNops() 800 switch (NumBytes) { in EmitNops() 802 case 1: NumBytes -= 1; Opc = X86::NOOP; break; in EmitNops() 803 case 2: NumBytes -= 2; Opc = X86::XCHG16ar; break; in EmitNops() 804 case 3: NumBytes -= 3; Opc = X86::NOOPL; break; in EmitNops() 805 case 4: NumBytes -= 4; Opc = X86::NOOPL; Displacement = 8; break; in EmitNops() 806 case 5: NumBytes -= 5; Opc = X86::NOOPL; Displacement = 8; in EmitNops() 808 case 6: NumBytes -= 6; Opc = X86::NOOPW; Displacement = 8; in EmitNops() [all …]
|
/external/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
D | WebAssemblyAsmBackend.cpp | 76 unsigned NumBytes = RoundUpToAlignment(Info.TargetSize, 8); in applyFixup() local 84 assert(Offset + NumBytes <= DataSize && "Invalid fixup offset!"); in applyFixup() 88 for (unsigned i = 0; i != NumBytes; ++i) in applyFixup()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | DwarfStringPool.cpp | 28 Entry.Offset = NumBytes; in getEntry() 31 NumBytes += Str.size() + 1; in getEntry() 32 assert(NumBytes > Entry.Offset && "Unexpected overflow"); in getEntry()
|
/external/deqp/framework/common/ |
D | tcuFormatUtil.hpp | 134 template <typename T, size_t NumBytes = sizeof(T)> 152 return stream << Hex<NumBytes*2>((deUint64)m_value); in toStream() 161 return Hex<NumBytes*2>((deUint64)m_value).toString(); in toString() 169 template <typename T, size_t NumBytes> 170 inline std::ostream& operator<< (std::ostream& stream, const Enum<T, NumBytes>& fmt) { return fmt.t… in operator <<()
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZFrameLowering.cpp | 289 unsigned Reg, int64_t NumBytes, in emitIncrement() argument 291 while (NumBytes) { in emitIncrement() 293 int64_t ThisVal = NumBytes; in emitIncrement() 294 if (isInt<16>(NumBytes)) in emitIncrement() 310 NumBytes -= ThisVal; in emitIncrement() 443 uint64_t NumBytes = Offset - 0x7fff8; in emitEpilogue() local 445 NumBytes, ZII); in emitEpilogue() 446 Offset -= NumBytes; in emitEpilogue()
|
/external/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
D | AMDGPUAsmBackend.cpp | 123 unsigned NumBytes = getFixupKindNumBytes(Fixup.getKind()); in applyFixup() local 132 assert(Offset + NumBytes <= DataSize && "Invalid fixup offset!"); in applyFixup() 136 for (unsigned i = 0; i != NumBytes; ++i) in applyFixup()
|
/external/llvm/lib/Support/Unix/ |
D | Memory.inc | 82 Memory::allocateMappedMemory(size_t NumBytes, 87 if (NumBytes == 0) 91 const size_t NumPages = (NumBytes+PageSize-1)/PageSize; 123 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/Windows/ |
D | Memory.inc | 70 MemoryBlock Memory::allocateMappedMemory(size_t NumBytes, 75 if (NumBytes == 0) 90 const size_t NumBlocks = (NumBytes+Granularity-1)/Granularity; 109 return allocateMappedMemory(NumBytes, NULL, Flags, EC); 164 MemoryBlock Memory::AllocateRWX(size_t NumBytes, 169 MB = allocateMappedMemory(NumBytes, NearBlock,
|
/external/llvm/lib/Target/PowerPC/MCTargetDesc/ |
D | PPCAsmBackend.cpp | 122 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/ |
D | raw_ostream.cpp | 309 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/include/llvm/Support/ |
D | Memory.h | 78 static MemoryBlock allocateMappedMemory(size_t NumBytes, 122 static MemoryBlock AllocateRWX(size_t NumBytes,
|