/external/swiftshader/third_party/LLVM/lib/Target/Blackfin/ |
D | BlackfinRegisterInfo.cpp | 92 unsigned ScratchReg, in adjustRegister() argument 104 loadConstant(MBB, I, DL, ScratchReg, delta); in adjustRegister() 106 assert(BF::PRegClass.contains(ScratchReg) && in adjustRegister() 110 .addReg(ScratchReg, RegState::Kill); in adjustRegister() 113 assert(BF::DRegClass.contains(ScratchReg) && in adjustRegister() 117 .addReg(ScratchReg, RegState::Kill); in adjustRegister() 267 unsigned ScratchReg = findScratchRegister(II, RS, &BF::PRegClass, SPAdj); in eliminateFrameIndex() local 268 assert(ScratchReg && "Could not scavenge register"); in eliminateFrameIndex() 269 loadConstant(MBB, II, DL, ScratchReg, Offset); in eliminateFrameIndex() 270 BuildMI(MBB, II, DL, TII.get(BF::ADDpp), ScratchReg) in eliminateFrameIndex() [all …]
|
D | BlackfinRegisterInfo.h | 66 unsigned ScratchReg,
|
/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/swiftshader/third_party/LLVM/lib/Target/PowerPC/ |
D | PPCInstrInfo.cpp | 397 unsigned ScratchReg = TM.getSubtargetImpl()->isDarwinABI() ? in StoreRegToStackSlot() local 399 NewMIs.push_back(BuildMI(MF, DL, get(PPC::MFCRpseud), ScratchReg) in StoreRegToStackSlot() 407 NewMIs.push_back(BuildMI(MF, DL, get(PPC::RLWINM), ScratchReg) in StoreRegToStackSlot() 408 .addReg(ScratchReg).addImm(ShiftBits) in StoreRegToStackSlot() 413 .addReg(ScratchReg, in StoreRegToStackSlot() 532 unsigned ScratchReg = TM.getSubtargetImpl()->isDarwinABI() ? in LoadRegFromStackSlot() local 535 ScratchReg), FrameIdx)); in LoadRegFromStackSlot() 542 NewMIs.push_back(BuildMI(MF, DL, get(PPC::RLWINM), ScratchReg) in LoadRegFromStackSlot() 543 .addReg(ScratchReg).addImm(32-ShiftBits).addImm(0) in LoadRegFromStackSlot() 548 .addReg(ScratchReg)); in LoadRegFromStackSlot()
|
/external/swiftshader/third_party/LLVM/lib/Target/XCore/ |
D | XCoreRegisterInfo.cpp | 234 unsigned ScratchReg = RS->scavengeRegister(XCore::GRRegsRegisterClass, II, in eliminateFrameIndex() local 236 loadConstant(MBB, II, ScratchReg, Offset, dl); in eliminateFrameIndex() 241 .addReg(ScratchReg, RegState::Kill); in eliminateFrameIndex() 247 .addReg(ScratchReg, RegState::Kill); in eliminateFrameIndex() 252 .addReg(ScratchReg, RegState::Kill); 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/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/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()
|
/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()
|