/external/swiftshader/third_party/llvm-7.0/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() 81 unsigned NumBytes = sizeof(Bytes); in TEST() local 84 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString, in TEST() 90 NumBytes -= InstSize; in TEST() 92 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString, in TEST() [all …]
|
/external/ltp/testcases/kernel/io/disktest/ |
D | dump.c | 112 size_t TotalRemainingBytes, NumBytes, ibuff_siz, obuff_siz; in dump_data() local 118 NumBytes = 0; in dump_data() 148 NumBytes = ibuff_siz; in dump_data() 149 buff_curr += NumBytes; in dump_data() 152 NumBytes = TotalRemainingBytes; in dump_data() 157 format_str(NumBytes, ibuff, ibuff_siz, obuff, in dump_data() 162 format_raw(NumBytes, ibuff, obuff, obuff_siz); in dump_data() 178 ssize_t NumBytes = 0; in do_dump() local 208 NumBytes = Read(fd, buff, args->htrsiz * BLK_SIZE); in do_dump() 209 if ((NumBytes > args->htrsiz * BLK_SIZE) || (NumBytes < 0)) { in do_dump() [all …]
|
/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 | 44 const ThumbRegisterInfo &MRI, int NumBytes, 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() 112 NumBytes = (NumBytes + 3) & ~3; in emitPrologue() 113 MFI->setStackSize(NumBytes); in emitPrologue() 132 if (NumBytes - ArgRegsSaveSize != 0) { in emitPrologue() 133 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -(NumBytes - ArgRegsSaveSize), in emitPrologue() 135 CFAOffset -= NumBytes - ArgRegsSaveSize; in emitPrologue() 177 unsigned DPRCSOffset = NumBytes - ArgRegsSaveSize - (GPRCS1Size + GPRCS2Size + DPRCSSize); in emitPrologue() [all …]
|
D | Thumb2InstrInfo.cpp | 224 unsigned BaseReg, int NumBytes, in emitT2RegPlusImmediate() argument 228 if (NumBytes == 0 && DestReg != BaseReg) { in emitT2RegPlusImmediate() 235 bool isSub = NumBytes < 0; in emitT2RegPlusImmediate() 236 if (isSub) NumBytes = -NumBytes; in emitT2RegPlusImmediate() 241 NumBytes >= 4096 && in emitT2RegPlusImmediate() 242 ARM_AM::getT2SOImmVal(NumBytes) == -1) { in emitT2RegPlusImmediate() 244 if (NumBytes < 65536) { in emitT2RegPlusImmediate() 247 .addImm(NumBytes) in emitT2RegPlusImmediate() 250 } else if ((NumBytes & 0xffff) == 0) { in emitT2RegPlusImmediate() 254 .addImm(NumBytes >> 16) in emitT2RegPlusImmediate() [all …]
|
D | ThumbRegisterInfo.cpp | 125 const DebugLoc &dl, unsigned DestReg, unsigned BaseReg, int NumBytes, in emitThumbRegPlusImmInReg() argument 136 if (NumBytes < 0 && !isHigh && CanChangeCC) { in emitThumbRegPlusImmInReg() 138 NumBytes = -NumBytes; in emitThumbRegPlusImmInReg() 146 if (NumBytes <= 255 && NumBytes >= 0 && CanChangeCC) { in emitThumbRegPlusImmInReg() 148 .addImm(NumBytes) in emitThumbRegPlusImmInReg() 150 } else if (NumBytes < 0 && NumBytes >= -255 && CanChangeCC) { in emitThumbRegPlusImmInReg() 152 .addImm(NumBytes) in emitThumbRegPlusImmInReg() 158 MRI.emitLoadConstPool(MBB, MBBI, dl, LdReg, 0, NumBytes, ARMCC::AL, 0, in emitThumbRegPlusImmInReg() 181 unsigned BaseReg, int NumBytes, in emitThumbRegPlusImmediate() argument 185 bool isSub = NumBytes < 0; in emitThumbRegPlusImmediate() [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() 370 NumBytes -= CoverBytes; in erase() 375 if (NumBytes == 0) return; in erase() 379 assert(getPiece(StartPiece).size() > NumBytes); in erase() 380 Pieces[StartPiece].StartOffs += NumBytes; in erase() 383 Size -= NumBytes; in erase() [all …]
|
/external/swiftshader/third_party/llvm-7.0/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() 113 int NumBytes = (int) MFI.getStackSize(); in emitPrologue() local 118 if (NumBytes == 0) in emitPrologue() [all …]
|
/external/swiftshader/third_party/subzero/pnacl-llvm/ |
D | NaClBitcodeHeader.cpp | 179 unsigned &NumFields, unsigned &NumBytes) { in ReadPrefix() argument 196 NumBytes = static_cast<unsigned>(BufPtr[2]) | in ReadPrefix() 204 unsigned NumFields, unsigned NumBytes) { in ReadFields() argument 205 HeaderSize = NumBytes + (2 * WordSize); in ReadFields() 222 unsigned NumBytes; in Read() local 223 if (ReadPrefix(BufPtr, BufEnd, NumFields, NumBytes)) in Read() 227 if (ReadFields(BufPtr, BufEnd, NumFields, NumBytes)) in Read() 229 BufPtr += NumBytes; in Read() 236 unsigned NumBytes; in Read() local 243 if (ReadPrefix(Buffer, Buffer + sizeof(Buffer), NumFields, NumBytes)) in Read() [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 | 55 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/MSP430/ |
D | MSP430FrameLowering.cpp | 55 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | Thumb1FrameLowering.cpp | 70 const ThumbRegisterInfo &MRI, int NumBytes, in emitSPUpdate() argument 72 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, in emitSPUpdate() 122 unsigned NumBytes = MFI.getStackSize(); in emitPrologue() local 123 assert(NumBytes >= ArgRegsSaveSize && in emitPrologue() 136 NumBytes = (NumBytes + 3) & ~3; in emitPrologue() 137 MFI.setStackSize(NumBytes); in emitPrologue() 156 if (NumBytes - ArgRegsSaveSize != 0) { in emitPrologue() 157 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -(NumBytes - ArgRegsSaveSize), in emitPrologue() 159 CFAOffset -= NumBytes - ArgRegsSaveSize; in emitPrologue() 201 unsigned DPRCSOffset = NumBytes - ArgRegsSaveSize - (GPRCS1Size + GPRCS2Size + DPRCSSize); in emitPrologue() [all …]
|
D | Thumb2InstrInfo.cpp | 239 unsigned BaseReg, int NumBytes, in emitT2RegPlusImmediate() argument 243 if (NumBytes == 0 && DestReg != BaseReg) { in emitT2RegPlusImmediate() 250 bool isSub = NumBytes < 0; in emitT2RegPlusImmediate() 251 if (isSub) NumBytes = -NumBytes; in emitT2RegPlusImmediate() 256 NumBytes >= 4096 && in emitT2RegPlusImmediate() 257 ARM_AM::getT2SOImmVal(NumBytes) == -1) { in emitT2RegPlusImmediate() 259 if (NumBytes < 65536) { in emitT2RegPlusImmediate() 262 .addImm(NumBytes) in emitT2RegPlusImmediate() 265 } else if ((NumBytes & 0xffff) == 0) { in emitT2RegPlusImmediate() 269 .addImm(NumBytes >> 16) in emitT2RegPlusImmediate() [all …]
|
D | ThumbRegisterInfo.cpp | 126 const DebugLoc &dl, unsigned DestReg, unsigned BaseReg, int NumBytes, in emitThumbRegPlusImmInReg() argument 138 if (NumBytes < 0 && !isHigh && CanChangeCC) { in emitThumbRegPlusImmInReg() 140 NumBytes = -NumBytes; in emitThumbRegPlusImmInReg() 148 if (NumBytes <= 255 && NumBytes >= 0 && CanChangeCC) { in emitThumbRegPlusImmInReg() 151 .addImm(NumBytes) in emitThumbRegPlusImmInReg() 153 } else if (NumBytes < 0 && NumBytes >= -255 && CanChangeCC) { in emitThumbRegPlusImmInReg() 156 .addImm(NumBytes) in emitThumbRegPlusImmInReg() 164 .addImm(NumBytes).setMIFlags(MIFlags); in emitThumbRegPlusImmInReg() 166 MRI.emitLoadConstPool(MBB, MBBI, dl, LdReg, 0, NumBytes, ARMCC::AL, 0, in emitThumbRegPlusImmInReg() 189 unsigned BaseReg, int NumBytes, in emitThumbRegPlusImmediate() argument [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() 432 unsigned NumBytes = 1 << Size; in processSubtractRelocation() local 441 SignExtend64(readBytesUnaligned(LocalAddress, NumBytes), NumBytes * 8); in processSubtractRelocation()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64FrameLowering.cpp | 129 unsigned NumBytes = AFI->getLocalStackSize(); in canUseRedZone() local 131 return !(MFI->hasCalls() || hasFP(MF) || NumBytes > 128); in canUseRedZone() 429 int NumBytes = (int)MFI->getStackSize(); in emitPrologue() local 434 AFI->setLocalStackSize(NumBytes); in emitPrologue() 436 if (!NumBytes) in emitPrologue() 443 emitFrameOffset(MBB, MBBI, DL, AArch64::SP, AArch64::SP, -NumBytes, TII, in emitPrologue() 450 MCCFIInstruction::createDefCfaOffset(FrameLabel, -NumBytes)); in emitPrologue() 460 AFI->setLocalStackSize(NumBytes - CSStackSize); in emitPrologue() 462 bool CombineSPBump = shouldCombineCSRLocalStackBump(MF, NumBytes); in emitPrologue() 464 emitFrameOffset(MBB, MBBI, DL, AArch64::SP, AArch64::SP, -NumBytes, TII, in emitPrologue() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOAArch64.h | 38 unsigned NumBytes = 1 << RE.Size; in decodeAddend() local 54 if (NumBytes != 4 && NumBytes != 8) { in decodeAddend() 71 assert(NumBytes == 4 && "Invalid relocation size."); in decodeAddend() 83 if (NumBytes == 4) in decodeAddend() 156 void encodeAddend(uint8_t *LocalAddress, unsigned NumBytes, in encodeAddend() argument 164 assert((NumBytes == 4 || NumBytes == 8) && "Invalid relocation size."); in encodeAddend() 171 assert(NumBytes == 4 && "Invalid relocation size."); in encodeAddend() 183 if (NumBytes == 4) in encodeAddend() 492 unsigned NumBytes = 1 << Size; in processSubtractRelocation() local 501 SignExtend64(readBytesUnaligned(LocalAddress, NumBytes), NumBytes * 8); in processSubtractRelocation()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/ |
D | AArch64FrameLowering.cpp | 194 unsigned NumBytes = AFI->getLocalStackSize(); in canUseRedZone() local 196 return !(MFI.hasCalls() || hasFP(MF) || NumBytes > 128); in canUseRedZone() 576 int NumBytes = (int)MFI.getStackSize(); in emitPrologue() local 577 if (!AFI->hasStackFrame() && !windowsRequiresStackProbe(MF, NumBytes)) { in emitPrologue() 581 AFI->setLocalStackSize(NumBytes); in emitPrologue() 583 if (!NumBytes) in emitPrologue() 591 emitFrameOffset(MBB, MBBI, DL, AArch64::SP, AArch64::SP, -NumBytes, TII, in emitPrologue() 598 MCCFIInstruction::createDefCfaOffset(FrameLabel, -NumBytes)); in emitPrologue() 612 AFI->setLocalStackSize(NumBytes - PrologueSaveSize); in emitPrologue() 614 bool CombineSPBump = shouldCombineCSRLocalStackBump(MF, NumBytes); in emitPrologue() [all …]
|
/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/swiftshader/third_party/subzero/src/ |
D | IceFixups.h | 102 AssemblerTextFixup(const std::string &Message, size_t NumBytes) in AssemblerTextFixup() argument 103 : AssemblerFixup(), Message(Message), NumBytes(NumBytes) {} in AssemblerTextFixup() 109 const size_t NumBytes; variable
|
/external/llvm/lib/Target/X86/ |
D | X86ShuffleDecodeConstantPool.cpp | 58 int NumBytes = NumElts * Scale; in DecodePSHUFBMask() local 59 ShuffleMask.reserve(NumBytes); in DecodePSHUFBMask() 91 assert(NumBytes == (int)ShuffleMask.size() && "Unexpected shuffle mask size"); in DecodePSHUFBMask() 253 int NumBytes = NumElts * Scale; in DecodeVPPERMMask() local 254 ShuffleMask.reserve(NumBytes); in DecodeVPPERMMask() 297 assert(NumBytes == (int)ShuffleMask.size() && "Unexpected shuffle mask size"); in DecodeVPPERMMask()
|
D | X86FrameLowering.cpp | 252 int64_t NumBytes, bool InEpilogue) const { in emitSPUpdate() argument 253 bool isSub = NumBytes < 0; in emitSPUpdate() 254 uint64_t Offset = isSub ? -NumBytes : NumBytes; in emitSPUpdate() 1002 uint64_t NumBytes = 0; in emitPrologue() local 1030 NumBytes = FrameSize - X86FI->getCalleeSavedFrameSize(); in emitPrologue() 1034 NumBytes = alignTo(NumBytes, MaxAlign); in emitPrologue() 1040 MFI->setOffsetAdjustment(-NumBytes); in emitPrologue() 1042 assert(MFI->getOffsetAdjustment() == -(int)NumBytes && in emitPrologue() 1094 NumBytes = StackSize - X86FI->getCalleeSavedFrameSize(); in emitPrologue() 1099 unsigned ParentFrameNumBytes = NumBytes; in emitPrologue() [all …]
|
/external/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
D | WebAssemblyAsmBackend.cpp | 79 unsigned NumBytes = (Info.TargetSize + 7) / 8; in applyFixup() local 87 assert(Offset + NumBytes <= DataSize && "Invalid fixup offset!"); in applyFixup() 91 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()
|