Home | History | Annotate | Download | only in PowerPC

Lines Matching refs:CTR

1 //===-- PPCCTRLoops.cpp - Identify and generate CTR loops -----------------===//
11 // that decrement and test the count register (CTR) (bdnz and friends).
18 // Criteria for CTR loops:
21 // - No nested CTR loops.
68 STATISTIC(NumCTRLoops, "Number of loops converted to CTR loops");
146 INITIALIZE_PASS_BEGIN(PPCCTRLoops, "ppc-ctr-loops", "PowerPC CTR Loops",
151 INITIALIZE_PASS_END(PPCCTRLoops, "ppc-ctr-loops", "PowerPC CTR Loops",
159 INITIALIZE_PASS_BEGIN(PPCCTRLoopsVerify, "ppc-ctr-loops-verify",
160 "PowerPC CTR Loops Verify", false, false)
162 INITIALIZE_PASS_END(PPCCTRLoopsVerify, "ppc-ctr-loops-verify",
163 "PowerPC CTR Loops Verify", false, false)
194 // Inline ASM is okay, unless it clobbers the ctr register.
200 if (StringRef(C.Codes[j]).equals_lower("{ctr}"))
477 // the CTR register because some such uses might be reordered by the
533 if (MO.isDef() && (MO.getReg() == PPC::CTR || MO.getReg() == PPC::CTR8))
536 if (MO.clobbersPhysReg(PPC::CTR) || MO.clobbersPhysReg(PPC::CTR8))
573 " clobbers CTR, invalidating " << "BB#" <<
617 // any other instructions that might clobber the ctr register.
630 llvm_unreachable("Invalid PPC CTR loop!");