Home | History | Annotate | Download | only in XCore

Lines Matching defs:Chain

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