Home
last modified time | relevance | path

Searched refs:ScratchReg (Results 1 – 12 of 12) 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.cpp675 unsigned ScratchReg = 0; in emitPrologue() local
704 findScratchRegister(&MBB, false, &ScratchReg); in emitPrologue()
705 assert(ScratchReg && "No scratch register!"); in emitPrologue()
752 BuildMI(MBB, MBBI, dl, MFLRInst, ScratchReg); in emitPrologue()
791 .addReg(ScratchReg) in emitPrologue()
816 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLDICL), ScratchReg) in emitPrologue()
821 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLWINM), ScratchReg) in emitPrologue()
827 BuildMI(MBB, MBBI, dl, SubtractImmCarryingInst, ScratchReg) in emitPrologue()
828 .addReg(ScratchReg, RegState::Kill) in emitPrologue()
836 BuildMI(MBB, MBBI, dl, SubtractCarryingInst, ScratchReg) in emitPrologue()
[all …]
DPPCAsmPrinter.cpp371 unsigned ScratchReg = MI.getOperand(Opers.getNextScratchIdx()).getReg(); in LowerPATCHPOINT() local
375 .addReg(ScratchReg) in LowerPATCHPOINT()
379 .addReg(ScratchReg) in LowerPATCHPOINT()
380 .addReg(ScratchReg) in LowerPATCHPOINT()
384 .addReg(ScratchReg) in LowerPATCHPOINT()
385 .addReg(ScratchReg) in LowerPATCHPOINT()
389 .addReg(ScratchReg) in LowerPATCHPOINT()
390 .addReg(ScratchReg) in LowerPATCHPOINT()
410 .addReg(ScratchReg)); in LowerPATCHPOINT()
413 .addReg(ScratchReg) in LowerPATCHPOINT()
[all …]
/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.cpp393 unsigned ScratchReg = in eliminateFrameIndex() local
395 emitFrameOffset(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, Offset, TII); in eliminateFrameIndex()
396 MI.getOperand(FIOperandNum).ChangeToRegister(ScratchReg, false, false, true); in eliminateFrameIndex()
/external/llvm/lib/Target/X86/AsmParser/
DX86AsmInstrumentation.cpp133 unsigned ScratchReg) { in RegisterContext()
136 BusyRegs.push_back(convReg(ScratchReg, MVT::i64)); in RegisterContext()
147 unsigned ScratchReg(MVT::SimpleValueType VT) const { in ScratchReg() function
558 if (RegCtx.ScratchReg(MVT::i32) != X86::NoRegister) in InstrumentMemOperandPrologue()
559 SpillReg(Out, RegCtx.ScratchReg(MVT::i32)); in InstrumentMemOperandPrologue()
570 if (RegCtx.ScratchReg(MVT::i32) != X86::NoRegister) in InstrumentMemOperandEpilogue()
571 RestoreReg(Out, RegCtx.ScratchReg(MVT::i32)); in InstrumentMemOperandEpilogue()
626 assert(RegCtx.ScratchReg(MVT::i32) != X86::NoRegister); in InstrumentMemOperandSmall()
627 unsigned ScratchRegI32 = RegCtx.ScratchReg(MVT::i32); in InstrumentMemOperandSmall()
817 if (RegCtx.ScratchReg(MVT::i64) != X86::NoRegister) in InstrumentMemOperandPrologue()
[all …]
/external/llvm/lib/Target/X86/
DX86FrameLowering.cpp2052 unsigned ScratchReg = GetScratchRegister(Is64Bit, IsLP64, MF, true); in adjustForSegmentedStacks() local
2053 assert(!MF.getRegInfo().isLiveIn(ScratchReg) && in adjustForSegmentedStacks()
2121 ScratchReg = IsLP64 ? X86::RSP : X86::ESP; in adjustForSegmentedStacks()
2123 … BuildMI(checkMBB, DL, TII.get(IsLP64 ? X86::LEA64r : X86::LEA64_32r), ScratchReg).addReg(X86::RSP) in adjustForSegmentedStacks()
2126 BuildMI(checkMBB, DL, TII.get(IsLP64 ? X86::CMP64rm : X86::CMP32rm)).addReg(ScratchReg) in adjustForSegmentedStacks()
2148 ScratchReg = X86::ESP; in adjustForSegmentedStacks()
2150 BuildMI(checkMBB, DL, TII.get(X86::LEA32r), ScratchReg).addReg(X86::ESP) in adjustForSegmentedStacks()
2155 BuildMI(checkMBB, DL, TII.get(X86::CMP32rm)).addReg(ScratchReg) in adjustForSegmentedStacks()
2186 .addReg(ScratchReg) in adjustForSegmentedStacks()
2364 unsigned ScratchReg, SPReg, PReg, SPLimitOffset; in adjustForHiPEPrologue() local
[all …]
DX86MCInstLower.cpp968 unsigned ScratchReg = MI.getOperand(ScratchIdx).getReg(); in LowerPATCHPOINT() local
969 if (X86II::isX86_64ExtendedReg(ScratchReg)) in LowerPATCHPOINT()
975 MCInstBuilder(X86::MOV64ri).addReg(ScratchReg).addOperand(CalleeMCOp)); in LowerPATCHPOINT()
976 EmitAndCountInstruction(MCInstBuilder(X86::CALL64r).addReg(ScratchReg)); in LowerPATCHPOINT()
/external/llvm/lib/Target/ARM/
DARMBaseRegisterInfo.cpp732 unsigned ScratchReg = 0; in eliminateFrameIndex() local
741 ScratchReg = MF.getRegInfo().createVirtualRegister(&ARM::GPRRegClass); in eliminateFrameIndex()
743 emitARMRegPlusImmediate(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, in eliminateFrameIndex()
747 emitT2RegPlusImmediate(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, in eliminateFrameIndex()
751 MI.getOperand(FIOperandNum).ChangeToRegister(ScratchReg, false, false,true); in eliminateFrameIndex()
DARMAsmPrinter.cpp1808 unsigned ScratchReg = MI->getOperand(1).getReg(); in EmitInstruction() local
1818 .addReg(ScratchReg) in EmitInstruction()
1834 .addReg(ScratchReg) in EmitInstruction()
1847 unsigned ScratchReg = MI->getOperand(1).getReg(); in EmitInstruction() local
1849 .addReg(ScratchReg) in EmitInstruction()
1860 .addReg(ScratchReg) in EmitInstruction()
1866 .addReg(ScratchReg) in EmitInstruction()
1882 .addReg(ScratchReg) in EmitInstruction()
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyPEI.cpp1029 unsigned ScratchReg = RS->scavengeRegister(RC, J, SPAdj); in scavengeFrameVirtualRegs() local
1035 assert (ScratchReg && "Missing scratch register!"); in scavengeFrameVirtualRegs()
1036 Fn.getRegInfo().replaceRegWith(Reg, ScratchReg); in scavengeFrameVirtualRegs()
1041 RS->setRegUsed(ScratchReg); in scavengeFrameVirtualRegs()
/external/llvm/lib/CodeGen/
DPrologEpilogInserter.cpp1013 unsigned ScratchReg = RS->scavengeRegister(RC, J, SPAdj); in scavengeFrameVirtualRegs() local
1019 assert (ScratchReg && "Missing scratch register!"); in scavengeFrameVirtualRegs()
1020 Fn.getRegInfo().replaceRegWith(Reg, ScratchReg); in scavengeFrameVirtualRegs()
1025 RS->setRegUsed(ScratchReg); in scavengeFrameVirtualRegs()