Lines Matching refs:Op
179 SDValue MSP430TargetLowering::LowerOperation(SDValue Op,
181 switch (Op.getOpcode()) {
184 case ISD::SRA: return LowerShifts(Op, DAG);
185 case ISD::GlobalAddress: return LowerGlobalAddress(Op, DAG);
186 case ISD::BlockAddress: return LowerBlockAddress(Op, DAG);
187 case ISD::ExternalSymbol: return LowerExternalSymbol(Op, DAG);
188 case ISD::SETCC: return LowerSETCC(Op, DAG);
189 case ISD::BR_CC: return LowerBR_CC(Op, DAG);
190 case ISD::SELECT_CC: return LowerSELECT_CC(Op, DAG);
191 case ISD::SIGN_EXTEND: return LowerSIGN_EXTEND(Op, DAG);
192 case ISD::RETURNADDR: return LowerRETURNADDR(Op, DAG);
193 case ISD::FRAMEADDR: return LowerFRAMEADDR(Op, DAG);
194 case ISD::VASTART: return LowerVASTART(Op, DAG);
195 case ISD::JumpTable: return LowerJumpTable(Op, DAG);
714 SDValue MSP430TargetLowering::LowerShifts(SDValue Op,
716 unsigned Opc = Op.getOpcode();
717 SDNode* N = Op.getNode();
718 EVT VT = Op.getValueType();
757 SDValue MSP430TargetLowering::LowerGlobalAddress(SDValue Op,
759 const GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal();
760 int64_t Offset = cast<GlobalAddressSDNode>(Op)->getOffset();
764 SDValue Result = DAG.getTargetGlobalAddress(GV, SDLoc(Op), PtrVT, Offset);
765 return DAG.getNode(MSP430ISD::Wrapper, SDLoc(Op), PtrVT, Result);
768 SDValue MSP430TargetLowering::LowerExternalSymbol(SDValue Op,
770 SDLoc dl(Op);
771 const char *Sym = cast<ExternalSymbolSDNode>(Op)->getSymbol();
778 SDValue MSP430TargetLowering::LowerBlockAddress(SDValue Op,
780 SDLoc dl(Op);
782 const BlockAddress *BA = cast<BlockAddressSDNode>(Op)->getBlockAddress();
870 SDValue MSP430TargetLowering::LowerBR_CC(SDValue Op, SelectionDAG &DAG) const {
871 SDValue Chain = Op.getOperand(0);
872 ISD::CondCode CC = cast<CondCodeSDNode>(Op.getOperand(1))->get();
873 SDValue LHS = Op.getOperand(2);
874 SDValue RHS = Op.getOperand(3);
875 SDValue Dest = Op.getOperand(4);
876 SDLoc dl (Op);
881 return DAG.getNode(MSP430ISD::BR_CC, dl, Op.getValueType(),
885 SDValue MSP430TargetLowering::LowerSETCC(SDValue Op, SelectionDAG &DAG) const {
886 SDValue LHS = Op.getOperand(0);
887 SDValue RHS = Op.getOperand(1);
888 SDLoc dl (Op);
904 ISD::CondCode CC = cast<CondCodeSDNode>(Op.getOperand(2))->get();
941 EVT VT = Op.getValueType();
955 SDVTList VTs = DAG.getVTList(Op.getValueType(), MVT::Glue);
961 SDValue MSP430TargetLowering::LowerSELECT_CC(SDValue Op,
963 SDValue LHS = Op.getOperand(0);
964 SDValue RHS = Op.getOperand(1);
965 SDValue TrueV = Op.getOperand(2);
966 SDValue FalseV = Op.getOperand(3);
967 ISD::CondCode CC = cast<CondCodeSDNode>(Op.getOperand(4))->get();
968 SDLoc dl (Op);
973 SDVTList VTs = DAG.getVTList(Op.getValueType(), MVT::Glue);
979 SDValue MSP430TargetLowering::LowerSIGN_EXTEND(SDValue Op,
981 SDValue Val = Op.getOperand(0);
982 EVT VT = Op.getValueType();
983 SDLoc dl(Op);
1010 SDValue MSP430TargetLowering::LowerRETURNADDR(SDValue Op,
1015 if (verifyReturnAddressArgumentIsConstant(Op, DAG))
1018 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
1019 SDLoc dl(Op);
1023 SDValue FrameAddr = LowerFRAMEADDR(Op, DAG);
1037 SDValue MSP430TargetLowering::LowerFRAMEADDR(SDValue Op,
1042 EVT VT = Op.getValueType();
1043 SDLoc dl(Op); // FIXME probably not meaningful
1044 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
1054 SDValue MSP430TargetLowering::LowerVASTART(SDValue Op,
1063 const Value *SV = cast<SrcValueSDNode>(Op.getOperand(2))->getValue();
1066 return DAG.getStore(Op.getOperand(0), SDLoc(Op), FrameIndex,
1067 Op.getOperand(1), MachinePointerInfo(SV),
1071 SDValue MSP430TargetLowering::LowerJumpTable(SDValue Op,
1073 JumpTableSDNode *JT = cast<JumpTableSDNode>(Op);
1082 bool MSP430TargetLowering::getPostIndexedAddressParts(SDNode *N, SDNode *Op,
1096 if (Op->getOpcode() != ISD::ADD)
1099 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Op->getOperand(1))) {
1105 Base = Op->getOperand(0);