/external/llvm-project/llvm/unittests/MC/ |
D | Disassembler.cpp | 38 unsigned NumBytes = sizeof(Bytes); in TEST() local 45 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString, in TEST() 51 NumBytes -= InstSize; in TEST() 53 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString, in TEST() 59 NumBytes -= InstSize; in TEST() 61 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString, in TEST() 84 unsigned NumBytes = sizeof(Bytes); in TEST() local 87 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString, in TEST() 93 NumBytes -= InstSize; in TEST() 95 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString, in TEST() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/VE/ |
D | VEFrameLowering.cpp | 37 int NumBytes, in emitPrologueInsns() argument 75 int NumBytes, in emitEpilogueInsns() argument 109 int NumBytes) const { in emitSPAdjustment() 114 if (NumBytes >= -64 && NumBytes < 63) { in emitSPAdjustment() 117 .addImm(NumBytes); in emitSPAdjustment() 127 .addImm(LO32(NumBytes)); in emitSPAdjustment() 134 .addImm(HI32(NumBytes)); in emitSPAdjustment() 139 int NumBytes) const { in emitSPExtend() 201 int NumBytes = (int)MFI.getStackSize(); in emitPrologue() local 216 NumBytes += MFI.getMaxCallFrameSize(); in emitPrologue() [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-project/llvm/lib/Target/VE/ |
D | VEFrameLowering.cpp | 138 uint64_t NumBytes, in emitPrologueInsns() argument 186 uint64_t NumBytes, in emitEpilogueInsns() argument 229 int64_t NumBytes, in emitSPAdjustment() argument 234 if (NumBytes == 0) { in emitSPAdjustment() 236 } else if (isInt<7>(NumBytes)) { in emitSPAdjustment() 240 .addImm(NumBytes); in emitSPAdjustment() 241 } else if (isInt<32>(NumBytes)) { in emitSPAdjustment() 246 .addImm(Lo_32(NumBytes)); in emitSPAdjustment() 256 .addImm(Lo_32(NumBytes)); in emitSPAdjustment() 263 .addImm(Hi_32(NumBytes)); in emitSPAdjustment() [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/llvm-project/clang/lib/Rewrite/ |
D | RewriteRope.cpp | 121 void erase(unsigned Offset, unsigned NumBytes); 221 void erase(unsigned Offset, unsigned NumBytes); 337 void RopePieceBTreeLeaf::erase(unsigned Offset, unsigned NumBytes) { in erase() argument 350 for (; Offset+NumBytes > PieceOffs+getPiece(i).size(); ++i) in erase() 354 if (Offset+NumBytes == PieceOffs+getPiece(i).size()) { in erase() 371 NumBytes -= CoverBytes; in erase() 376 if (NumBytes == 0) return; in erase() 380 assert(getPiece(StartPiece).size() > NumBytes); in erase() 381 Pieces[StartPiece].StartOffs += NumBytes; in erase() 384 Size -= NumBytes; in erase() [all …]
|
/external/llvm-project/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/llvm-10.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/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | Thumb1FrameLowering.cpp | 70 const ThumbRegisterInfo &MRI, int NumBytes, in emitPrologueEpilogueSPUpdate() argument 74 if (std::abs(NumBytes) > 508 * 3) { in emitPrologueEpilogueSPUpdate() 85 .addImm(NumBytes).setMIFlags(MIFlags); in emitPrologueEpilogueSPUpdate() 87 MRI.emitLoadConstPool(MBB, MBBI, dl, ScratchReg, 0, NumBytes, ARMCC::AL, in emitPrologueEpilogueSPUpdate() 97 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, in emitPrologueEpilogueSPUpdate() 105 const ThumbRegisterInfo &MRI, int NumBytes, in emitCallSPUpdate() argument 107 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, in emitCallSPUpdate() 158 unsigned NumBytes = MFI.getStackSize(); in emitPrologue() local 159 assert(NumBytes >= ArgRegsSaveSize && in emitPrologue() 172 NumBytes = (NumBytes + 3) & ~3; in emitPrologue() [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-project/llvm/lib/Target/ARM/ |
D | Thumb1FrameLowering.cpp | 70 const ThumbRegisterInfo &MRI, int NumBytes, in emitPrologueEpilogueSPUpdate() argument 74 if (std::abs(NumBytes) > 508 * 3) { in emitPrologueEpilogueSPUpdate() 85 .addImm(NumBytes).setMIFlags(MIFlags); in emitPrologueEpilogueSPUpdate() 87 MRI.emitLoadConstPool(MBB, MBBI, dl, ScratchReg, 0, NumBytes, ARMCC::AL, in emitPrologueEpilogueSPUpdate() 99 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, in emitPrologueEpilogueSPUpdate() 107 const ThumbRegisterInfo &MRI, int NumBytes, in emitCallSPUpdate() argument 109 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, in emitCallSPUpdate() 160 unsigned NumBytes = MFI.getStackSize(); in emitPrologue() local 161 assert(NumBytes >= ArgRegsSaveSize && in emitPrologue() 174 NumBytes = (NumBytes + 3) & ~3; in emitPrologue() [all …]
|
D | ThumbRegisterInfo.cpp | 125 const DebugLoc &dl, Register DestReg, Register BaseReg, int NumBytes, in emitThumbRegPlusImmInReg() argument 137 if (NumBytes < 0 && !isHigh && CanChangeCC) { in emitThumbRegPlusImmInReg() 139 NumBytes = -NumBytes; in emitThumbRegPlusImmInReg() 147 if (NumBytes <= 255 && NumBytes >= 0 && CanChangeCC) { in emitThumbRegPlusImmInReg() 150 .addImm(NumBytes) in emitThumbRegPlusImmInReg() 152 } else if (NumBytes < 0 && NumBytes >= -255 && CanChangeCC) { in emitThumbRegPlusImmInReg() 155 .addImm(NumBytes) in emitThumbRegPlusImmInReg() 163 .addImm(NumBytes).setMIFlags(MIFlags); in emitThumbRegPlusImmInReg() 165 MRI.emitLoadConstPool(MBB, MBBI, dl, LdReg, 0, NumBytes, ARMCC::AL, 0, in emitThumbRegPlusImmInReg() 188 Register BaseReg, int NumBytes, in emitThumbRegPlusImmediate() argument [all …]
|
/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/llvm-project/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: SP -= numbytes in emitPrologue() 96 if (NumBytes) { in emitPrologue() 99 .addReg(MSP430::SP).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/swiftshader/third_party/llvm-10.0/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: SP -= numbytes in emitPrologue() 96 if (NumBytes) { in emitPrologue() 99 .addReg(MSP430::SP).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/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-project/llvm/lib/Support/ |
D | FormattedStream.cpp | 76 unsigned NumBytes; in UpdatePosition() local 77 for (const char *End = Ptr + Size; Ptr < End; Ptr += NumBytes) { in UpdatePosition() 78 NumBytes = getNumBytesForUTF8(*Ptr); in UpdatePosition() 85 if ((unsigned)(End - Ptr) < NumBytes) { in UpdatePosition() 90 ProcessUTF8CodePoint(StringRef(Ptr, NumBytes)); in UpdatePosition()
|
/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/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOAArch64.h | 37 unsigned NumBytes = 1 << RE.Size; in decodeAddend() local 53 if (NumBytes != 4 && NumBytes != 8) { in decodeAddend() 70 assert(NumBytes == 4 && "Invalid relocation size."); in decodeAddend() 82 if (NumBytes == 4) in decodeAddend() 155 void encodeAddend(uint8_t *LocalAddress, unsigned NumBytes, in encodeAddend() argument 163 assert((NumBytes == 4 || NumBytes == 8) && "Invalid relocation size."); in encodeAddend() 170 assert(NumBytes == 4 && "Invalid relocation size."); in encodeAddend() 182 if (NumBytes == 4) in encodeAddend() 491 unsigned NumBytes = 1 << Size; in processSubtractRelocation() local 500 SignExtend64(readBytesUnaligned(LocalAddress, NumBytes), NumBytes * 8); in processSubtractRelocation()
|