Lines Matching refs:ChainIndex
305 Value *distributeExtsAndCloneChain(unsigned ChainIndex);
308 Value *removeConstOffset(unsigned ChainIndex);
681 ConstantOffsetExtractor::distributeExtsAndCloneChain(unsigned ChainIndex) { in distributeExtsAndCloneChain() argument
682 User *U = UserChain[ChainIndex]; in distributeExtsAndCloneChain()
683 if (ChainIndex == 0) { in distributeExtsAndCloneChain()
686 return UserChain[ChainIndex] = cast<ConstantInt>(applyExts(U)); in distributeExtsAndCloneChain()
694 UserChain[ChainIndex] = nullptr; in distributeExtsAndCloneChain()
695 return distributeExtsAndCloneChain(ChainIndex - 1); in distributeExtsAndCloneChain()
701 unsigned OpNo = (BO->getOperand(0) == UserChain[ChainIndex - 1] ? 0 : 1); in distributeExtsAndCloneChain()
703 Value *NextInChain = distributeExtsAndCloneChain(ChainIndex - 1); in distributeExtsAndCloneChain()
713 return UserChain[ChainIndex] = NewBO; in distributeExtsAndCloneChain()
716 Value *ConstantOffsetExtractor::removeConstOffset(unsigned ChainIndex) { in removeConstOffset() argument
717 if (ChainIndex == 0) { in removeConstOffset()
718 assert(isa<ConstantInt>(UserChain[ChainIndex])); in removeConstOffset()
719 return ConstantInt::getNullValue(UserChain[ChainIndex]->getType()); in removeConstOffset()
722 BinaryOperator *BO = cast<BinaryOperator>(UserChain[ChainIndex]); in removeConstOffset()
728 unsigned OpNo = (BO->getOperand(0) == UserChain[ChainIndex - 1] ? 0 : 1); in removeConstOffset()
729 assert(BO->getOperand(OpNo) == UserChain[ChainIndex - 1]); in removeConstOffset()
730 Value *NextInChain = removeConstOffset(ChainIndex - 1); in removeConstOffset()