/external/llvm/lib/Target/SystemZ/ |
D | SystemZRegisterInfo.cpp | 115 unsigned ScratchReg = in eliminateFrameIndex() local 123 TII->loadImmediate(MBB, MI, ScratchReg, HighOffset); in eliminateFrameIndex() 125 MI->getOperand(FIOperandNum + 2).ChangeToRegister(ScratchReg, in eliminateFrameIndex() 131 BuildMI(MBB, MI, DL, TII->get(LAOpcode),ScratchReg) in eliminateFrameIndex() 136 TII->loadImmediate(MBB, MI, ScratchReg, HighOffset); in eliminateFrameIndex() 137 BuildMI(MBB, MI, DL, TII->get(SystemZ::AGR),ScratchReg) in eliminateFrameIndex() 138 .addReg(ScratchReg, RegState::Kill).addReg(BasePtr); in eliminateFrameIndex() 142 MI->getOperand(FIOperandNum).ChangeToRegister(ScratchReg, in eliminateFrameIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCFrameLowering.cpp | 761 unsigned ScratchReg = 0; in emitPrologue() local 793 &ScratchReg, &TempReg); in emitPrologue() 797 SingleScratchReg = ScratchReg == TempReg; in emitPrologue() 870 BuildMI(MBB, MBBI, dl, MFLRInst, ScratchReg); in emitPrologue() 910 .addReg(ScratchReg, getKillRegState(true)) in emitPrologue() 944 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLDICL), ScratchReg) in emitPrologue() 949 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLWINM), ScratchReg) in emitPrologue() 955 BuildMI(MBB, MBBI, dl, SubtractImmCarryingInst, ScratchReg) in emitPrologue() 956 .addReg(ScratchReg, RegState::Kill) in emitPrologue() 965 BuildMI(MBB, MBBI, dl, SubtractCarryingInst, ScratchReg) in emitPrologue() [all …]
|
D | PPCAsmPrinter.cpp | 386 unsigned ScratchReg = MI.getOperand(Opers.getNextScratchIdx()).getReg(); in LowerPATCHPOINT() local 390 .addReg(ScratchReg) in LowerPATCHPOINT() 394 .addReg(ScratchReg) in LowerPATCHPOINT() 395 .addReg(ScratchReg) in LowerPATCHPOINT() 399 .addReg(ScratchReg) in LowerPATCHPOINT() 400 .addReg(ScratchReg) in LowerPATCHPOINT() 404 .addReg(ScratchReg) in LowerPATCHPOINT() 405 .addReg(ScratchReg) in LowerPATCHPOINT() 425 .addReg(ScratchReg)); in LowerPATCHPOINT() 428 .addReg(ScratchReg) in LowerPATCHPOINT() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/BPF/ |
D | BPFInstrInfo.cpp | 51 unsigned ScratchReg = MI->getOperand(4).getReg(); in expandMEMCPY() local 80 .addReg(ScratchReg, RegState::Define).addReg(SrcReg) in expandMEMCPY() 83 .addReg(ScratchReg, RegState::Kill).addReg(DstReg) in expandMEMCPY() 94 .addReg(ScratchReg, RegState::Define).addReg(SrcReg).addImm(Offset); in expandMEMCPY() 96 .addReg(ScratchReg, RegState::Kill).addReg(DstReg).addImm(Offset); in expandMEMCPY() 101 .addReg(ScratchReg, RegState::Define).addReg(SrcReg).addImm(Offset); in expandMEMCPY() 103 .addReg(ScratchReg, RegState::Kill).addReg(DstReg).addImm(Offset); in expandMEMCPY() 108 .addReg(ScratchReg, RegState::Define).addReg(SrcReg).addImm(Offset); in expandMEMCPY() 110 .addReg(ScratchReg, RegState::Kill).addReg(DstReg).addImm(Offset); in expandMEMCPY()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/RISCV/ |
D | RISCVRegisterInfo.cpp | 97 unsigned ScratchReg = MRI.createVirtualRegister(&RISCV::GPRRegClass); in eliminateFrameIndex() local 98 TII->movImm32(MBB, II, DL, ScratchReg, Offset); in eliminateFrameIndex() 99 BuildMI(MBB, II, DL, TII->get(RISCV::ADD), ScratchReg) in eliminateFrameIndex() 101 .addReg(ScratchReg, RegState::Kill); in eliminateFrameIndex() 103 FrameReg = ScratchReg; in eliminateFrameIndex()
|
D | RISCVInstrInfo.cpp | 377 unsigned ScratchReg = MRI.createVirtualRegister(&RISCV::GPRRegClass); in insertIndirectBranch() local 380 MachineInstr &LuiMI = *BuildMI(MBB, II, DL, get(RISCV::LUI), ScratchReg) in insertIndirectBranch() 383 .addReg(ScratchReg, RegState::Kill) in insertIndirectBranch() 389 MRI.replaceRegWith(ScratchReg, Scav); in insertIndirectBranch()
|
D | RISCVFrameLowering.cpp | 77 unsigned ScratchReg = MRI.createVirtualRegister(&RISCV::GPRRegClass); in adjustReg() local 78 TII->movImm32(MBB, MBBI, DL, ScratchReg, Val, Flag); in adjustReg() 81 .addReg(ScratchReg, RegState::Kill) in adjustReg()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/ |
D | SystemZRegisterInfo.cpp | 212 unsigned ScratchReg = in eliminateFrameIndex() local 220 TII->loadImmediate(MBB, MI, ScratchReg, HighOffset); in eliminateFrameIndex() 222 MI->getOperand(FIOperandNum + 2).ChangeToRegister(ScratchReg, in eliminateFrameIndex() 228 BuildMI(MBB, MI, DL, TII->get(LAOpcode),ScratchReg) in eliminateFrameIndex() 233 TII->loadImmediate(MBB, MI, ScratchReg, HighOffset); in eliminateFrameIndex() 234 BuildMI(MBB, MI, DL, TII->get(SystemZ::AGR),ScratchReg) in eliminateFrameIndex() 235 .addReg(ScratchReg, RegState::Kill).addReg(BasePtr); in eliminateFrameIndex() 239 MI->getOperand(FIOperandNum).ChangeToRegister(ScratchReg, in eliminateFrameIndex()
|
D | SystemZAsmPrinter.cpp | 553 unsigned ScratchReg = 0; in LowerPATCHPOINT() local 556 ScratchReg = MI.getOperand(ScratchIdx).getReg(); in LowerPATCHPOINT() 557 } while (ScratchReg == SystemZ::R0D); in LowerPATCHPOINT() 561 .addReg(ScratchReg) in LowerPATCHPOINT() 566 .addReg(ScratchReg) in LowerPATCHPOINT() 573 .addReg(ScratchReg)); in LowerPATCHPOINT()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCFrameLowering.cpp | 751 unsigned ScratchReg = 0; in emitPrologue() local 783 &ScratchReg, &TempReg); in emitPrologue() 787 SingleScratchReg = ScratchReg == TempReg; in emitPrologue() 860 BuildMI(MBB, MBBI, dl, MFLRInst, ScratchReg); in emitPrologue() 904 .addReg(ScratchReg) in emitPrologue() 931 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLDICL), ScratchReg) in emitPrologue() 936 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLWINM), ScratchReg) in emitPrologue() 942 BuildMI(MBB, MBBI, dl, SubtractImmCarryingInst, ScratchReg) in emitPrologue() 943 .addReg(ScratchReg, RegState::Kill) in emitPrologue() 952 BuildMI(MBB, MBBI, dl, SubtractCarryingInst, ScratchReg) in emitPrologue() [all …]
|
D | PPCAsmPrinter.cpp | 358 unsigned ScratchReg = MI.getOperand(Opers.getNextScratchIdx()).getReg(); in LowerPATCHPOINT() local 362 .addReg(ScratchReg) in LowerPATCHPOINT() 366 .addReg(ScratchReg) in LowerPATCHPOINT() 367 .addReg(ScratchReg) in LowerPATCHPOINT() 371 .addReg(ScratchReg) in LowerPATCHPOINT() 372 .addReg(ScratchReg) in LowerPATCHPOINT() 376 .addReg(ScratchReg) in LowerPATCHPOINT() 377 .addReg(ScratchReg) in LowerPATCHPOINT() 397 .addReg(ScratchReg)); in LowerPATCHPOINT() 400 .addReg(ScratchReg) in LowerPATCHPOINT() [all …]
|
/external/llvm/lib/Target/X86/AsmParser/ |
D | X86AsmInstrumentation.cpp | 131 unsigned ScratchReg) { in RegisterContext() 134 BusyRegs.push_back(convReg(ScratchReg, 64)); in RegisterContext() 145 unsigned ScratchReg(unsigned Size) const { in ScratchReg() function 555 if (RegCtx.ScratchReg(32) != X86::NoRegister) in InstrumentMemOperandPrologue() 556 SpillReg(Out, RegCtx.ScratchReg(32)); in InstrumentMemOperandPrologue() 567 if (RegCtx.ScratchReg(32) != X86::NoRegister) in InstrumentMemOperandEpilogue() 568 RestoreReg(Out, RegCtx.ScratchReg(32)); in InstrumentMemOperandEpilogue() 623 assert(RegCtx.ScratchReg(32) != X86::NoRegister); in InstrumentMemOperandSmall() 624 unsigned ScratchRegI32 = RegCtx.ScratchReg(32); in InstrumentMemOperandSmall() 814 if (RegCtx.ScratchReg(64) != X86::NoRegister) in InstrumentMemOperandPrologue() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/AsmParser/ |
D | X86AsmInstrumentation.cpp | 143 unsigned ScratchReg) { in RegisterContext() 146 BusyRegs.push_back(convReg(ScratchReg, 64)); in RegisterContext() 157 unsigned ScratchReg(unsigned Size) const { in ScratchReg() function 568 if (RegCtx.ScratchReg(32) != X86::NoRegister) in InstrumentMemOperandPrologue() 569 SpillReg(Out, RegCtx.ScratchReg(32)); in InstrumentMemOperandPrologue() 580 if (RegCtx.ScratchReg(32) != X86::NoRegister) in InstrumentMemOperandEpilogue() 581 RestoreReg(Out, RegCtx.ScratchReg(32)); in InstrumentMemOperandEpilogue() 636 assert(RegCtx.ScratchReg(32) != X86::NoRegister); in InstrumentMemOperandSmall() 637 unsigned ScratchRegI32 = RegCtx.ScratchReg(32); in InstrumentMemOperandSmall() 827 if (RegCtx.ScratchReg(64) != X86::NoRegister) in InstrumentMemOperandPrologue() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/ |
D | AArch64FalkorHWPFFix.cpp | 751 for (unsigned ScratchReg : AArch64::GPR64RegClass) { in runOnLoop() local 752 if (!LR.available(ScratchReg) || MRI.isReserved(ScratchReg)) in runOnLoop() 756 NewLdI.BaseReg = ScratchReg; in runOnLoop() 763 << printReg(ScratchReg, TRI) << '\n'); in runOnLoop() 771 BuildMI(*MBB, &MI, DL, TII->get(AArch64::ORRXrs), ScratchReg) in runOnLoop() 776 BaseOpnd.setReg(ScratchReg); in runOnLoop() 782 << printReg(ScratchReg, TRI) << '\n'); in runOnLoop() 784 ScratchReg); // Change tied operand pre/post update dest. in runOnLoop() 788 .addReg(ScratchReg) in runOnLoop()
|
D | AArch64AsmPrinter.cpp | 475 unsigned ScratchReg = MI.getOperand(Opers.getNextScratchIdx()).getReg(); in LowerPATCHPOINT() local 479 .addReg(ScratchReg) in LowerPATCHPOINT() 483 .addReg(ScratchReg) in LowerPATCHPOINT() 484 .addReg(ScratchReg) in LowerPATCHPOINT() 488 .addReg(ScratchReg) in LowerPATCHPOINT() 489 .addReg(ScratchReg) in LowerPATCHPOINT() 492 EmitToStreamer(OutStreamer, MCInstBuilder(AArch64::BLR).addReg(ScratchReg)); in LowerPATCHPOINT()
|
D | AArch64RegisterInfo.cpp | 429 unsigned ScratchReg = in eliminateFrameIndex() local 431 emitFrameOffset(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, Offset, TII); in eliminateFrameIndex() 432 MI.getOperand(FIOperandNum).ChangeToRegister(ScratchReg, false, false, true); in eliminateFrameIndex()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64AsmPrinter.cpp | 394 unsigned ScratchReg = MI.getOperand(Opers.getNextScratchIdx()).getReg(); in LowerPATCHPOINT() local 398 .addReg(ScratchReg) in LowerPATCHPOINT() 402 .addReg(ScratchReg) in LowerPATCHPOINT() 403 .addReg(ScratchReg) in LowerPATCHPOINT() 407 .addReg(ScratchReg) in LowerPATCHPOINT() 408 .addReg(ScratchReg) in LowerPATCHPOINT() 411 EmitToStreamer(OutStreamer, MCInstBuilder(AArch64::BLR).addReg(ScratchReg)); in LowerPATCHPOINT()
|
D | AArch64RegisterInfo.cpp | 401 unsigned ScratchReg = in eliminateFrameIndex() local 403 emitFrameOffset(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, Offset, TII); in eliminateFrameIndex() 404 MI.getOperand(FIOperandNum).ChangeToRegister(ScratchReg, false, false, true); in eliminateFrameIndex()
|
/external/llvm/lib/Target/ARM/ |
D | ARMBaseRegisterInfo.cpp | 760 unsigned ScratchReg = 0; in eliminateFrameIndex() local 769 ScratchReg = MF.getRegInfo().createVirtualRegister(&ARM::GPRRegClass); in eliminateFrameIndex() 771 emitARMRegPlusImmediate(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, in eliminateFrameIndex() 775 emitT2RegPlusImmediate(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, in eliminateFrameIndex() 779 MI.getOperand(FIOperandNum).ChangeToRegister(ScratchReg, false, false,true); in eliminateFrameIndex()
|
D | ARMAsmPrinter.cpp | 1853 unsigned ScratchReg = MI->getOperand(1).getReg(); in EmitInstruction() local 1863 .addReg(ScratchReg) in EmitInstruction() 1879 .addReg(ScratchReg) in EmitInstruction() 1892 unsigned ScratchReg = MI->getOperand(1).getReg(); in EmitInstruction() local 1895 .addReg(ScratchReg) in EmitInstruction() 1906 .addReg(ScratchReg) in EmitInstruction() 1912 .addReg(ScratchReg) in EmitInstruction() 1928 .addReg(ScratchReg) in EmitInstruction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | ARMBaseRegisterInfo.cpp | 779 unsigned ScratchReg = 0; in eliminateFrameIndex() local 788 ScratchReg = MF.getRegInfo().createVirtualRegister(&ARM::GPRRegClass); in eliminateFrameIndex() 790 emitARMRegPlusImmediate(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, in eliminateFrameIndex() 794 emitT2RegPlusImmediate(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, in eliminateFrameIndex() 798 MI.getOperand(FIOperandNum).ChangeToRegister(ScratchReg, false, false,true); in eliminateFrameIndex()
|
D | ARMAsmPrinter.cpp | 1874 unsigned ScratchReg = MI->getOperand(1).getReg(); in EmitInstruction() local 1884 .addReg(ScratchReg) in EmitInstruction() 1921 .addReg(ScratchReg) in EmitInstruction() 1934 unsigned ScratchReg = MI->getOperand(1).getReg(); in EmitInstruction() local 1937 .addReg(ScratchReg) in EmitInstruction() 1948 .addReg(ScratchReg) in EmitInstruction() 1954 .addReg(ScratchReg) in EmitInstruction() 1990 .addReg(ScratchReg) in EmitInstruction()
|
/external/llvm/lib/Target/X86/ |
D | X86FrameLowering.cpp | 2103 unsigned ScratchReg = GetScratchRegister(Is64Bit, IsLP64, MF, true); in adjustForSegmentedStacks() local 2104 assert(!MF.getRegInfo().isLiveIn(ScratchReg) && in adjustForSegmentedStacks() 2172 ScratchReg = IsLP64 ? X86::RSP : X86::ESP; in adjustForSegmentedStacks() 2174 … BuildMI(checkMBB, DL, TII.get(IsLP64 ? X86::LEA64r : X86::LEA64_32r), ScratchReg).addReg(X86::RSP) in adjustForSegmentedStacks() 2177 BuildMI(checkMBB, DL, TII.get(IsLP64 ? X86::CMP64rm : X86::CMP32rm)).addReg(ScratchReg) in adjustForSegmentedStacks() 2199 ScratchReg = X86::ESP; in adjustForSegmentedStacks() 2201 BuildMI(checkMBB, DL, TII.get(X86::LEA32r), ScratchReg).addReg(X86::ESP) in adjustForSegmentedStacks() 2206 BuildMI(checkMBB, DL, TII.get(X86::CMP32rm)).addReg(ScratchReg) in adjustForSegmentedStacks() 2237 .addReg(ScratchReg) in adjustForSegmentedStacks() 2448 unsigned ScratchReg, SPReg, PReg, SPLimitOffset; in adjustForHiPEPrologue() local [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86FrameLowering.cpp | 2247 unsigned ScratchReg = GetScratchRegister(Is64Bit, IsLP64, MF, true); in adjustForSegmentedStacks() local 2248 assert(!MF.getRegInfo().isLiveIn(ScratchReg) && in adjustForSegmentedStacks() 2318 ScratchReg = IsLP64 ? X86::RSP : X86::ESP; in adjustForSegmentedStacks() 2320 … BuildMI(checkMBB, DL, TII.get(IsLP64 ? X86::LEA64r : X86::LEA64_32r), ScratchReg).addReg(X86::RSP) in adjustForSegmentedStacks() 2323 BuildMI(checkMBB, DL, TII.get(IsLP64 ? X86::CMP64rm : X86::CMP32rm)).addReg(ScratchReg) in adjustForSegmentedStacks() 2345 ScratchReg = X86::ESP; in adjustForSegmentedStacks() 2347 BuildMI(checkMBB, DL, TII.get(X86::LEA32r), ScratchReg).addReg(X86::ESP) in adjustForSegmentedStacks() 2352 BuildMI(checkMBB, DL, TII.get(X86::CMP32rm)).addReg(ScratchReg) in adjustForSegmentedStacks() 2383 .addReg(ScratchReg) in adjustForSegmentedStacks() 2598 unsigned ScratchReg, SPReg, PReg, SPLimitOffset; in adjustForHiPEPrologue() local [all …]
|
/external/llvm/lib/CodeGen/ |
D | PrologEpilogInserter.cpp | 1198 unsigned ScratchReg = RS->scavengeRegister(RC, J, SPAdj); in doScavengeFrameVirtualRegs() local 1204 assert(ScratchReg && "Missing scratch register!"); in doScavengeFrameVirtualRegs() 1205 MRI.replaceRegWith(Reg, ScratchReg); in doScavengeFrameVirtualRegs() 1210 RS->setRegUsed(ScratchReg); in doScavengeFrameVirtualRegs()
|