Home
last modified time | relevance | path

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

/external/llvm/lib/Target/SystemZ/
DSystemZRegisterInfo.cpp101 unsigned ScratchReg = in eliminateFrameIndex() local
109 TII->loadImmediate(MBB, MI, ScratchReg, HighOffset); in eliminateFrameIndex()
111 MI->getOperand(FIOperandNum + 2).ChangeToRegister(ScratchReg, in eliminateFrameIndex()
117 BuildMI(MBB, MI, DL, TII->get(LAOpcode),ScratchReg) in eliminateFrameIndex()
122 TII->loadImmediate(MBB, MI, ScratchReg, HighOffset); in eliminateFrameIndex()
123 BuildMI(MBB, MI, DL, TII->get(SystemZ::AGR),ScratchReg) in eliminateFrameIndex()
124 .addReg(ScratchReg, RegState::Kill).addReg(BasePtr); in eliminateFrameIndex()
128 MI->getOperand(FIOperandNum).ChangeToRegister(ScratchReg, in eliminateFrameIndex()
/external/llvm/lib/Target/PowerPC/
DPPCFrameLowering.cpp615 unsigned ScratchReg = isPPC64 ? PPC::X0 : PPC::R0; in emitPrologue() local
689 BuildMI(MBB, MBBI, dl, MFLRInst, ScratchReg); in emitPrologue()
728 .addReg(ScratchReg) in emitPrologue()
753 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLDICL), ScratchReg) in emitPrologue()
758 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLWINM), ScratchReg) in emitPrologue()
764 BuildMI(MBB, MBBI, dl, SubtractImmCarryingInst, ScratchReg) in emitPrologue()
765 .addReg(ScratchReg, RegState::Kill) in emitPrologue()
773 BuildMI(MBB, MBBI, dl, SubtractCarryingInst, ScratchReg) in emitPrologue()
774 .addReg(ScratchReg, RegState::Kill) in emitPrologue()
780 .addReg(ScratchReg); in emitPrologue()
[all …]
DPPCAsmPrinter.cpp371 unsigned ScratchReg = MI.getOperand(Opers.getNextScratchIdx()).getReg(); in LowerPATCHPOINT() local
375 .addReg(ScratchReg) in LowerPATCHPOINT()
378 .addReg(ScratchReg) in LowerPATCHPOINT()
379 .addReg(ScratchReg) in LowerPATCHPOINT()
382 .addReg(ScratchReg) in LowerPATCHPOINT()
383 .addReg(ScratchReg) in LowerPATCHPOINT()
386 .addReg(ScratchReg) in LowerPATCHPOINT()
387 .addReg(ScratchReg) in LowerPATCHPOINT()
390 EmitToStreamer(OutStreamer, MCInstBuilder(PPC::MTCTR8).addReg(ScratchReg)); in LowerPATCHPOINT()
/external/llvm/lib/Target/AArch64/
DAArch64AsmPrinter.cpp404 unsigned ScratchReg = MI.getOperand(Opers.getNextScratchIdx()).getReg(); in LowerPATCHPOINT() local
408 .addReg(ScratchReg) in LowerPATCHPOINT()
412 .addReg(ScratchReg) in LowerPATCHPOINT()
413 .addReg(ScratchReg) in LowerPATCHPOINT()
417 .addReg(ScratchReg) in LowerPATCHPOINT()
418 .addReg(ScratchReg) in LowerPATCHPOINT()
421 EmitToStreamer(OutStreamer, MCInstBuilder(AArch64::BLR).addReg(ScratchReg)); in LowerPATCHPOINT()
DAArch64RegisterInfo.cpp408 unsigned ScratchReg = in eliminateFrameIndex() local
410 emitFrameOffset(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, Offset, TII); in eliminateFrameIndex()
411 MI.getOperand(FIOperandNum).ChangeToRegister(ScratchReg, false, false, true); in eliminateFrameIndex()
/external/llvm/lib/Target/X86/AsmParser/
DX86AsmInstrumentation.cpp139 unsigned ScratchReg) { in RegisterContext()
142 BusyRegs.push_back(convReg(ScratchReg, MVT::i64)); in RegisterContext()
153 unsigned ScratchReg(MVT::SimpleValueType VT) const { in ScratchReg() function
564 if (RegCtx.ScratchReg(MVT::i32) != X86::NoRegister) in InstrumentMemOperandPrologue()
565 SpillReg(Out, RegCtx.ScratchReg(MVT::i32)); in InstrumentMemOperandPrologue()
576 if (RegCtx.ScratchReg(MVT::i32) != X86::NoRegister) in InstrumentMemOperandEpilogue()
577 RestoreReg(Out, RegCtx.ScratchReg(MVT::i32)); in InstrumentMemOperandEpilogue()
631 assert(RegCtx.ScratchReg(MVT::i32) != X86::NoRegister); in InstrumentMemOperandSmall()
632 unsigned ScratchRegI32 = RegCtx.ScratchReg(MVT::i32); in InstrumentMemOperandSmall()
822 if (RegCtx.ScratchReg(MVT::i64) != X86::NoRegister) in InstrumentMemOperandPrologue()
[all …]
/external/llvm/lib/Target/X86/
DX86FrameLowering.cpp1605 unsigned ScratchReg = GetScratchRegister(Is64Bit, IsLP64, MF, true); in adjustForSegmentedStacks() local
1606 assert(!MF.getRegInfo().isLiveIn(ScratchReg) && in adjustForSegmentedStacks()
1675 ScratchReg = IsLP64 ? X86::RSP : X86::ESP; in adjustForSegmentedStacks()
1677 … BuildMI(checkMBB, DL, TII.get(IsLP64 ? X86::LEA64r : X86::LEA64_32r), ScratchReg).addReg(X86::RSP) in adjustForSegmentedStacks()
1680 BuildMI(checkMBB, DL, TII.get(IsLP64 ? X86::CMP64rm : X86::CMP32rm)).addReg(ScratchReg) in adjustForSegmentedStacks()
1702 ScratchReg = X86::ESP; in adjustForSegmentedStacks()
1704 BuildMI(checkMBB, DL, TII.get(X86::LEA32r), ScratchReg).addReg(X86::ESP) in adjustForSegmentedStacks()
1709 BuildMI(checkMBB, DL, TII.get(X86::CMP32rm)).addReg(ScratchReg) in adjustForSegmentedStacks()
1740 .addReg(ScratchReg) in adjustForSegmentedStacks()
1926 unsigned ScratchReg, SPReg, PReg, SPLimitOffset; in adjustForHiPEPrologue() local
[all …]
DX86MCInstLower.cpp884 unsigned ScratchReg = MI.getOperand(ScratchIdx).getReg(); in LowerPATCHPOINT() local
885 if (X86II::isX86_64ExtendedReg(ScratchReg)) in LowerPATCHPOINT()
889 EmitAndCountInstruction(MCInstBuilder(X86::MOV64ri).addReg(ScratchReg) in LowerPATCHPOINT()
891 EmitAndCountInstruction(MCInstBuilder(X86::CALL64r).addReg(ScratchReg)); in LowerPATCHPOINT()
/external/llvm/lib/Target/ARM/
DARMBaseRegisterInfo.cpp743 unsigned ScratchReg = 0; in eliminateFrameIndex() local
752 ScratchReg = MF.getRegInfo().createVirtualRegister(&ARM::GPRRegClass); in eliminateFrameIndex()
754 emitARMRegPlusImmediate(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, in eliminateFrameIndex()
758 emitT2RegPlusImmediate(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, in eliminateFrameIndex()
762 MI.getOperand(FIOperandNum).ChangeToRegister(ScratchReg, false, false,true); in eliminateFrameIndex()
DARMAsmPrinter.cpp1788 unsigned ScratchReg = MI->getOperand(1).getReg(); in EmitInstruction() local
1798 .addReg(ScratchReg) in EmitInstruction()
1814 .addReg(ScratchReg) in EmitInstruction()
1827 unsigned ScratchReg = MI->getOperand(1).getReg(); in EmitInstruction() local
1829 .addReg(ScratchReg) in EmitInstruction()
1840 .addReg(ScratchReg) in EmitInstruction()
1846 .addReg(ScratchReg) in EmitInstruction()
1862 .addReg(ScratchReg) in EmitInstruction()
/external/llvm/lib/CodeGen/
DPrologEpilogInserter.cpp975 unsigned ScratchReg = RS->scavengeRegister(RC, J, SPAdj); in scavengeFrameVirtualRegs() local
981 assert (ScratchReg && "Missing scratch register!"); in scavengeFrameVirtualRegs()
983 Fn.getRegInfo().replaceRegWith(Reg, ScratchReg); in scavengeFrameVirtualRegs()
986 MRI.setPhysRegUsed(ScratchReg); in scavengeFrameVirtualRegs()
991 RS->setRegUsed(ScratchReg); in scavengeFrameVirtualRegs()