Lines Matching full:ppc

14 #include "PPC.h"
30 #define DEBUG_TYPE "ppc-pre-emit-peephole"
44 EnablePCRelLinkerOpt("ppc-pcrel-linker-opt", cl::Hidden, cl::init(true),
48 RunPreEmitPeephole("ppc-late-peephole", cl::Hidden, cl::init(true),
52 DSCRValue("ppc-set-dscr", cl::Hidden,
61 case PPC::LBZ: in hasPCRelativeForm()
62 case PPC::LBZ8: in hasPCRelativeForm()
63 case PPC::LHA: in hasPCRelativeForm()
64 case PPC::LHA8: in hasPCRelativeForm()
65 case PPC::LHZ: in hasPCRelativeForm()
66 case PPC::LHZ8: in hasPCRelativeForm()
67 case PPC::LWZ: in hasPCRelativeForm()
68 case PPC::LWZ8: in hasPCRelativeForm()
69 case PPC::STB: in hasPCRelativeForm()
70 case PPC::STB8: in hasPCRelativeForm()
71 case PPC::STH: in hasPCRelativeForm()
72 case PPC::STH8: in hasPCRelativeForm()
73 case PPC::STW: in hasPCRelativeForm()
74 case PPC::STW8: in hasPCRelativeForm()
75 case PPC::LD: in hasPCRelativeForm()
76 case PPC::STD: in hasPCRelativeForm()
77 case PPC::LWA: in hasPCRelativeForm()
78 case PPC::LXSD: in hasPCRelativeForm()
79 case PPC::LXSSP: in hasPCRelativeForm()
80 case PPC::LXV: in hasPCRelativeForm()
81 case PPC::STXSD: in hasPCRelativeForm()
82 case PPC::STXSSP: in hasPCRelativeForm()
83 case PPC::STXV: in hasPCRelativeForm()
84 case PPC::LFD: in hasPCRelativeForm()
85 case PPC::LFS: in hasPCRelativeForm()
86 case PPC::STFD: in hasPCRelativeForm()
87 case PPC::STFS: in hasPCRelativeForm()
88 case PPC::DFLOADf32: in hasPCRelativeForm()
89 case PPC::DFLOADf64: in hasPCRelativeForm()
90 case PPC::DFSTOREf32: in hasPCRelativeForm()
91 case PPC::DFSTOREf64: in hasPCRelativeForm()
134 if (Opc != PPC::LI && Opc != PPC::LI8 && Opc != PPC::LIS && in removeRedundantLIs()
135 Opc != PPC::LIS8) in removeRedundantLIs()
138 // LI target-flags(ppc-lo) %const.0). in removeRedundantLIs()
228 if (Instr.getOpcode() != PPC::PLDpc) in isGOTPLDpc()
275 PPC::NoRegister, true}; in addLinkerOpt()
373 PPC::UACCRCRegClass.getNumRegs(), nullptr); in removeAccPrimeUnprime()
379 if (Opc == PPC::XXMTACC) { in removeAccPrimeUnprime()
381 assert(PPC::ACCRCRegClass.contains(Acc) && in removeAccPrimeUnprime()
383 Candidates[Acc - PPC::ACC0] = &BBI; in removeAccPrimeUnprime()
387 else if (Opc == PPC::XXMFACC) { in removeAccPrimeUnprime()
389 assert(PPC::ACCRCRegClass.contains(Acc) && in removeAccPrimeUnprime()
391 if (!Candidates[Acc - PPC::ACC0]) in removeAccPrimeUnprime()
394 InstrsToErase.insert(Candidates[Acc - PPC::ACC0]); in removeAccPrimeUnprime()
403 if (PPC::ACCRCRegClass.contains(Reg)) in removeAccPrimeUnprime()
404 Candidates[Reg - PPC::ACC0] = nullptr; in removeAccPrimeUnprime()
425 unsigned InDSCR = RS.FindUnusedReg(&PPC::GPRCRegClass); in runOnMachineFunction()
436 BuildMI(MBB, IP, dl, TII->get(PPC::LIS), InDSCR) in runOnMachineFunction()
438 BuildMI(MBB, IP, dl, TII->get(PPC::ORI), InDSCR) in runOnMachineFunction()
441 BuildMI(MBB, IP, dl, TII->get(PPC::MTUDSCR)) in runOnMachineFunction()
455 if (MI.getOpcode() == PPC::UNENCODED_NOP) in runOnMachineFunction()
471 if (Opc == PPC::UNENCODED_NOP) { in runOnMachineFunction()
530 if (Br->getOpcode() != PPC::BC && Br->getOpcode() != PPC::BCn) in runOnMachineFunction()
539 if ((It->getOpcode() == PPC::CRUNSET || in runOnMachineFunction()
540 It->getOpcode() == PPC::CRSET) && in runOnMachineFunction()
551 if ((Br->getOpcode() == PPC::BCn && CRSetOp == PPC::CRSET) || in runOnMachineFunction()
552 (Br->getOpcode() == PPC::BC && CRSetOp == PPC::CRUNSET)) { in runOnMachineFunction()
592 LLVM_DEBUG(dbgs() << "PPC pre-emit peephole: erasing instruction: "); in runOnMachineFunction()