Lines Matching refs:PPC
328 O << PPC::stripRegisterPrefix(RegName); in printOperand()
388 if (PPC::isVRRegister(Reg)) in PrintAsmOperand()
389 Reg = PPC::VSX32 + (Reg - PPC::V0); in PrintAsmOperand()
390 else if (PPC::isVFRegister(Reg)) in PrintAsmOperand()
391 Reg = PPC::VSX32 + (Reg - PPC::VF0); in PrintAsmOperand()
394 RegName = PPC::stripRegisterPrefix(RegName); in PrintAsmOperand()
538 MII->getOpcode() == PPC::DBG_VALUE || in LowerSTACKMAP()
548 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::NOP)); in LowerSTACKMAP()
572 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::LI8) in LowerPATCHPOINT()
576 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::RLDIC) in LowerPATCHPOINT()
581 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::ORIS8) in LowerPATCHPOINT()
586 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::ORI8) in LowerPATCHPOINT()
593 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::STD) in LowerPATCHPOINT()
594 .addReg(PPC::X2) in LowerPATCHPOINT()
596 .addReg(PPC::X1)); in LowerPATCHPOINT()
605 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::LD) in LowerPATCHPOINT()
606 .addReg(PPC::X2) in LowerPATCHPOINT()
610 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::LD) in LowerPATCHPOINT()
617 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::MTCTR8) in LowerPATCHPOINT()
620 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::BCTRL8)); in LowerPATCHPOINT()
624 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::LD) in LowerPATCHPOINT()
625 .addReg(PPC::X2) in LowerPATCHPOINT()
627 .addReg(PPC::X1)); in LowerPATCHPOINT()
635 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::BL8_NOP) in LowerPATCHPOINT()
650 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::NOP)); in LowerPATCHPOINT()
662 case PPC::GETtlsTpointer32AIX: in createMCSymbolForTlsGetAddr()
665 case PPC::GETtlsMOD32AIX: in createMCSymbolForTlsGetAddr()
666 case PPC::GETtlsMOD64AIX: in createMCSymbolForTlsGetAddr()
683 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::BLA).addExpr(TlsRef)); in EmitAIXTlsCallHelper()
691 unsigned Opcode = PPC::BL8_NOP_TLS; in EmitTlsCall()
697 Opcode = PPC::BL8_NOTOC_TLS; in EmitTlsCall()
702 ((Subtarget->isPPC64() && MI->getOperand(0).getReg() == PPC::X3) || in EmitTlsCall()
703 (!Subtarget->isPPC64() && MI->getOperand(0).getReg() == PPC::R3)) && in EmitTlsCall()
706 ((Subtarget->isPPC64() && MI->getOperand(1).getReg() == PPC::X3) || in EmitTlsCall()
707 (!Subtarget->isPPC64() && MI->getOperand(1).getReg() == PPC::R3)) && in EmitTlsCall()
715 Register VarOffsetReg = Subtarget->isPPC64() ? PPC::X4 : PPC::R4; in EmitTlsCall()
717 assert((MI->getOpcode() == PPC::GETtlsMOD32AIX || in EmitTlsCall()
718 MI->getOpcode() == PPC::GETtlsMOD64AIX || in EmitTlsCall()
745 : (unsigned)PPC::BL_TLS) in EmitTlsCall()
818 if (PPC::F4RCRegClass.contains(Reg) || in emitInstruction()
819 PPC::F8RCRegClass.contains(Reg) || in emitInstruction()
820 PPC::VFRCRegClass.contains(Reg) || in emitInstruction()
821 PPC::VRRCRegClass.contains(Reg) || in emitInstruction()
822 PPC::VSFRCRegClass.contains(Reg) || in emitInstruction()
823 PPC::VSSRCRegClass.contains(Reg) in emitInstruction()
827 if (PPC::SPERCRegClass.contains(Reg)) in emitInstruction()
936 case PPC::MoveGOTtoLR: { in emitInstruction()
953 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::BL).addExpr(OffsExpr)); in emitInstruction()
956 case PPC::MovePCtoLR: in emitInstruction()
957 case PPC::MovePCtoLR8: { in emitInstruction()
966 MCInstBuilder(PPC::BL) in emitInstruction()
975 case PPC::UpdateGBR: { in emitInstruction()
998 MCInstBuilder(PPC::ADDIS).addReg(PICR).addReg(PICR).addExpr(DeltaHi)); in emitInstruction()
1003 MCInstBuilder(PPC::ADDI).addReg(PICR).addReg(PICR).addExpr(DeltaLo)); in emitInstruction()
1008 TmpInst.setOpcode(PPC::LWZ); in emitInstruction()
1025 TmpInst.setOpcode(PPC::ADD4); in emitInstruction()
1033 case PPC::LWZtoc: { in emitInstruction()
1038 TmpInst.setOpcode(PPC::LWZ); in emitInstruction()
1094 case PPC::ADDItoc: in emitInstruction()
1095 case PPC::ADDItoc8: { in emitInstruction()
1103 TmpInst.setOpcode((!IsPPC64) ? (PPC::LA) : (PPC::LA8)); in emitInstruction()
1118 case PPC::LDtocJTI: in emitInstruction()
1119 case PPC::LDtocCPT: in emitInstruction()
1120 case PPC::LDtocBA: in emitInstruction()
1121 case PPC::LDtoc: { in emitInstruction()
1126 TmpInst.setOpcode(PPC::LD); in emitInstruction()
1155 case PPC::ADDIStocHA: { in emitInstruction()
1169 TmpInst.setOpcode(PPC::ADDIS); in emitInstruction()
1200 case PPC::LWZtocL: { in emitInstruction()
1214 TmpInst.setOpcode(PPC::LWZ); in emitInstruction()
1234 case PPC::ADDIStocHA8: { in emitInstruction()
1242 TmpInst.setOpcode(PPC::ADDIS8); in emitInstruction()
1277 case PPC::LDtocL: { in emitInstruction()
1285 TmpInst.setOpcode(PPC::LD); in emitInstruction()
1312 case PPC::ADDItocL: in emitInstruction()
1313 case PPC::ADDItocL8: { in emitInstruction()
1321 TmpInst.setOpcode(Op == PPC::ADDItocL8 ? (IsAIX ? PPC::LA8 : PPC::ADDI8) in emitInstruction()
1322 : PPC::LA); in emitInstruction()
1325 assert((Op == PPC::ADDItocL8) in emitInstruction()
1343 case PPC::ADDISgotTprelHA: { in emitInstruction()
1353 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::ADDIS8) in emitInstruction()
1359 case PPC::LDgotTprelL: in emitInstruction()
1360 case PPC::LDgotTprelL32: { in emitInstruction()
1365 TmpInst.setOpcode(IsPPC64 ? PPC::LD : PPC::LWZ); in emitInstruction()
1378 case PPC::PPC32PICGOT: { in emitInstruction()
1383 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::BL) in emitInstruction()
1394 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::MFLR) in emitInstruction()
1396 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::LWZ) in emitInstruction()
1400 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::ADD4) in emitInstruction()
1406 case PPC::PPC32GOT: { in emitInstruction()
1413 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::LI) in emitInstruction()
1416 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::ADDIS) in emitInstruction()
1422 case PPC::ADDIStlsgdHA: { in emitInstruction()
1432 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::ADDIS8) in emitInstruction()
1438 case PPC::ADDItlsgdL: in emitInstruction()
1441 case PPC::ADDItlsgdL32: { in emitInstruction()
1452 MCInstBuilder(IsPPC64 ? PPC::ADDI8 : PPC::ADDI) in emitInstruction()
1458 case PPC::GETtlsMOD32AIX: in emitInstruction()
1459 case PPC::GETtlsMOD64AIX: in emitInstruction()
1463 case PPC::GETtlsADDR: in emitInstruction()
1466 case PPC::GETtlsADDRPCREL: in emitInstruction()
1467 case PPC::GETtlsADDR32AIX: in emitInstruction()
1468 case PPC::GETtlsADDR64AIX: in emitInstruction()
1472 case PPC::GETtlsADDR32: { in emitInstruction()
1478 case PPC::GETtlsTpointer32AIX: { in emitInstruction()
1484 case PPC::ADDIStlsldHA: { in emitInstruction()
1494 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::ADDIS8) in emitInstruction()
1500 case PPC::ADDItlsldL: in emitInstruction()
1503 case PPC::ADDItlsldL32: { in emitInstruction()
1514 MCInstBuilder(IsPPC64 ? PPC::ADDI8 : PPC::ADDI) in emitInstruction()
1520 case PPC::GETtlsldADDR: in emitInstruction()
1523 case PPC::GETtlsldADDRPCREL: in emitInstruction()
1524 case PPC::GETtlsldADDR32: { in emitInstruction()
1530 case PPC::ADDISdtprelHA: in emitInstruction()
1533 case PPC::ADDISdtprelHA32: { in emitInstruction()
1544 MCInstBuilder(IsPPC64 ? PPC::ADDIS8 : PPC::ADDIS) in emitInstruction()
1550 case PPC::PADDIdtprel: { in emitInstruction()
1558 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::PADDI8) in emitInstruction()
1565 case PPC::ADDIdtprelL: in emitInstruction()
1568 case PPC::ADDIdtprelL32: { in emitInstruction()
1578 MCInstBuilder(IsPPC64 ? PPC::ADDI8 : PPC::ADDI) in emitInstruction()
1584 case PPC::MFOCRF: in emitInstruction()
1585 case PPC::MFOCRF8: in emitInstruction()
1590 MI->getOpcode() == PPC::MFOCRF ? PPC::MFCR : PPC::MFCR8; in emitInstruction()
1598 case PPC::MTOCRF: in emitInstruction()
1599 case PPC::MTOCRF8: in emitInstruction()
1604 MI->getOpcode() == PPC::MTOCRF ? PPC::MTCRF : PPC::MTCRF8; in emitInstruction()
1615 case PPC::LD: in emitInstruction()
1616 case PPC::STD: in emitInstruction()
1617 case PPC::LWA_32: in emitInstruction()
1618 case PPC::LWA: { in emitInstruction()
1621 unsigned OpNum = (MI->getOpcode() == PPC::STD) ? 2 : 1; in emitInstruction()
1642 case PPC::LBZ: in emitInstruction()
1643 case PPC::LBZ8: in emitInstruction()
1644 case PPC::LHA: in emitInstruction()
1645 case PPC::LHA8: in emitInstruction()
1646 case PPC::LHZ: in emitInstruction()
1647 case PPC::LHZ8: in emitInstruction()
1648 case PPC::LWZ: in emitInstruction()
1649 case PPC::LWZ8: in emitInstruction()
1650 case PPC::STB: in emitInstruction()
1651 case PPC::STB8: in emitInstruction()
1652 case PPC::STH: in emitInstruction()
1653 case PPC::STH8: in emitInstruction()
1654 case PPC::STW: in emitInstruction()
1655 case PPC::STW8: in emitInstruction()
1656 case PPC::LFS: in emitInstruction()
1657 case PPC::STFS: in emitInstruction()
1658 case PPC::LFD: in emitInstruction()
1659 case PPC::STFD: in emitInstruction()
1660 case PPC::ADDI8: { in emitInstruction()
1667 bool IsMIADDI8 = MI->getOpcode() == PPC::ADDI8; in emitInstruction()
1682 TmpInst.setOpcode(PPC::LA8); in emitInstruction()
1690 case PPC::PseudoEIEIO: { in emitInstruction()
1693 MCInstBuilder(PPC::ORI).addReg(PPC::X2).addReg(PPC::X2).addImm(0)); in emitInstruction()
1696 MCInstBuilder(PPC::ORI).addReg(PPC::X2).addReg(PPC::X2).addImm(0)); in emitInstruction()
1697 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::EnforceIEIO)); in emitInstruction()
1820 MCInstBuilder(PPC::B).addExpr( in emitInstruction()
1822 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::NOP)); in emitInstruction()
1825 MCInstBuilder(PPC::STD).addReg(PPC::X0).addImm(-8).addReg(PPC::X1)); in emitInstruction()
1826 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::MFLR8).addReg(PPC::X0)); in emitInstruction()
1828 MCInstBuilder(PPC::BL8_NOP) in emitInstruction()
1832 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::MTLR8).addReg(PPC::X0)); in emitInstruction()
1848 if (RetOpcode == PPC::BCCLR) { in emitInstruction()
1850 } else if (RetOpcode == PPC::TCRETURNdi8 || RetOpcode == PPC::TCRETURNri8 || in emitInstruction()
1851 RetOpcode == PPC::TCRETURNai8) { in emitInstruction()
1853 } else if (RetOpcode == PPC::BLR8 || RetOpcode == PPC::TAILB8) { in emitInstruction()
1883 MCInstBuilder(PPC::BCC) in emitInstruction()
1884 .addImm(PPC::InvertPredicate( in emitInstruction()
1885 static_cast<PPC::Predicate>(MI->getOperand(1).getImm()))) in emitInstruction()
1889 RetInst.setOpcode(PPC::BLR8); in emitInstruction()
1907 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::NOP)); in emitInstruction()
1910 MCInstBuilder(PPC::STD).addReg(PPC::X0).addImm(-8).addReg(PPC::X1)); in emitInstruction()
1911 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::MFLR8).addReg(PPC::X0)); in emitInstruction()
1913 MCInstBuilder(PPC::BL8_NOP) in emitInstruction()
1917 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::MTLR8).addReg(PPC::X0)); in emitInstruction()
2003 && !MF->getRegInfo().use_empty(PPC::X2)) { in emitFunctionEntryLabel()
2117 const bool UsesX2OrR2 = !MF->getRegInfo().use_empty(PPC::X2) || in emitFunctionBodyStart()
2118 !MF->getRegInfo().use_empty(PPC::R2); in emitFunctionBodyStart()
2143 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::ADDIS) in emitFunctionBodyStart()
2144 .addReg(PPC::X2) in emitFunctionBodyStart()
2145 .addReg(PPC::X12) in emitFunctionBodyStart()
2149 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::ADDI) in emitFunctionBodyStart()
2150 .addReg(PPC::X2) in emitFunctionBodyStart()
2151 .addReg(PPC::X2) in emitFunctionBodyStart()
2159 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::LD) in emitFunctionBodyStart()
2160 .addReg(PPC::X2) in emitFunctionBodyStart()
2162 .addReg(PPC::X12)); in emitFunctionBodyStart()
2163 EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::ADD8) in emitFunctionBodyStart()
2164 .addReg(PPC::X2) in emitFunctionBodyStart()
2165 .addReg(PPC::X2) in emitFunctionBodyStart()
2166 .addReg(PPC::X12)); in emitFunctionBodyStart()
2315 for (unsigned Reg = PPC::V20; Reg <= PPC::V31; ++Reg) in getNumberOfVRSaved()
2318 return PPC::V31 - Reg + 1; in getNumberOfVRSaved()
2408 for (unsigned Reg = PPC::F0; Reg <= PPC::F31; ++Reg) { in emitTracebackTable()
2451 if (FrameReg == (Subtarget->isPPC64() ? PPC::X31 : PPC::R31)) in emitTracebackTable()
2481 for (unsigned Reg = PPC::F14; Reg <= PPC::F31; ++Reg) { in emitTracebackTable()
2483 FPRSaved = PPC::F31 - Reg + 1; in emitTracebackTable()
2501 for (unsigned Reg = PPC::V0; Reg <= PPC::V31; ++Reg) in emitTracebackTable()
2521 unsigned GPRBegin = Subtarget->isPPC64() ? PPC::X14 : PPC::R13; in emitTracebackTable()
2522 unsigned GPREnd = Subtarget->isPPC64() ? PPC::X31 : PPC::R31; in emitTracebackTable()
3128 case PPC::TW: in emitInstruction()
3129 case PPC::TWI: in emitInstruction()
3130 case PPC::TD: in emitInstruction()
3131 case PPC::TDI: { in emitInstruction()
3147 case PPC::GETtlsMOD32AIX: in emitInstruction()
3148 case PPC::GETtlsMOD64AIX: in emitInstruction()
3149 case PPC::GETtlsTpointer32AIX: in emitInstruction()
3150 case PPC::GETtlsADDR64AIX: in emitInstruction()
3151 case PPC::GETtlsADDR32AIX: { in emitInstruction()
3159 case PPC::BL8: in emitInstruction()
3160 case PPC::BL: in emitInstruction()
3161 case PPC::BL8_NOP: in emitInstruction()
3162 case PPC::BL_NOP: { in emitInstruction()
3170 case PPC::BL_TLS: in emitInstruction()
3171 case PPC::BL8_TLS: in emitInstruction()
3172 case PPC::BL8_TLS_: in emitInstruction()
3173 case PPC::BL8_NOP_TLS: in emitInstruction()
3175 case PPC::TAILB: in emitInstruction()
3176 case PPC::TAILB8: in emitInstruction()
3177 case PPC::TAILBA: in emitInstruction()
3178 case PPC::TAILBA8: in emitInstruction()
3179 case PPC::TAILBCTR: in emitInstruction()
3180 case PPC::TAILBCTR8: in emitInstruction()
3184 case PPC::DST: in emitInstruction()
3185 case PPC::DST64: in emitInstruction()
3186 case PPC::DSTT: in emitInstruction()
3187 case PPC::DSTT64: in emitInstruction()
3188 case PPC::DSTST: in emitInstruction()
3189 case PPC::DSTST64: in emitInstruction()
3190 case PPC::DSTSTT: in emitInstruction()
3191 case PPC::DSTSTT64: in emitInstruction()
3194 MCInstBuilder(PPC::ORI).addReg(PPC::R0).addReg(PPC::R0).addImm(0)); in emitInstruction()