Home
last modified time | relevance | path

Searched refs:NumBytes (Results 1 – 25 of 241) sorted by relevance

12345678910

/external/swiftshader/third_party/LLVM/lib/Target/Alpha/
DAlphaFrameLowering.cpp65 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/swiftshader/third_party/llvm-7.0/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()
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/swiftshader/third_party/LLVM/lib/Target/Sparc/
DSparcFrameLowering.cpp38 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/swiftshader/third_party/LLVM/lib/Target/ARM/
DThumb1FrameLowering.cpp42 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 …]
DThumb2InstrInfo.cpp176 unsigned DestReg, unsigned BaseReg, int NumBytes, in emitT2RegPlusImmediate() argument
179 bool isSub = NumBytes < 0; in emitT2RegPlusImmediate()
180 if (isSub) NumBytes = -NumBytes; in emitT2RegPlusImmediate()
185 NumBytes >= 4096 && in emitT2RegPlusImmediate()
186 ARM_AM::getT2SOImmVal(NumBytes) == -1) { in emitT2RegPlusImmediate()
188 if (NumBytes < 65536) { in emitT2RegPlusImmediate()
191 .addImm(NumBytes) in emitT2RegPlusImmediate()
194 } else if ((NumBytes & 0xffff) == 0) { in emitT2RegPlusImmediate()
198 .addImm(NumBytes >> 16) in emitT2RegPlusImmediate()
221 while (NumBytes) { in emitT2RegPlusImmediate()
[all …]
DThumb1RegisterInfo.cpp93 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 …]
/external/ltp/testcases/kernel/io/disktest/
Ddump.c112 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/
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()
112 int NumBytes = (int) MFI->getStackSize(); in emitPrologue() local
117 if (NumBytes == 0) in emitPrologue()
[all …]
/external/llvm/lib/Target/ARM/
DThumb1FrameLowering.cpp44 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 …]
DThumb2InstrInfo.cpp224 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 …]
DThumbRegisterInfo.cpp125 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/
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()
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/
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()
113 int NumBytes = (int) MFI.getStackSize(); in emitPrologue() local
118 if (NumBytes == 0) in emitPrologue()
[all …]
/external/swiftshader/third_party/subzero/pnacl-llvm/
DNaClBitcodeHeader.cpp179 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/swiftshader/third_party/LLVM/lib/Target/MSP430/
DMSP430FrameLowering.cpp54 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/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/swiftshader/third_party/llvm-7.0/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/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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DThumb1FrameLowering.cpp70 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 …]
DThumb2InstrInfo.cpp239 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 …]
DThumbRegisterInfo.cpp126 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/
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()
432 unsigned NumBytes = 1 << Size; in processSubtractRelocation() local
441 SignExtend64(readBytesUnaligned(LocalAddress, NumBytes), NumBytes * 8); in processSubtractRelocation()
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86FrameLowering.cpp143 unsigned StackPtr, int64_t NumBytes, in emitSPUpdate() argument
146 bool isSub = NumBytes < 0; in emitSPUpdate()
147 uint64_t Offset = isSub ? -NumBytes : NumBytes; in emitSPUpdate()
188 unsigned StackPtr, uint64_t *NumBytes = NULL) { in mergeSPUpdatesUp() argument
196 if (NumBytes) in mergeSPUpdatesUp()
197 *NumBytes += PI->getOperand(2).getImm(); in mergeSPUpdatesUp()
202 if (NumBytes) in mergeSPUpdatesUp()
203 *NumBytes -= PI->getOperand(2).getImm(); in mergeSPUpdatesUp()
212 unsigned StackPtr, uint64_t *NumBytes = NULL) { in mergeSPUpdatesDown() argument
225 if (NumBytes) in mergeSPUpdatesDown()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64FrameLowering.cpp129 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/
DRuntimeDyldMachOAArch64.h38 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()

12345678910