Lines Matching refs:ChainIndex

303   Value *distributeExtsAndCloneChain(unsigned ChainIndex);
306 Value *removeConstOffset(unsigned ChainIndex);
649 ConstantOffsetExtractor::distributeExtsAndCloneChain(unsigned ChainIndex) { in distributeExtsAndCloneChain() argument
650 User *U = UserChain[ChainIndex]; in distributeExtsAndCloneChain()
651 if (ChainIndex == 0) { in distributeExtsAndCloneChain()
654 return UserChain[ChainIndex] = cast<ConstantInt>(applyExts(U)); in distributeExtsAndCloneChain()
662 UserChain[ChainIndex] = nullptr; in distributeExtsAndCloneChain()
663 return distributeExtsAndCloneChain(ChainIndex - 1); in distributeExtsAndCloneChain()
669 unsigned OpNo = (BO->getOperand(0) == UserChain[ChainIndex - 1] ? 0 : 1); in distributeExtsAndCloneChain()
671 Value *NextInChain = distributeExtsAndCloneChain(ChainIndex - 1); in distributeExtsAndCloneChain()
681 return UserChain[ChainIndex] = NewBO; in distributeExtsAndCloneChain()
684 Value *ConstantOffsetExtractor::removeConstOffset(unsigned ChainIndex) { in removeConstOffset() argument
685 if (ChainIndex == 0) { in removeConstOffset()
686 assert(isa<ConstantInt>(UserChain[ChainIndex])); in removeConstOffset()
687 return ConstantInt::getNullValue(UserChain[ChainIndex]->getType()); in removeConstOffset()
690 BinaryOperator *BO = cast<BinaryOperator>(UserChain[ChainIndex]); in removeConstOffset()
696 unsigned OpNo = (BO->getOperand(0) == UserChain[ChainIndex - 1] ? 0 : 1); in removeConstOffset()
697 assert(BO->getOperand(OpNo) == UserChain[ChainIndex - 1]); in removeConstOffset()
698 Value *NextInChain = removeConstOffset(ChainIndex - 1); in removeConstOffset()