Lines Matching defs:Chain

297     SDValue FindBetterChain(SDNode *N, SDValue Chain);
6111 SDValue Chain = N->getOperand(0);
6126 Chain, N1.getOperand(2),
6177 MVT::Other, Chain, SetCC, N2);
6221 MVT::Other, Chain, Tmp, N2);
6247 MVT::Other, Chain, SetCC, N2);
6254 // Operand List for BR_CC: Chain, CondCC, CondLHS, CondRHS, DestBB.
6590 SDValue Chain = LD->getChain();
6609 Chain.getNode()->dump(&DAG);
6612 DAG.ReplaceAllUsesOfValueWith(SDValue(N, 1), Chain, &DeadNodes);
6636 DAG.ReplaceAllUsesOfValueWith(SDValue(N, 2), Chain, &DeadNodes);
6649 if (ISD::isNON_TRUNCStore(Chain.getNode())) {
6650 StoreSDNode *PrevST = cast<StoreSDNode>(Chain);
6653 return CombineTo(N, Chain.getOperand(1), Chain);
6663 Chain, Ptr, LD->getPointerInfo(),
6671 SDValue BetterChain = FindBetterChain(N, Chain);
6674 if (Chain != BetterChain) {
6695 MVT::Other, Chain, ReplLoad.getValue(1));
6717 CheckForMaskedLoad(SDValue V, SDValue Ptr, SDValue Chain) {
6732 if (LD == Chain.getNode())
6734 else if (Chain->getOpcode() != ISD::TokenFactor)
6738 for (unsigned i = 0, e = Chain->getNumOperands(); i != e; ++i)
6739 if (Chain->getOperand(i).getNode() == LD) {
6854 SDValue Chain = ST->getChain();
6871 MaskedLoad = CheckForMaskedLoad(Value.getOperand(0), Ptr, Chain);
6878 MaskedLoad = CheckForMaskedLoad(Value.getOperand(1), Ptr, Chain);
6891 Chain == SDValue(N0.getNode(), 1)) {
6949 SDValue NewST = DAG.getStore(Chain, N->getDebugLoc(),
6974 SDValue Chain = ST->getChain();
6978 Chain == SDValue(Value.getNode(), 1)) {
7027 SDValue Chain = ST->getChain();
7042 return DAG.getStore(Chain, N->getDebugLoc(), Value.getOperand(0),
7049 return Chain;
7070 return DAG.getStore(Chain, N->getDebugLoc(), Tmp,
7081 return DAG.getStore(Chain, N->getDebugLoc(), Tmp,
7100 SDValue St0 = DAG.getStore(Chain, ST->getDebugLoc(), Lo,
7107 SDValue St1 = DAG.getStore(Chain, ST->getDebugLoc(), Hi,
7124 return DAG.getTruncStore(Chain, N->getDebugLoc(), Value,
7138 SDValue BetterChain = FindBetterChain(N, Chain);
7141 if (Chain != BetterChain) {
7159 MVT::Other, Chain, ReplStore);
7186 return DAG.getTruncStore(Chain, N->getDebugLoc(), Shorter,
7207 Chain.reachesChainWithoutSideEffects(SDValue(Ld, 1))) {
7209 return Chain;
7219 return DAG.getTruncStore(Chain, N->getDebugLoc(), Value.getOperand(0),
7451 SDValue Chain;
7460 Chain = Load.getValue(1);
7466 Chain = Load.getValue(1);
7474 SDValue To[] = { Load, Chain };
8673 SDValue Chain = Chains.back();
8691 if (!Visited.insert(Chain.getNode()))
8694 switch (Chain.getOpcode()) {
8701 // Get alias information for Chain.
8708 bool IsOpLoad = FindAliasInfo(Chain.getNode(), OpPtr, OpSize,
8719 Aliases.push_back(Chain);
8722 Chains.push_back(Chain.getOperand(0));
8733 if (Chain.getNumOperands() > 16) {
8734 Aliases.push_back(Chain);
8737 for (unsigned n = Chain.getNumOperands(); n;)
8738 Chains.push_back(Chain.getOperand(--n));
8744 Aliases.push_back(Chain);