Home
last modified time | relevance | path

Searched refs:ScratchReg (Results 1 – 6 of 6) sorted by relevance

/external/llvm/lib/Target/XCore/
DXCoreRegisterInfo.cpp224 unsigned ScratchReg = RS->scavengeRegister(&XCore::GRRegsRegClass, II, in eliminateFrameIndex() local
226 loadConstant(MBB, II, ScratchReg, Offset, dl); in eliminateFrameIndex()
231 .addReg(ScratchReg, RegState::Kill); in eliminateFrameIndex()
237 .addReg(ScratchReg, RegState::Kill); in eliminateFrameIndex()
242 .addReg(ScratchReg, RegState::Kill); in eliminateFrameIndex()
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp509 unsigned ScratchReg = TM.getSubtargetImpl()->isDarwinABI() ? in StoreRegToStackSlot() local
513 PPC::MFCRpseud), ScratchReg) in StoreRegToStackSlot()
522 PPC::RLWINM), ScratchReg) in StoreRegToStackSlot()
523 .addReg(ScratchReg).addImm(ShiftBits) in StoreRegToStackSlot()
529 .addReg(ScratchReg, in StoreRegToStackSlot()
654 unsigned ScratchReg = TM.getSubtargetImpl()->isDarwinABI() ? in LoadRegFromStackSlot() local
657 ScratchReg), FrameIdx)); in LoadRegFromStackSlot()
664 NewMIs.push_back(BuildMI(MF, DL, get(PPC::RLWINM), ScratchReg) in LoadRegFromStackSlot()
665 .addReg(ScratchReg).addImm(32-ShiftBits).addImm(0) in LoadRegFromStackSlot()
671 .addReg(ScratchReg)); in LoadRegFromStackSlot()
/external/llvm/lib/Target/X86/
DX86FrameLowering.cpp1408 unsigned ScratchReg = GetScratchRegister(Is64Bit, MF, true); in adjustForSegmentedStacks() local
1409 assert(!MF.getRegInfo().isLiveIn(ScratchReg) && in adjustForSegmentedStacks()
1467 ScratchReg = X86::RSP; in adjustForSegmentedStacks()
1469 BuildMI(checkMBB, DL, TII.get(X86::LEA64r), ScratchReg).addReg(X86::RSP) in adjustForSegmentedStacks()
1472 BuildMI(checkMBB, DL, TII.get(X86::CMP64rm)).addReg(ScratchReg) in adjustForSegmentedStacks()
1491 ScratchReg = X86::ESP; in adjustForSegmentedStacks()
1493 BuildMI(checkMBB, DL, TII.get(X86::LEA32r), ScratchReg).addReg(X86::ESP) in adjustForSegmentedStacks()
1497 BuildMI(checkMBB, DL, TII.get(X86::CMP32rm)).addReg(ScratchReg) in adjustForSegmentedStacks()
1527 .addReg(ScratchReg) in adjustForSegmentedStacks()
/external/llvm/lib/CodeGen/
DPrologEpilogInserter.cpp822 unsigned ScratchReg = 0; in scavengeFrameVirtualRegs() local
849 ScratchReg = RS->scavengeRegister(RC, I, SPAdj); in scavengeFrameVirtualRegs()
854 assert (ScratchReg && "Missing scratch register!"); in scavengeFrameVirtualRegs()
855 MI->getOperand(i).setReg(ScratchReg); in scavengeFrameVirtualRegs()
/external/llvm/lib/Target/ARM/
DARMBaseRegisterInfo.cpp1125 unsigned ScratchReg = 0; in eliminateFrameIndex() local
1134 ScratchReg = MF.getRegInfo().createVirtualRegister(&ARM::GPRRegClass); in eliminateFrameIndex()
1136 emitARMRegPlusImmediate(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, in eliminateFrameIndex()
1140 emitT2RegPlusImmediate(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, in eliminateFrameIndex()
1144 MI.getOperand(i).ChangeToRegister(ScratchReg, false, false, true); in eliminateFrameIndex()
DARMAsmPrinter.cpp1931 unsigned ScratchReg = MI->getOperand(1).getReg(); in EmitInstruction() local
1946 TmpInst.addOperand(MCOperand::CreateReg(ScratchReg)); in EmitInstruction()
1968 TmpInst.addOperand(MCOperand::CreateReg(ScratchReg)); in EmitInstruction()
1983 unsigned ScratchReg = MI->getOperand(1).getReg(); in EmitInstruction() local
1987 TmpInst.addOperand(MCOperand::CreateReg(ScratchReg)); in EmitInstruction()
2001 TmpInst.addOperand(MCOperand::CreateReg(ScratchReg)); in EmitInstruction()
2010 TmpInst.addOperand(MCOperand::CreateReg(ScratchReg)); in EmitInstruction()
2032 TmpInst.addOperand(MCOperand::CreateReg(ScratchReg)); in EmitInstruction()