Lines Matching refs:Parent
1038 // Parent - initially null, but after drilling down notes where Op came from.
1039 // In the example above, Parent is (Val, 0) when Op is M1, because M1 is the
1041 std::pair<Instruction*, unsigned> Parent;
1050 for (;; Op = Parent.first->getOperand(Parent.second)) { // Drill down
1059 // Replace with the quotient in the parent.
1083 // by its left-hand side in the parent.
1092 Parent = std::make_pair(BO, 1);
1101 Parent = std::make_pair(BO, 0);
1119 // by its left-hand side in the parent.
1127 // by the scale in the parent.
1128 Parent = std::make_pair(BO, 1);
1155 Parent = std::make_pair(Cast, 0);
1172 Parent = std::make_pair(Cast, 0);
1196 if (!Parent.first)
1200 // Rewrite the parent using the descaled version of its operand.
1201 assert(Parent.first->hasOneUse() && "Drilled down when more than one use!");
1202 assert(Op != Parent.first->getOperand(Parent.second) &&
1204 Parent.first->setOperand(Parent.second, Op);
1205 Worklist.Add(Parent.first);
1213 Instruction *Ancestor = Parent.first;