Home | History | Annotate | Download | only in XCore

Lines Matching refs:Chain

207 /// Given a chain return a new chain where any appearance of Old is replaced
208 /// by New. There must be at most one instruction between Old and Chain and
212 replaceInChain(SelectionDAG *CurDAG, SDValue Chain, SDValue Old, SDValue New)
214 if (Chain == Old)
216 if (Chain->getOpcode() != ISD::TokenFactor)
220 for (unsigned i = 0, e = Chain->getNumOperands(); i != e; ++i) {
221 if (Chain->getOperand(i) == Old) {
225 Ops.push_back(Chain->getOperand(i));
230 return CurDAG->getNode(ISD::TokenFactor, SDLoc(Chain), MVT::Other, Ops);
236 SDValue Chain = N->getOperand(0);
246 // If the chain out of the checkevent intrinsic is an operand of the
248 // indirect branch then build a new chain which uses the chain coming into
251 SDValue NewChain = replaceInChain(CurDAG, Chain, CheckEventChainOut,
255 Chain = NewChain;
264 constOne, Chain), 0);