Home | History | Annotate | Download | only in XCore

Lines Matching refs:Chain

233 /// Given a chain return a new chain where any appearance of Old is replaced
234 /// by New. There must be at most one instruction between Old and Chain and
238 replaceInChain(SelectionDAG *CurDAG, SDValue Chain, SDValue Old, SDValue New)
240 if (Chain == Old)
242 if (Chain->getOpcode() != ISD::TokenFactor)
246 for (unsigned i = 0, e = Chain->getNumOperands(); i != e; ++i) {
247 if (Chain->getOperand(i) == Old) {
251 Ops.push_back(Chain->getOperand(i));
256 return CurDAG->getNode(ISD::TokenFactor, Chain->getDebugLoc(), MVT::Other,
263 SDValue Chain = N->getOperand(0);
273 // If the chain out of the checkevent intrinsic is an operand of the
275 // indirect branch then build a new chain which uses the chain coming into
278 SDValue NewChain = replaceInChain(CurDAG, Chain, CheckEventChainOut,
282 Chain = NewChain;
291 constOne, Chain), 0);