Home
last modified time | relevance | path

Searched refs:StackPtr (Results 1 – 25 of 52) sorted by relevance

123

/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86FrameLowering.cpp143 unsigned StackPtr, int64_t NumBytes, in emitSPUpdate() argument
175 BuildMI(MBB, MBBI, DL, TII.get(Opc), StackPtr) in emitSPUpdate()
176 .addReg(StackPtr) in emitSPUpdate()
188 unsigned StackPtr, uint64_t *NumBytes = NULL) { in mergeSPUpdatesUp() argument
195 PI->getOperand(0).getReg() == StackPtr) { in mergeSPUpdatesUp()
201 PI->getOperand(0).getReg() == StackPtr) { in mergeSPUpdatesUp()
212 unsigned StackPtr, uint64_t *NumBytes = NULL) { in mergeSPUpdatesDown() argument
224 NI->getOperand(0).getReg() == StackPtr) { in mergeSPUpdatesDown()
231 NI->getOperand(0).getReg() == StackPtr) { in mergeSPUpdatesDown()
245 unsigned StackPtr, in mergeSPUpdates() argument
[all …]
DX86RegisterInfo.h47 unsigned StackPtr; variable
122 unsigned getStackRegister() const { return StackPtr; } in getStackRegister()
DX86JITInfo.cpp303 void X86CompilationCallback2(intptr_t *StackPtr, intptr_t RetAddr);
343 X86CompilationCallback2(intptr_t *StackPtr, intptr_t RetAddr) { in X86CompilationCallback2() argument
344 intptr_t *RetAddrLoc = &StackPtr[1]; in X86CompilationCallback2()
360 << " ESP=" << (void*)StackPtr in X86CompilationCallback2()
DX86RegisterInfo.cpp69 StackPtr = X86::RSP; in X86RegisterInfo()
73 StackPtr = X86::ESP; in X86RegisterInfo()
544 StackPtr) in eliminateCallFramePseudoInstr()
545 .addReg(StackPtr) in eliminateCallFramePseudoInstr()
555 New = BuildMI(MF, DL, TII.get(Opc), StackPtr) in eliminateCallFramePseudoInstr()
556 .addReg(StackPtr).addImm(Amount); in eliminateCallFramePseudoInstr()
576 MachineInstr *New = BuildMI(MF, DL, TII.get(Opc), StackPtr) in eliminateCallFramePseudoInstr()
577 .addReg(StackPtr).addImm(CalleeAmt); in eliminateCallFramePseudoInstr()
613 BasePtr = (FrameIndex < 0 ? FramePtr : StackPtr); in eliminateFrameIndex()
615 BasePtr = StackPtr; in eliminateFrameIndex()
[all …]
/external/giflib/
Ddgif_lib.c783 Private->StackPtr = 0; /* No pixels on the pixel stack. */ in DGifSetupDecompress()
805 int j, CrntCode, EOFCode, ClearCode, CrntPrefix, LastCode, StackPtr; in DGifDecompressLine() local
810 StackPtr = Private->StackPtr; in DGifDecompressLine()
818 if (StackPtr > LZ_MAX_CODE) { in DGifDecompressLine()
822 if (StackPtr != 0) { in DGifDecompressLine()
824 while (StackPtr != 0 && i < LineLen) in DGifDecompressLine()
825 Line[i++] = Stack[--StackPtr]; in DGifDecompressLine()
867 Stack[StackPtr++] = DGifGetPrefixChar(Prefix, in DGifDecompressLine()
872 Stack[StackPtr++] = DGifGetPrefixChar(Prefix, in DGifDecompressLine()
883 while (StackPtr < LZ_MAX_CODE && in DGifDecompressLine()
[all …]
Dgif_lib_private.h42 StackPtr, /* For character stack (see below). */ member
/external/llvm/lib/Target/X86/
DX86WinAllocaExpander.cpp62 unsigned StackPtr; member in __anonf218f6140111::X86WinAllocaExpander
185 } else if (MI.modifiesRegister(StackPtr, TRI)) { in computeLowerings()
236 BuildMI(*MBB, I, DL, TII->get(getSubOpcode(Is64Bit, Amount)), StackPtr) in lower()
237 .addReg(StackPtr) in lower()
277 StackPtr = TRI->getStackRegister(); in runOnMachineFunction()
DX86RegisterInfo.cpp70 StackPtr = Use64BitReg ? X86::RSP : X86::ESP; in X86RegisterInfo()
75 StackPtr = X86::ESP; in X86RegisterInfo()
591 BasePtr = (FrameIndex < 0 ? FramePtr : StackPtr); in eliminateFrameIndex()
593 BasePtr = StackPtr; in eliminateFrameIndex()
595 BasePtr = (TFI->hasFP(MF) ? FramePtr : StackPtr); in eliminateFrameIndex()
630 if (BasePtr == StackPtr) in eliminateFrameIndex()
659 return TFI->hasFP(MF) ? FramePtr : StackPtr; in getFrameRegister()
DX86RegisterInfo.h41 unsigned StackPtr; variable
134 unsigned getStackRegister() const { return StackPtr; } in getStackRegister()
DX86FrameLowering.cpp49 StackPtr = TRI->getStackRegister(); in X86FrameLowering()
277 MachineInstr *MI = BuildMI(MBB, MBBI, DL, TII.get(Opc), StackPtr) in emitSPUpdate()
278 .addReg(StackPtr) in emitSPUpdate()
351 StackPtr), in BuildStackAdjustment()
352 StackPtr, false, Offset); in BuildStackAdjustment()
358 MI = BuildMI(MBB, MBBI, DL, TII.get(Opc), StackPtr) in BuildStackAdjustment()
359 .addReg(StackPtr) in BuildStackAdjustment()
387 PI->getOperand(0).getReg() == StackPtr){ in mergeSPUpdates()
388 assert(PI->getOperand(1).getReg() == StackPtr); in mergeSPUpdates()
393 PI->getOperand(0).getReg() == StackPtr && in mergeSPUpdates()
[all …]
DX86CallFrameOptimization.cpp349 unsigned StackPtr = RegInfo.getStackRegister(); in collectCallInfo() local
354 I->getOperand(1).getReg() == StackPtr) { in collectCallInfo()
356 StackPtr = Context.SPCopy->getOperand(0).getReg(); in collectCallInfo()
386 (I->getOperand(X86::AddrBaseReg).getReg() != StackPtr) || in collectCallInfo()
DX86ExpandPseudo.cpp151 unsigned StackPtr = TRI->getStackRegister(); in ExpandMI() local
153 TII->get(Uses64BitFramePtr ? X86::MOV64rr : X86::MOV32rr), StackPtr) in ExpandMI()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeTypesGeneric.cpp167 SDValue StackPtr = DAG.CreateStackTemporary(InVT, Alignment); in ExpandRes_BITCAST() local
168 int SPFI = cast<FrameIndexSDNode>(StackPtr.getNode())->getIndex(); in ExpandRes_BITCAST()
173 SDValue Store = DAG.getStore(DAG.getEntryNode(), dl, InOp, StackPtr, PtrInfo, in ExpandRes_BITCAST()
177 Lo = DAG.getLoad(NOutVT, dl, Store, StackPtr, PtrInfo, in ExpandRes_BITCAST()
182 StackPtr = DAG.getNode(ISD::ADD, dl, StackPtr.getValueType(), StackPtr, in ExpandRes_BITCAST()
184 StackPtr.getValueType())); in ExpandRes_BITCAST()
187 Hi = DAG.getLoad(NOutVT, dl, Store, StackPtr, in ExpandRes_BITCAST()
DLegalizeDAG.cpp331 SDValue StackPtr = DAG.CreateStackTemporary(VT); in PerformInsertVectorEltInMemory() local
333 int SPFI = cast<FrameIndexSDNode>(StackPtr.getNode())->getIndex(); in PerformInsertVectorEltInMemory()
337 DAG.getEntryNode(), dl, Tmp1, StackPtr, in PerformInsertVectorEltInMemory()
347 SDValue StackPtr2 = DAG.getNode(ISD::ADD, dl, IdxVT, Tmp3, StackPtr); in PerformInsertVectorEltInMemory()
352 return DAG.getLoad(VT, dl, Ch, StackPtr, MachinePointerInfo::getFixedStack( in PerformInsertVectorEltInMemory()
1190 SDValue StackPtr, Ch; in ExpandExtractFromVectorThroughStack() local
1210 StackPtr = ST->getBasePtr(); in ExpandExtractFromVectorThroughStack()
1218 StackPtr = DAG.CreateStackTemporary(Vec.getValueType()); in ExpandExtractFromVectorThroughStack()
1219 Ch = DAG.getStore(DAG.getEntryNode(), dl, Vec, StackPtr, in ExpandExtractFromVectorThroughStack()
1230 StackPtr = DAG.getNode(ISD::ADD, dl, Idx.getValueType(), Idx, StackPtr); in ExpandExtractFromVectorThroughStack()
[all …]
DLegalizeVectorTypes.cpp875 SDValue StackPtr = DAG.CreateStackTemporary(VecVT); in SplitVecRes_INSERT_SUBVECTOR() local
876 SDValue Store = DAG.getStore(DAG.getEntryNode(), dl, Vec, StackPtr, in SplitVecRes_INSERT_SUBVECTOR()
880 SDValue SubVecPtr = GetVectorElementPointer(StackPtr, VecElemVT, Idx); in SplitVecRes_INSERT_SUBVECTOR()
887 Lo = DAG.getLoad(Lo.getValueType(), dl, Store, StackPtr, MachinePointerInfo(), in SplitVecRes_INSERT_SUBVECTOR()
892 StackPtr = in SplitVecRes_INSERT_SUBVECTOR()
893 DAG.getNode(ISD::ADD, dl, StackPtr.getValueType(), StackPtr, in SplitVecRes_INSERT_SUBVECTOR()
894 DAG.getConstant(IncrementSize, dl, StackPtr.getValueType())); in SplitVecRes_INSERT_SUBVECTOR()
897 Hi = DAG.getLoad(Hi.getValueType(), dl, Store, StackPtr, MachinePointerInfo(), in SplitVecRes_INSERT_SUBVECTOR()
1006 SDValue StackPtr = DAG.CreateStackTemporary(VecVT); in SplitVecRes_INSERT_VECTOR_ELT() local
1007 SDValue Store = DAG.getStore(DAG.getEntryNode(), dl, Vec, StackPtr, in SplitVecRes_INSERT_VECTOR_ELT()
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DLegalizeTypesGeneric.cpp124 SDValue StackPtr = DAG.CreateStackTemporary(InVT, Alignment); in ExpandRes_BITCAST() local
125 int SPFI = cast<FrameIndexSDNode>(StackPtr.getNode())->getIndex(); in ExpandRes_BITCAST()
129 SDValue Store = DAG.getStore(DAG.getEntryNode(), dl, InOp, StackPtr, PtrInfo, in ExpandRes_BITCAST()
133 Lo = DAG.getLoad(NOutVT, dl, Store, StackPtr, PtrInfo, false, false, 0); in ExpandRes_BITCAST()
137 StackPtr = DAG.getNode(ISD::ADD, dl, StackPtr.getValueType(), StackPtr, in ExpandRes_BITCAST()
141 Hi = DAG.getLoad(NOutVT, dl, Store, StackPtr, in ExpandRes_BITCAST()
DLegalizeDAG.cpp415 SDValue StackPtr = DAG.CreateStackTemporary(StoredVT, RegVT); in ExpandUnalignedStore() local
419 Val, StackPtr, MachinePointerInfo(), in ExpandUnalignedStore()
428 SDValue Load = DAG.getLoad(RegVT, dl, Store, StackPtr, in ExpandUnalignedStore()
438 StackPtr = DAG.getNode(ISD::ADD, dl, StackPtr.getValueType(), StackPtr, in ExpandUnalignedStore()
450 SDValue Load = DAG.getExtLoad(ISD::EXTLOAD, dl, RegVT, Store, StackPtr, in ExpandUnalignedStore()
531 SDValue StackPtr = StackBase; in ExpandUnalignedLoad() local
542 Stores.push_back(DAG.getStore(Load.getValue(1), dl, Load, StackPtr, in ExpandUnalignedLoad()
547 StackPtr = DAG.getNode(ISD::ADD, dl, StackPtr.getValueType(), StackPtr, in ExpandUnalignedLoad()
562 Stores.push_back(DAG.getTruncStore(Load.getValue(1), dl, Load, StackPtr, in ExpandUnalignedLoad()
654 SDValue StackPtr = DAG.CreateStackTemporary(VT); in PerformInsertVectorEltInMemory() local
[all …]
DLegalizeVectorTypes.cpp665 SDValue StackPtr = DAG.CreateStackTemporary(VecVT); in SplitVecRes_INSERT_VECTOR_ELT() local
666 SDValue Store = DAG.getStore(DAG.getEntryNode(), dl, Vec, StackPtr, in SplitVecRes_INSERT_VECTOR_ELT()
671 SDValue EltPtr = GetVectorElementPointer(StackPtr, EltVT, Idx); in SplitVecRes_INSERT_VECTOR_ELT()
679 Lo = DAG.getLoad(Lo.getValueType(), dl, Store, StackPtr, MachinePointerInfo(), in SplitVecRes_INSERT_VECTOR_ELT()
684 StackPtr = DAG.getNode(ISD::ADD, dl, StackPtr.getValueType(), StackPtr, in SplitVecRes_INSERT_VECTOR_ELT()
688 Hi = DAG.getLoad(Hi.getValueType(), dl, Store, StackPtr, MachinePointerInfo(), in SplitVecRes_INSERT_VECTOR_ELT()
1092 SDValue StackPtr = DAG.CreateStackTemporary(VecVT); in SplitVecOp_EXTRACT_VECTOR_ELT() local
1093 SDValue Store = DAG.getStore(DAG.getEntryNode(), dl, Vec, StackPtr, in SplitVecOp_EXTRACT_VECTOR_ELT()
1097 StackPtr = GetVectorElementPointer(StackPtr, EltVT, Idx); in SplitVecOp_EXTRACT_VECTOR_ELT()
1098 return DAG.getExtLoad(ISD::EXTLOAD, dl, N->getValueType(0), Store, StackPtr, in SplitVecOp_EXTRACT_VECTOR_ELT()
/external/swiftshader/third_party/LLVM/lib/Target/Sparc/
DSparcISelLowering.cpp437 SDValue StackPtr = DAG.getRegister(SP::O6, MVT::i32); in LowerCall() local
439 PtrOff = DAG.getNode(ISD::ADD, dl, MVT::i32, StackPtr, PtrOff); in LowerCall()
454 SDValue StackPtr = DAG.getRegister(SP::O6, MVT::i32); in LowerCall() local
456 PtrOff = DAG.getNode(ISD::ADD, dl, MVT::i32, StackPtr, PtrOff); in LowerCall()
464 SDValue StackPtr = DAG.CreateStackTemporary(MVT::f64, MVT::i32); in LowerCall() local
466 Arg, StackPtr, MachinePointerInfo(), in LowerCall()
469 SDValue Hi = DAG.getLoad(MVT::i32, dl, Store, StackPtr, in LowerCall()
472 StackPtr = DAG.getNode(ISD::ADD, dl, StackPtr.getValueType(), StackPtr, in LowerCall()
475 SDValue Lo = DAG.getLoad(MVT::i32, dl, Store, StackPtr, in LowerCall()
487 SDValue StackPtr = DAG.getRegister(SP::O6, MVT::i32); in LowerCall() local
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DLowerInvoke.cpp98 AllocaInst *InvokeNum, AllocaInst *StackPtr,
218 AllocaInst *StackPtr, in rewriteExpensiveInvoke() argument
241 new StoreInst(StackSaveRet, StackPtr, true, II); // volatile in rewriteExpensiveInvoke()
249 new LoadInst(StackPtr, "stackptr.restore", true, in rewriteExpensiveInvoke()
478 AllocaInst *StackPtr = new AllocaInst(Type::getInt8PtrTy(F.getContext()), 0, in insertExpensiveEHSupport() local
527 rewriteExpensiveInvoke(Invokes[i], i+1, InvokeNum, StackPtr, CatchSwitch); in insertExpensiveEHSupport()
/external/llvm/lib/CodeGen/
DSjLjEHPrepare.cpp389 Value *StackPtr = Builder.CreateConstGEP2_32(doubleUnderJBufTy, JBufPtr, 0, 2, in setupEntryBlockAndCallSites() local
393 Builder.CreateStore(Val, StackPtr, /*isVolatile=*/true); in setupEntryBlockAndCallSites()
448 Instruction *StoreStackAddr = new StoreInst(StackAddr, StackPtr, true); in setupEntryBlockAndCallSites()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DREADME.txt330 int foo(int StackPtr, unsigned char *Line, unsigned char *Stack, int LineLen) {
333 if (StackPtr != 0) {
334 while (StackPtr != 0 && i < (((LineLen) < (32768))? (LineLen) : (32768)))
335 Line[i++] = Stack[--StackPtr];
338 while (StackPtr != 0 && i < LineLen)
341 --StackPtr;
345 return StackPtr;
DARMISelLowering.h390 SDValue &StackPtr,
399 SDValue LowerMemOpCallTo(SDValue Chain, SDValue StackPtr, SDValue Arg,
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DSjLjEHPrepare.cpp629 Value *StackPtr = in insertSjLjEHSupport() local
634 new StoreInst(Val, StackPtr, true, EntryBB->getTerminator()); in insertSjLjEHSupport()
701 Instruction *StoreStackAddr = new StoreInst(StackAddr, StackPtr, true); in insertSjLjEHSupport()
960 Value *StackPtr = GetElementPtrInst::Create(JBufPtr, Idxs, "jbuf_sp_gep", in setupEntryBlockAndCallSites() local
964 new StoreInst(Val, StackPtr, true, EntryBB->getTerminator()); in setupEntryBlockAndCallSites()
/external/llvm/lib/Target/ARM/
DREADME.txt330 int foo(int StackPtr, unsigned char *Line, unsigned char *Stack, int LineLen) {
333 if (StackPtr != 0) {
334 while (StackPtr != 0 && i < (((LineLen) < (32768))? (LineLen) : (32768)))
335 Line[i++] = Stack[--StackPtr];
338 while (StackPtr != 0 && i < LineLen)
341 --StackPtr;
345 return StackPtr;

123