Lines Matching refs:Op
81 for (auto Op : {ISD::FSIN, ISD::FCOS, ISD::FSINCOS, ISD::FPOWI, ISD::FPOW,
83 setOperationAction(Op, T, Expand);
86 for (auto Op :
88 setOperationAction(Op, T, Legal);
96 for (auto Op :
101 setOperationAction(Op, T, Expand);
120 for (auto Op : {ISD::BR_CC, ISD::SELECT_CC})
121 setOperationAction(Op, T, Expand);
526 SDValue WebAssemblyTargetLowering::LowerOperation(SDValue Op,
528 SDLoc DL(Op);
529 switch (Op.getOpcode()) {
534 return LowerFrameIndex(Op, DAG);
536 return LowerGlobalAddress(Op, DAG);
538 return LowerExternalSymbol(Op, DAG);
540 return LowerJumpTable(Op, DAG);
542 return LowerBR_JT(Op, DAG);
544 return LowerVASTART(Op, DAG);
553 return LowerFRAMEADDR(Op, DAG);
555 return LowerCopyToReg(Op, DAG);
559 SDValue WebAssemblyTargetLowering::LowerCopyToReg(SDValue Op,
561 SDValue Src = Op.getOperand(2);
567 // copy_local between Op and its FI operand.
568 SDValue Chain = Op.getOperand(0);
569 SDLoc DL(Op);
570 unsigned Reg = cast<RegisterSDNode>(Op.getOperand(1))->getReg();
577 return Op.getNode()->getNumValues() == 1
579 : DAG.getCopyToReg(Chain, DL, Reg, Copy, Op.getNumOperands() == 4
580 ? Op.getOperand(3)
586 SDValue WebAssemblyTargetLowering::LowerFrameIndex(SDValue Op,
588 int FI = cast<FrameIndexSDNode>(Op)->getIndex();
589 return DAG.getTargetFrameIndex(FI, Op.getValueType());
592 SDValue WebAssemblyTargetLowering::LowerFRAMEADDR(SDValue Op,
597 if (Op.getConstantOperandVal(0) > 0)
601 EVT VT = Op.getValueType();
604 return DAG.getCopyFromReg(DAG.getEntryNode(), SDLoc(Op), FP, VT);
607 SDValue WebAssemblyTargetLowering::LowerGlobalAddress(SDValue Op,
609 SDLoc DL(Op);
610 const auto *GA = cast<GlobalAddressSDNode>(Op);
611 EVT VT = Op.getValueType();
622 SDValue Op, SelectionDAG &DAG) const {
623 SDLoc DL(Op);
624 const auto *ES = cast<ExternalSymbolSDNode>(Op);
625 EVT VT = Op.getValueType();
638 SDValue WebAssemblyTargetLowering::LowerJumpTable(SDValue Op,
643 const JumpTableSDNode *JT = cast<JumpTableSDNode>(Op);
644 return DAG.getTargetJumpTable(JT->getIndex(), Op.getValueType(),
648 SDValue WebAssemblyTargetLowering::LowerBR_JT(SDValue Op,
650 SDLoc DL(Op);
651 SDValue Chain = Op.getOperand(0);
652 const auto *JT = cast<JumpTableSDNode>(Op.getOperand(1));
653 SDValue Index = Op.getOperand(2);
674 SDValue WebAssemblyTargetLowering::LowerVASTART(SDValue Op,
676 SDLoc DL(Op);
680 const Value *SV = cast<SrcValueSDNode>(Op.getOperand(2))->getValue();
684 return DAG.getStore(Op.getOperand(0), DL, ArgN, Op.getOperand(1),