• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/llvmCore-3425.0.33/lib/CodeGen/SelectionDAG/

Lines Matching defs:Load

147     void ReplaceLoadWithPromotedLoad(SDNode *Load, SDNode *ExtLoad);
705 void DAGCombiner::ReplaceLoadWithPromotedLoad(SDNode *Load, SDNode *ExtLoad) {
706 DebugLoc dl = Load->getDebugLoc();
707 EVT VT = Load->getValueType(0);
711 Load->dump(&DAG);
716 DAG.ReplaceAllUsesOfValueWith(SDValue(Load, 0), Trunc);
717 DAG.ReplaceAllUsesOfValueWith(SDValue(Load, 1), SDValue(ExtLoad, 1));
718 removeFromWorkList(Load);
719 DAG.DeleteNode(Load);
2483 LoadSDNode *Load = cast<LoadSDNode>( (N0.getOpcode() == ISD::LOAD) ?
2529 Load->getMemoryVT());
2535 Constant.zextOrTrunc(Load->getMemoryVT().getScalarType().getSizeInBits());
2538 switch (Load->getExtensionType()) {
2548 SDValue NewLoad(Load, 0);
2549 if (Load->getExtensionType() == ISD::EXTLOAD) {
2550 NewLoad = DAG.getLoad(Load->getAddressingMode(), ISD::ZEXTLOAD,
2551 Load->getValueType(0), Load->getDebugLoc(),
2552 Load->getChain(), Load->getBasePtr(),
2553 Load->getOffset(), Load->getMemoryVT(),
2554 Load->getMemOperand());
2556 if (Load->getNumValues() == 3) {
2560 CombineTo(Load, To, 3, true);
2562 CombineTo(Load, NewLoad.getValue(0), NewLoad.getValue(1));
2568 CombineTo(N, (N0.getNode() == Load) ? NewLoad : N0);
2731 SDValue Load =
2738 CombineTo(LN0, Load, Load.getValue(1));
5084 SDValue Load;
5086 Load = DAG.getLoad(VT, N0.getDebugLoc(), LN0->getChain(), NewPtr,
5091 Load = DAG.getExtLoad(ExtType, N0.getDebugLoc(), VT, LN0->getChain(),NewPtr,
5098 DAG.ReplaceAllUsesOfValueWith(N0.getValue(1), Load.getValue(1));
5101 SDValue Result = Load;
5422 SDValue Load = DAG.getLoad(VT, N->getDebugLoc(), LN0->getChain(),
5429 N0.getValueType(), Load),
5430 Load.getValue(1));
5431 return Load;
7638 // Create the new Load and Store operations.
8260 SDValue Load;
8267 Load = DAG.getExtLoad(ExtType, N->getDebugLoc(), NVT, LN0->getChain(),
8270 Chain = Load.getValue(1);
8272 Load = DAG.getLoad(LVT, N->getDebugLoc(), LN0->getChain(), NewPtr,
8276 Chain = Load.getValue(1);
8278 Load = DAG.getNode(ISD::TRUNCATE, N->getDebugLoc(), NVT, Load);
8280 Load = DAG.getNode(ISD::BITCAST, N->getDebugLoc(), NVT, Load);
8284 SDValue To[] = { Load, Chain };
8288 AddToWorkList(Load.getNode());
8289 AddUsersToWorkList(Load.getNode()); // Add users too
9028 SDValue Load;
9030 Load = DAG.getLoad(TheSelect->getValueType(0),
9037 Load = DAG.getExtLoad(LLD->getExtensionType() == ISD::EXTLOAD ?
9048 CombineTo(TheSelect, Load);
9052 CombineTo(LHS.getNode(), Load.getValue(0), Load.getValue(1));
9053 CombineTo(RHS.getNode(), Load.getValue(0), Load.getValue(1));