/external/llvm-project/llvm/lib/Target/RISCV/ |
D | RISCVExpandAtomicPseudoInsts.cpp | 222 Register ScratchReg = MI.getOperand(1).getReg(); in doAtomicBinOpExpansion() local 239 BuildMI(LoopMBB, DL, TII->get(RISCV::AND), ScratchReg) in doAtomicBinOpExpansion() 242 BuildMI(LoopMBB, DL, TII->get(RISCV::XORI), ScratchReg) in doAtomicBinOpExpansion() 243 .addReg(ScratchReg) in doAtomicBinOpExpansion() 247 BuildMI(LoopMBB, DL, TII->get(getSCForRMW(Ordering, Width)), ScratchReg) in doAtomicBinOpExpansion() 249 .addReg(ScratchReg); in doAtomicBinOpExpansion() 251 .addReg(ScratchReg) in doAtomicBinOpExpansion() 259 Register MaskReg, Register ScratchReg) { in insertMaskedMerge() argument 260 assert(OldValReg != ScratchReg && "OldValReg and ScratchReg must be unique"); in insertMaskedMerge() 262 assert(ScratchReg != MaskReg && "ScratchReg and MaskReg must be unique"); in insertMaskedMerge() [all …]
|
D | RISCVRegisterInfo.cpp | 182 Register ScratchReg = MRI.createVirtualRegister(&RISCV::GPRRegClass); in eliminateFrameIndex() local 183 TII->movImm(MBB, II, DL, ScratchReg, Offset); in eliminateFrameIndex() 184 BuildMI(MBB, II, DL, TII->get(RISCV::ADD), ScratchReg) in eliminateFrameIndex() 186 .addReg(ScratchReg, RegState::Kill); in eliminateFrameIndex() 188 FrameReg = ScratchReg; in eliminateFrameIndex()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/ |
D | RISCVExpandPseudoInsts.cpp | 239 Register ScratchReg = MI.getOperand(1).getReg(); in doAtomicBinOpExpansion() local 256 BuildMI(LoopMBB, DL, TII->get(RISCV::AND), ScratchReg) in doAtomicBinOpExpansion() 259 BuildMI(LoopMBB, DL, TII->get(RISCV::XORI), ScratchReg) in doAtomicBinOpExpansion() 260 .addReg(ScratchReg) in doAtomicBinOpExpansion() 264 BuildMI(LoopMBB, DL, TII->get(getSCForRMW(Ordering, Width)), ScratchReg) in doAtomicBinOpExpansion() 266 .addReg(ScratchReg); in doAtomicBinOpExpansion() 268 .addReg(ScratchReg) in doAtomicBinOpExpansion() 276 Register MaskReg, Register ScratchReg) { in insertMaskedMerge() argument 277 assert(OldValReg != ScratchReg && "OldValReg and ScratchReg must be unique"); in insertMaskedMerge() 279 assert(ScratchReg != MaskReg && "ScratchReg and MaskReg must be unique"); in insertMaskedMerge() [all …]
|
D | RISCVRegisterInfo.cpp | 135 Register ScratchReg = MRI.createVirtualRegister(&RISCV::GPRRegClass); in eliminateFrameIndex() local 136 TII->movImm(MBB, II, DL, ScratchReg, Offset); in eliminateFrameIndex() 137 BuildMI(MBB, II, DL, TII->get(RISCV::ADD), ScratchReg) in eliminateFrameIndex() 139 .addReg(ScratchReg, RegState::Kill); in eliminateFrameIndex() 141 FrameReg = ScratchReg; in eliminateFrameIndex()
|
/external/llvm-project/llvm/lib/Target/PowerPC/ |
D | PPCFrameLowering.cpp | 650 Register ScratchReg; in emitPrologue() local 684 &MBB, false, twoUniqueScratchRegsRequired(&MBB), &ScratchReg, &TempReg); in emitPrologue() 688 SingleScratchReg = ScratchReg == TempReg; in emitPrologue() 796 BuildMI(MBB, MBBI, dl, MFLRInst, ScratchReg); in emitPrologue() 821 .addReg(ScratchReg, getKillRegState(true)) in emitPrologue() 861 .addDef(ScratchReg) in emitPrologue() 868 BuildMI(MBB, MBBI, dl, TII.get(PPC::SUBF), ScratchReg) in emitPrologue() 877 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLDICL), ScratchReg) in emitPrologue() 882 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLWINM), ScratchReg) in emitPrologue() 888 BuildMI(MBB, MBBI, dl, SubtractImmCarryingInst, ScratchReg) in emitPrologue() [all …]
|
/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-10.0/llvm/lib/Target/BPF/ |
D | BPFInstrInfo.cpp | 50 Register ScratchReg = MI->getOperand(4).getReg(); in expandMEMCPY() local 79 .addReg(ScratchReg, RegState::Define).addReg(SrcReg) in expandMEMCPY() 82 .addReg(ScratchReg, RegState::Kill).addReg(DstReg) in expandMEMCPY() 93 .addReg(ScratchReg, RegState::Define).addReg(SrcReg).addImm(Offset); in expandMEMCPY() 95 .addReg(ScratchReg, RegState::Kill).addReg(DstReg).addImm(Offset); in expandMEMCPY() 100 .addReg(ScratchReg, RegState::Define).addReg(SrcReg).addImm(Offset); in expandMEMCPY() 102 .addReg(ScratchReg, RegState::Kill).addReg(DstReg).addImm(Offset); in expandMEMCPY() 107 .addReg(ScratchReg, RegState::Define).addReg(SrcReg).addImm(Offset); in expandMEMCPY() 109 .addReg(ScratchReg, RegState::Kill).addReg(DstReg).addImm(Offset); in expandMEMCPY()
|
/external/llvm-project/llvm/lib/Target/BPF/ |
D | BPFInstrInfo.cpp | 50 Register ScratchReg = MI->getOperand(4).getReg(); in expandMEMCPY() local 79 .addReg(ScratchReg, RegState::Define).addReg(SrcReg) in expandMEMCPY() 82 .addReg(ScratchReg, RegState::Kill).addReg(DstReg) in expandMEMCPY() 93 .addReg(ScratchReg, RegState::Define).addReg(SrcReg).addImm(Offset); in expandMEMCPY() 95 .addReg(ScratchReg, RegState::Kill).addReg(DstReg).addImm(Offset); in expandMEMCPY() 100 .addReg(ScratchReg, RegState::Define).addReg(SrcReg).addImm(Offset); in expandMEMCPY() 102 .addReg(ScratchReg, RegState::Kill).addReg(DstReg).addImm(Offset); in expandMEMCPY() 107 .addReg(ScratchReg, RegState::Define).addReg(SrcReg).addImm(Offset); in expandMEMCPY() 109 .addReg(ScratchReg, RegState::Kill).addReg(DstReg).addImm(Offset); in expandMEMCPY()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCFrameLowering.cpp | 836 unsigned ScratchReg = 0; in emitPrologue() local 868 &ScratchReg, &TempReg); in emitPrologue() 872 SingleScratchReg = ScratchReg == TempReg; in emitPrologue() 987 BuildMI(MBB, MBBI, dl, MFLRInst, ScratchReg); in emitPrologue() 1027 .addReg(ScratchReg, getKillRegState(true)) in emitPrologue() 1061 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLDICL), ScratchReg) in emitPrologue() 1066 BuildMI(MBB, MBBI, dl, TII.get(PPC::RLWINM), ScratchReg) in emitPrologue() 1072 BuildMI(MBB, MBBI, dl, SubtractImmCarryingInst, ScratchReg) in emitPrologue() 1073 .addReg(ScratchReg, RegState::Kill) in emitPrologue() 1082 BuildMI(MBB, MBBI, dl, SubtractCarryingInst, ScratchReg) in emitPrologue() [all …]
|
D | PPCAsmPrinter.cpp | 393 Register ScratchReg = MI.getOperand(Opers.getNextScratchIdx()).getReg(); in LowerPATCHPOINT() local 397 .addReg(ScratchReg) in LowerPATCHPOINT() 401 .addReg(ScratchReg) in LowerPATCHPOINT() 402 .addReg(ScratchReg) in LowerPATCHPOINT() 406 .addReg(ScratchReg) in LowerPATCHPOINT() 407 .addReg(ScratchReg) in LowerPATCHPOINT() 411 .addReg(ScratchReg) in LowerPATCHPOINT() 412 .addReg(ScratchReg) in LowerPATCHPOINT() 432 .addReg(ScratchReg)); in LowerPATCHPOINT() 435 .addReg(ScratchReg) in LowerPATCHPOINT() [all …]
|
/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/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64RegisterInfo.cpp | 504 Register ScratchReg = in eliminateFrameIndex() local 506 emitFrameOffset(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, Offset, in eliminateFrameIndex() 508 BuildMI(MBB, MI, MI.getDebugLoc(), TII->get(AArch64::LDG), ScratchReg) in eliminateFrameIndex() 509 .addReg(ScratchReg) in eliminateFrameIndex() 510 .addReg(ScratchReg) in eliminateFrameIndex() 513 .ChangeToRegister(ScratchReg, false, false, true); in eliminateFrameIndex() 534 Register ScratchReg = in eliminateFrameIndex() local 536 emitFrameOffset(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, Offset, TII); in eliminateFrameIndex() 537 MI.getOperand(FIOperandNum).ChangeToRegister(ScratchReg, false, false, true); in eliminateFrameIndex()
|
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 | 829 Register ScratchReg = MI.getOperand(1).getReg(); in LowerJumpTableDestSmall() local 831 STI->getRegisterInfo()->getSubReg(ScratchReg, AArch64::sub_32); in LowerJumpTableDestSmall() 860 .addReg(ScratchReg) in LowerJumpTableDestSmall() 910 Register ScratchReg = MI.getOperand(Opers.getNextScratchIdx()).getReg(); in LowerPATCHPOINT() local 914 .addReg(ScratchReg) in LowerPATCHPOINT() 918 .addReg(ScratchReg) in LowerPATCHPOINT() 919 .addReg(ScratchReg) in LowerPATCHPOINT() 923 .addReg(ScratchReg) in LowerPATCHPOINT() 924 .addReg(ScratchReg) in LowerPATCHPOINT() 927 EmitToStreamer(OutStreamer, MCInstBuilder(AArch64::BLR).addReg(ScratchReg)); in LowerPATCHPOINT() [all …]
|
/external/llvm-project/llvm/lib/Target/SystemZ/ |
D | SystemZRegisterInfo.cpp | 304 Register ScratchReg = in eliminateFrameIndex() local 312 TII->loadImmediate(MBB, MI, ScratchReg, HighOffset); in eliminateFrameIndex() 314 MI->getOperand(FIOperandNum + 2).ChangeToRegister(ScratchReg, in eliminateFrameIndex() 320 BuildMI(MBB, MI, DL, TII->get(LAOpcode),ScratchReg) in eliminateFrameIndex() 325 TII->loadImmediate(MBB, MI, ScratchReg, HighOffset); in eliminateFrameIndex() 326 BuildMI(MBB, MI, DL, TII->get(SystemZ::LA), ScratchReg) in eliminateFrameIndex() 327 .addReg(BasePtr, RegState::Kill).addImm(0).addReg(ScratchReg); in eliminateFrameIndex() 331 MI->getOperand(FIOperandNum).ChangeToRegister(ScratchReg, in eliminateFrameIndex()
|
D | SystemZAsmPrinter.cpp | 633 unsigned ScratchReg = 0; in LowerPATCHPOINT() local 636 ScratchReg = MI.getOperand(ScratchIdx).getReg(); in LowerPATCHPOINT() 637 } while (ScratchReg == SystemZ::R0D); in LowerPATCHPOINT() 641 .addReg(ScratchReg) in LowerPATCHPOINT() 646 .addReg(ScratchReg) in LowerPATCHPOINT() 653 .addReg(ScratchReg)); in LowerPATCHPOINT()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/ |
D | SystemZRegisterInfo.cpp | 305 Register ScratchReg = in eliminateFrameIndex() local 313 TII->loadImmediate(MBB, MI, ScratchReg, HighOffset); in eliminateFrameIndex() 315 MI->getOperand(FIOperandNum + 2).ChangeToRegister(ScratchReg, in eliminateFrameIndex() 321 BuildMI(MBB, MI, DL, TII->get(LAOpcode),ScratchReg) in eliminateFrameIndex() 326 TII->loadImmediate(MBB, MI, ScratchReg, HighOffset); in eliminateFrameIndex() 327 BuildMI(MBB, MI, DL, TII->get(SystemZ::AGR),ScratchReg) in eliminateFrameIndex() 328 .addReg(ScratchReg, RegState::Kill).addReg(BasePtr); in eliminateFrameIndex() 332 MI->getOperand(FIOperandNum).ChangeToRegister(ScratchReg, in eliminateFrameIndex()
|
D | SystemZAsmPrinter.cpp | 633 unsigned ScratchReg = 0; in LowerPATCHPOINT() local 636 ScratchReg = MI.getOperand(ScratchIdx).getReg(); in LowerPATCHPOINT() 637 } while (ScratchReg == SystemZ::R0D); in LowerPATCHPOINT() 641 .addReg(ScratchReg) in LowerPATCHPOINT() 646 .addReg(ScratchReg) in LowerPATCHPOINT() 653 .addReg(ScratchReg)); in LowerPATCHPOINT()
|
/external/llvm-project/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 | AArch64RegisterInfo.cpp | 653 Register ScratchReg = in eliminateFrameIndex() local 655 emitFrameOffset(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, Offset, in eliminateFrameIndex() 657 BuildMI(MBB, MI, MI.getDebugLoc(), TII->get(AArch64::LDG), ScratchReg) in eliminateFrameIndex() 658 .addReg(ScratchReg) in eliminateFrameIndex() 659 .addReg(ScratchReg) in eliminateFrameIndex() 662 .ChangeToRegister(ScratchReg, false, false, true); in eliminateFrameIndex() 683 Register ScratchReg = createScratchRegisterForInstruction(MI, TII); in eliminateFrameIndex() local 684 emitFrameOffset(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, Offset, TII); in eliminateFrameIndex() 685 MI.getOperand(FIOperandNum).ChangeToRegister(ScratchReg, false, false, true); in eliminateFrameIndex()
|
D | AArch64AsmPrinter.cpp | 857 Register ScratchReg = MI.getOperand(1).getReg(); in LowerJumpTableDest() local 859 STI->getRegisterInfo()->getSubReg(ScratchReg, AArch64::sub_32); in LowerJumpTableDest() 894 .addReg(Size == 4 ? ScratchReg : ScratchRegW) in LowerJumpTableDest() 905 .addReg(ScratchReg) in LowerJumpTableDest() 955 Register ScratchReg = MI.getOperand(Opers.getNextScratchIdx()).getReg(); in LowerPATCHPOINT() local 959 .addReg(ScratchReg) in LowerPATCHPOINT() 963 .addReg(ScratchReg) in LowerPATCHPOINT() 964 .addReg(ScratchReg) in LowerPATCHPOINT() 968 .addReg(ScratchReg) in LowerPATCHPOINT() 969 .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/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()
|