Lines Matching defs:Cond
121 const SmallVectorImpl<MachineOperand> &Cond,
133 if (!Cond.empty() && Cond[0].isImm() && Cond[0].getImm() == 0) {
139 if (Cond.empty()) {
145 SmallVector<MachineOperand, 4> Cond;
147 if (isPredicated(Term) && !AnalyzeBranch(MBB, NewTBB, NewFBB, Cond,
152 ReverseBranchCondition(Cond);
154 return InsertBranch(MBB, TBB, 0, Cond, DL);
160 get(BccOpc)).addReg(Cond[regPos].getReg()).addMBB(TBB);
165 BuildMI(&MBB, DL, get(BccOpc)).addReg(Cond[regPos].getReg()).addMBB(TBB);
175 SmallVectorImpl<MachineOperand> &Cond,
255 Cond.push_back(LastInst->getOperand(0));
261 Cond.push_back(MachineOperand::CreateImm(0));
263 Cond.push_back(LastInst->getOperand(0));
277 Cond.push_back(MachineOperand::CreateImm(0));
278 Cond.push_back(SecondLastInst->getOperand(0));
297 Cond.push_back(SecondLastInst->getOperand(0));
803 const SmallVectorImpl<MachineOperand> &Cond) const {
806 bool invertJump = (!Cond.empty() && Cond[0].isImm() &&
807 (Cond[0].getImm() == 0));
907 MachineOperand PredMO = Cond[regPos];
1060 // inserting a 0 at the beginning of the Cond vector.
1063 ReverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond) const {
1064 if (!Cond.empty() && Cond[0].isImm() && Cond[0].getImm() == 0) {
1065 Cond.erase(Cond.begin());
1067 Cond.insert(Cond.begin(), MachineOperand::CreateImm(0));