Lines Matching refs:ChainIndex
303 Value *distributeExtsAndCloneChain(unsigned ChainIndex);
306 Value *removeConstOffset(unsigned ChainIndex);
693 ConstantOffsetExtractor::distributeExtsAndCloneChain(unsigned ChainIndex) { in distributeExtsAndCloneChain() argument
694 User *U = UserChain[ChainIndex]; in distributeExtsAndCloneChain()
695 if (ChainIndex == 0) { in distributeExtsAndCloneChain()
698 return UserChain[ChainIndex] = cast<ConstantInt>(applyExts(U)); in distributeExtsAndCloneChain()
706 UserChain[ChainIndex] = nullptr; in distributeExtsAndCloneChain()
707 return distributeExtsAndCloneChain(ChainIndex - 1); in distributeExtsAndCloneChain()
713 unsigned OpNo = (BO->getOperand(0) == UserChain[ChainIndex - 1] ? 0 : 1); in distributeExtsAndCloneChain()
715 Value *NextInChain = distributeExtsAndCloneChain(ChainIndex - 1); in distributeExtsAndCloneChain()
725 return UserChain[ChainIndex] = NewBO; in distributeExtsAndCloneChain()
728 Value *ConstantOffsetExtractor::removeConstOffset(unsigned ChainIndex) { in removeConstOffset() argument
729 if (ChainIndex == 0) { in removeConstOffset()
730 assert(isa<ConstantInt>(UserChain[ChainIndex])); in removeConstOffset()
731 return ConstantInt::getNullValue(UserChain[ChainIndex]->getType()); in removeConstOffset()
734 BinaryOperator *BO = cast<BinaryOperator>(UserChain[ChainIndex]); in removeConstOffset()
740 unsigned OpNo = (BO->getOperand(0) == UserChain[ChainIndex - 1] ? 0 : 1); in removeConstOffset()
741 assert(BO->getOperand(OpNo) == UserChain[ChainIndex - 1]); in removeConstOffset()
742 Value *NextInChain = removeConstOffset(ChainIndex - 1); in removeConstOffset()