Lines Matching full:getnode
135 Lo = DAG.getNode(ISD::BITCAST, DL, HalfVT, Parts[0]);
136 Hi = DAG.getNode(ISD::BITCAST, DL, HalfVT, Parts[1]);
142 Val = DAG.getNode(ISD::BUILD_PAIR, DL, RoundVT, Lo, Hi);
156 Hi = DAG.getNode(ISD::ANY_EXTEND, DL, TotalVT, Hi);
157 Hi = DAG.getNode(ISD::SHL, DL, TotalVT, Hi,
160 Lo = DAG.getNode(ISD::ZERO_EXTEND, DL, TotalVT, Lo);
161 Val = DAG.getNode(ISD::OR, DL, TotalVT, Lo, Hi);
168 Lo = DAG.getNode(ISD::BITCAST, DL, EVT(MVT::f64), Parts[0]);
169 Hi = DAG.getNode(ISD::BITCAST, DL, EVT(MVT::f64), Parts[1]);
172 Val = DAG.getNode(ISD::BUILD_PAIR, DL, ValueVT, Lo, Hi);
194 Val = DAG.getNode(AssertOp, DL, PartEVT, Val,
196 return DAG.getNode(ISD::TRUNCATE, DL, ValueVT, Val);
198 return DAG.getNode(ISD::ANY_EXTEND, DL, ValueVT, Val);
204 return DAG.getNode(ISD::FP_ROUND, DL, ValueVT, Val,
207 return DAG.getNode(ISD::FP_EXTEND, DL, ValueVT, Val);
211 return DAG.getNode(ISD::BITCAST, DL, ValueVT, Val);
264 Val = DAG.getNode(IntermediateVT.isVector() ?
283 return DAG.getNode(ISD::EXTRACT_SUBVECTOR, DL, ValueVT, Val,
289 return DAG.getNode(ISD::BITCAST, DL, ValueVT, Val);
295 return DAG.getNode((Smaller ? ISD::TRUNCATE : ISD::ANY_EXTEND),
304 return DAG.getNode(ISD::BITCAST, DL, ValueVT, Val);
324 Val = DAG.getNode((Smaller ? ISD::TRUNCATE : ISD::ANY_EXTEND),
328 return DAG.getNode(ISD::BUILD_VECTOR, DL, ValueVT, Val);
368 Val = DAG.getNode(ISD::FP_EXTEND, DL, PartVT, Val);
374 Val = DAG.getNode(ExtendKind, DL, ValueVT, Val);
376 Val = DAG.getNode(ISD::BITCAST, DL, PartVT, Val);
381 Val = DAG.getNode(ISD::BITCAST, DL, PartVT, Val);
388 getNode(ISD::TRUNCATE, DL, ValueVT, Val);
390 Val = DAG.getNode(ISD::BITCAST, DL, PartVT, Val);
424 SDValue OddVal = DAG.getNode(ISD::SRL, DL, ValueVT, Val,
434 Val = DAG.getNode(ISD::TRUNCATE, DL, ValueVT, Val);
439 Parts[0] = DAG.getNode(ISD::BITCAST, DL,
451 Part1 = DAG.getNode(ISD::EXTRACT_ELEMENT, DL,
453 Part0 = DAG.getNode(ISD::EXTRACT_ELEMENT, DL,
457 Part0 = DAG.getNode(ISD::BITCAST, DL, PartVT, Part0);
458 Part1 = DAG.getNode(ISD::BITCAST, DL, PartVT, Part1);
483 Val = DAG.getNode(ISD::BITCAST, DL, PartVT, Val);
492 Ops.push_back(DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL,
500 Val = DAG.getNode(ISD::BUILD_VECTOR, DL, PartVT, &Ops[0], Ops.size());
505 //Val = DAG.getNode(ISD::CONCAT_VECTORS, DL, PartVT, Val, UndefElts);
513 Val = DAG.getNode((Smaller ? ISD::TRUNCATE : ISD::ANY_EXTEND),
519 Val = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL,
523 Val = DAG.getNode((Smaller ? ISD::TRUNCATE : ISD::ANY_EXTEND),
548 Ops[i] = DAG.getNode(ISD::EXTRACT_SUBVECTOR, DL,
553 Ops[i] = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL,
757 Parts[i] = DAG.getNode(isSExt ? ISD::AssertSext : ISD::AssertZext, dl,
767 return DAG.getNode(ISD::MERGE_VALUES, dl,
823 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, &Chains[0], NumRegs);
915 SDValue Root = DAG.getNode(ISD::TokenFactor, getCurSDLoc(), MVT::Other,
936 assert(PendingExports[i].getNode()->getNumOperands() > 1);
937 if (PendingExports[i].getNode()->getOperand(0) == Root)
945 Root = DAG.getNode(ISD::TokenFactor, getCurSDLoc(), MVT::Other,
998 if (Val.getNode()) {
1000 SDV = DAG.getDbgValue(Variable, Val.getNode(),
1002 DAG.AddDbgValue(SDV, Val.getNode(), false);
1016 if (N.getNode()) return N;
1043 if (N.getNode()) return N;
1078 assert(N1.getNode() && "visit didn't populate the NodeMap!");
1086 SDNode *Val = getValue(*OI).getNode();
1103 SDNode *Val = getValue(CDS->getElementAsConstant(i)).getNode();
1112 return NodeMap[V] = DAG.getNode(ISD::BUILD_VECTOR, getCurSDLoc(),
1165 return NodeMap[V] = DAG.getNode(ISD::BUILD_VECTOR, getCurSDLoc(),
1216 SDValue Add = DAG.getNode(ISD::ADD, getCurSDLoc(),
1221 SDValue(RetOp.getNode(), RetOp.getResNo() + i),
1226 Chain = DAG.getNode(ISD::TokenFactor, getCurSDLoc(),
1254 SDValue(RetOp.getNode(), RetOp.getResNo() + j),
1286 assert(Chain.getNode() && Chain.getValueType() == MVT::Other &&
1527 DAG.setRoot(DAG.getNode(ISD::BR, getCurSDLoc(),
1616 Cond = DAG.getNode(ISD::XOR, dl, CondLHS.getValueType(), CondLHS, True);
1633 SDValue SUB = DAG.getNode(ISD::SUB, dl,
1659 Cond = DAG.getNode(ISD::XOR, dl, Cond.getValueType(), Cond, True);
1662 SDValue BrCond = DAG.getNode(ISD::BRCOND, dl,
1669 BrCond = DAG.getNode(ISD::BR, dl, MVT::Other, BrCond,
1683 SDValue BrJumpTable = DAG.getNode(ISD::BR_JT, getCurSDLoc(),
1699 SDValue Sub = DAG.getNode(ISD::SUB, getCurSDLoc(), VT, SwitchOp,
1733 SDValue BrCond = DAG.getNode(ISD::BRCOND, getCurSDLoc(),
1738 BrCond = DAG.getNode(ISD::BR, getCurSDLoc(), MVT::Other, BrCond,
1751 SDValue Sub = DAG.getNode(ISD::SUB, getCurSDLoc(), VT, SwitchOp,
1797 SDValue BrRange = DAG.getNode(ISD::BRCOND, getCurSDLoc(),
1802 BrRange = DAG.getNode(ISD::BR, getCurSDLoc(), MVT::Other, CopyTo,
1838 SDValue SwitchVal = DAG.getNode(ISD::SHL, getCurSDLoc(), VT,
1842 SDValue AndOp = DAG.getNode(ISD::AND, getCurSDLoc(),
1855 SDValue BrAnd = DAG.getNode(ISD::BRCOND, getCurSDLoc(),
1867 BrAnd = DAG.getNode(ISD::BR, getCurSDLoc(), MVT::Other, BrAnd,
1899 DAG.setRoot(DAG.getNode(ISD::BR, getCurSDLoc(),
1940 SDValue Res = DAG.getNode(ISD::MERGE_VALUES, getCurSDLoc(),
1996 SDValue Or = DAG.getNode(ISD::OR, DL, VT, CondLHS,
2011 SDValue BrCond = DAG.getNode(ISD::BRCOND, DL, MVT::Other,
2016 BrCond = DAG.getNode(ISD::BR, DL, MVT::Other, BrCond,
2567 DAG.setRoot(DAG.getNode(ISD::BR, getCurSDLoc(),
2634 DAG.setRoot(DAG.getNode(ISD::BRIND, getCurSDLoc(),
2645 setValue(&I, DAG.getNode(ISD::FNEG, getCurSDLoc(),
2656 setValue(&I, DAG.getNode(OpCode, getCurSDLoc(),
2674 Op2 = DAG.getNode(ISD::ZERO_EXTEND, DL, ShiftTy, Op2);
2681 Op2 = DAG.getNode(ISD::TRUNCATE, DL, ShiftTy, Op2);
2688 setValue(&I, DAG.getNode(Opcode, getCurSDLoc(),
2705 setValue(&I, DAG.getNode(ISD::SDIV, getCurSDLoc(), Op1.getValueType(),
2752 Values[i] = DAG.getNode(OpCode, getCurSDLoc(),
2753 TrueVal.getNode()->getValueType(TrueVal.getResNo()+i),
2755 SDValue(TrueVal.getNode(),
2757 SDValue(FalseVal.getNode(),
2760 setValue(&I, DAG.getNode(ISD::MERGE_VALUES, getCurSDLoc(),
2769 setValue(&I, DAG.getNode(ISD::TRUNCATE, getCurSDLoc(), DestVT, N));
2777 setValue(&I, DAG.getNode(ISD::ZERO_EXTEND, getCurSDLoc(), DestVT, N));
2785 setValue(&I, DAG.getNode(ISD::SIGN_EXTEND, getCurSDLoc(), DestVT, N));
2793 setValue(&I, DAG.getNode(ISD::FP_ROUND, getCurSDLoc(),
2802 setValue(&I, DAG.getNode(ISD::FP_EXTEND, getCurSDLoc(), DestVT, N));
2809 setValue(&I, DAG.getNode(ISD::FP_TO_UINT, getCurSDLoc(), DestVT, N));
2816 setValue(&I, DAG.getNode(ISD::FP_TO_SINT, getCurSDLoc(), DestVT, N));
2823 setValue(&I, DAG.getNode(ISD::UINT_TO_FP, getCurSDLoc(), DestVT, N));
2830 setValue(&I, DAG.getNode(ISD::SINT_TO_FP, getCurSDLoc(), DestVT, N));
2856 setValue(&I, DAG.getNode(ISD::BITCAST, getCurSDLoc(),
2868 setValue(&I, DAG.getNode(ISD::INSERT_VECTOR_ELT, getCurSDLoc(),
2878 setValue(&I, DAG.getNode(ISD::EXTRACT_VECTOR_ELT, getCurSDLoc(),
2923 setValue(&I, DAG.getNode(ISD::CONCAT_VECTORS, getCurSDLoc(),
2931 setValue(&I, DAG.getNode(ISD::CONCAT_VECTORS, getCurSDLoc(),
2948 Src1 = Src1U ? DAG.getUNDEF(VT) : DAG.getNode(ISD::CONCAT_VECTORS,
2951 Src2 = Src2U ? DAG.getUNDEF(VT) : DAG.getNode(ISD::CONCAT_VECTORS,
3024 Src = DAG.getNode(ISD::EXTRACT_SUBVECTOR, getCurSDLoc(), VT,
3064 Res = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, getCurSDLoc(),
3071 setValue(&I, DAG.getNode(ISD::BUILD_VECTOR, getCurSDLoc(),
3100 SDValue(Agg.getNode(), Agg.getResNo() + i);
3106 SDValue(Val.getNode(), Val.getResNo() + i - LinearIndex);
3111 SDValue(Agg.getNode(), Agg.getResNo() + i);
3113 setValue(&I, DAG.getNode(ISD::MERGE_VALUES, getCurSDLoc(),
3145 DAG.getUNDEF(Agg.getNode()->getValueType(Agg.getResNo() + i)) :
3146 SDValue(Agg.getNode(), Agg.getResNo() + i);
3148 setValue(&I, DAG.getNode(ISD::MERGE_VALUES, getCurSDLoc(),
3167 N = DAG.getNode(ISD::ADD, getCurSDLoc(), N.getValueType(), N,
3185 OffsVal = DAG.getNode(ISD::TRUNCATE, getCurSDLoc(),
3191 N = DAG.getNode(ISD::ADD, getCurSDLoc(), N.getValueType(), N,
3210 IdxN = DAG.getNode(ISD::SHL, getCurSDLoc(),
3215 IdxN = DAG.getNode(ISD::MUL, getCurSDLoc(),
3220 N = DAG.getNode(ISD::ADD, getCurSDLoc(),
3247 AllocSize = DAG.getNode(ISD::MUL, getCurSDLoc(), IntPtr,
3260 AllocSize = DAG.getNode(ISD::ADD, getCurSDLoc(),
3265 AllocSize = DAG.getNode(ISD::AND, getCurSDLoc(),
3271 SDValue DSA = DAG.getNode(ISD::DYNAMIC_STACKALLOC, getCurSDLoc(),
3333 SDValue Chain = DAG.getNode(ISD::TokenFactor, getCurSDLoc(),
3338 SDValue A = DAG.getNode(ISD::ADD, getCurSDLoc(),
3351 SDValue Chain = DAG.getNode(ISD::TokenFactor, getCurSDLoc(),
3359 setValue(&I, DAG.getNode(ISD::MERGE_VALUES, getCurSDLoc(),
3397 SDValue Chain = DAG.getNode(ISD::TokenFactor, getCurSDLoc(),
3402 SDValue Add = DAG.getNode(ISD::ADD, getCurSDLoc(), PtrVT, Ptr,
3405 SDValue(Src.getNode(), Src.getResNo() + i),
3411 SDValue StoreNode = DAG.getNode(ISD::TokenFactor, getCurSDLoc(),
3437 return DAG.getNode(ISD::ATOMIC_FENCE, dl, MVT::Other, Ops, 3);
3527 DAG.setRoot(DAG.getNode(ISD::ATOMIC_FENCE, dl, MVT::Other, Ops, 3));
3647 Result = DAG.getNode(ISD::INTRINSIC_WO_CHAIN, getCurSDLoc(),
3650 Result = DAG.getNode(ISD::INTRINSIC_W_CHAIN, getCurSDLoc(),
3653 Result = DAG.getNode(ISD::INTRINSIC_VOID, getCurSDLoc(),
3658 SDValue Chain = Result.getValue(Result.getNode()->getNumValues()-1);
3668 Result = DAG.getNode(ISD::BITCAST, getCurSDLoc(), VT, Result);
3683 SDValue t1 = DAG.getNode(ISD::AND, dl, MVT::i32, Op,
3685 SDValue t2 = DAG.getNode(ISD::OR, dl, MVT::i32, t1,
3687 return DAG.getNode(ISD::BITCAST, dl, MVT::f32, t2);
3698 SDValue t0 = DAG.getNode(ISD::AND, dl, MVT::i32, Op,
3700 SDValue t1 = DAG.getNode(ISD::SRL, dl, MVT::i32, t0,
3702 SDValue t2 = DAG.getNode(ISD::SUB, dl, MVT::i32, t1,
3704 return DAG.getNode(ISD::SINT_TO_FP, dl, MVT::f32, t2);
3726 SDValue t0 = DAG.getNode(ISD::FMUL, dl, MVT::f32, Op,
3728 SDValue IntegerPartOfX = DAG.getNode(ISD::FP_TO_SINT, dl, MVT::i32, t0);
3731 SDValue t1 = DAG.getNode(ISD::SINT_TO_FP, dl, MVT::f32, IntegerPartOfX);
3732 SDValue X = DAG.getNode(ISD::FSUB, dl, MVT::f32, t0, t1);
3735 IntegerPartOfX = DAG.getNode(ISD::SHL, dl, MVT::i32, IntegerPartOfX,
3747 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
3749 SDValue t3 = DAG.getNode(ISD::FADD, dl, MVT::f32, t2,
3751 SDValue t4 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t3, X);
3752 TwoToFracPartOfX = DAG.getNode(ISD::FADD, dl, MVT::f32, t4,
3763 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
3765 SDValue t3 = DAG.getNode(ISD::FADD, dl, MVT::f32, t2,
3767 SDValue t4 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t3, X);
3768 SDValue t5 = DAG.getNode(ISD::FADD, dl, MVT::f32, t4,
3770 SDValue t6 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t5, X);
3771 TwoToFracPartOfX = DAG.getNode(ISD::FADD, dl, MVT::f32, t6,
3785 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
3787 SDValue t3 = DAG.getNode(ISD::FADD, dl, MVT::f32, t2,
3789 SDValue t4 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t3, X);
3790 SDValue t5 = DAG.getNode(ISD::FADD, dl, MVT::f32, t4,
3792 SDValue t6 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t5, X);
3793 SDValue t7 = DAG.getNode(ISD::FADD, dl, MVT::f32, t6,
3795 SDValue t8 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t7, X);
3796 SDValue t9 = DAG.getNode(ISD::FADD, dl, MVT::f32, t8,
3798 SDValue t10 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t9, X);
3799 SDValue t11 = DAG.getNode(ISD::FADD, dl, MVT::f32, t10,
3801 SDValue t12 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t11, X);
3802 TwoToFracPartOfX = DAG.getNode(ISD::FADD, dl, MVT::f32, t12,
3807 SDValue t13 = DAG.getNode(ISD::BITCAST, dl, MVT::i32, TwoToFracPartOfX);
3808 return DAG.getNode(ISD::BITCAST, dl, MVT::f32,
3809 DAG.getNode(ISD::ADD, dl, MVT::i32,
3814 return DAG.getNode(ISD::FEXP, dl, Op.getValueType(), Op);
3823 SDValue Op1 = DAG.getNode(ISD::BITCAST, dl, MVT::i32, Op);
3827 SDValue LogOfExponent = DAG.getNode(ISD::FMUL, dl, MVT::f32, Exp,
3843 SDValue t0 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
3845 SDValue t1 = DAG.getNode(ISD::FADD, dl, MVT::f32, t0,
3847 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t1, X);
3848 LogOfMantissa = DAG.getNode(ISD::FSUB, dl, MVT::f32, t2,
3860 SDValue t0 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
3862 SDValue t1 = DAG.getNode(ISD::FADD, dl, MVT::f32, t0,
3864 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t1, X);
3865 SDValue t3 = DAG.getNode(ISD::FSUB, dl, MVT::f32, t2,
3867 SDValue t4 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t3, X);
3868 SDValue t5 = DAG.getNode(ISD::FADD, dl, MVT::f32, t4,
3870 SDValue t6 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t5, X);
3871 LogOfMantissa = DAG.getNode(ISD::FSUB, dl, MVT::f32, t6,
3885 SDValue t0 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
3887 SDValue t1 = DAG.getNode(ISD::FADD, dl, MVT::f32, t0,
3889 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t1, X);
3890 SDValue t3 = DAG.getNode(ISD::FSUB, dl, MVT::f32, t2,
3892 SDValue t4 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t3, X);
3893 SDValue t5 = DAG.getNode(ISD::FADD, dl, MVT::f32, t4,
3895 SDValue t6 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t5, X);
3896 SDValue t7 = DAG.getNode(ISD::FSUB, dl, MVT::f32, t6,
3898 SDValue t8 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t7, X);
3899 SDValue t9 = DAG.getNode(ISD::FADD, dl, MVT::f32, t8,
3901 SDValue t10 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t9, X);
3902 LogOfMantissa = DAG.getNode(ISD::FSUB, dl, MVT::f32, t10,
3906 return DAG.getNode(ISD::FADD, dl, MVT::f32, LogOfExponent, LogOfMantissa);
3910 return DAG.getNode(ISD::FLOG, dl, Op.getValueType(), Op);
3919 SDValue Op1 = DAG.getNode(ISD::BITCAST, dl, MVT::i32, Op);
3937 SDValue t0 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
3939 SDValue t1 = DAG.getNode(ISD::FADD, dl, MVT::f32, t0,
3941 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t1, X);
3942 Log2ofMantissa = DAG.getNode(ISD::FSUB, dl, MVT::f32, t2,
3954 SDValue t0 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
3956 SDValue t1 = DAG.getNode(ISD::FADD, dl, MVT::f32, t0,
3958 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t1, X);
3959 SDValue t3 = DAG.getNode(ISD::FSUB, dl, MVT::f32, t2,
3961 SDValue t4 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t3, X);
3962 SDValue t5 = DAG.getNode(ISD::FADD, dl, MVT::f32, t4,
3964 SDValue t6 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t5, X);
3965 Log2ofMantissa = DAG.getNode(ISD::FSUB, dl, MVT::f32, t6,
3980 SDValue t0 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
3982 SDValue t1 = DAG.getNode(ISD::FADD, dl, MVT::f32, t0,
3984 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t1, X);
3985 SDValue t3 = DAG.getNode(ISD::FSUB, dl, MVT::f32, t2,
3987 SDValue t4 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t3, X);
3988 SDValue t5 = DAG.getNode(ISD::FADD, dl, MVT::f32, t4,
3990 SDValue t6 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t5, X);
3991 SDValue t7 = DAG.getNode(ISD::FSUB, dl, MVT::f32, t6,
3993 SDValue t8 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t7, X);
3994 SDValue t9 = DAG.getNode(ISD::FADD, dl, MVT::f32, t8,
3996 SDValue t10 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t9, X);
3997 Log2ofMantissa = DAG.getNode(ISD::FSUB, dl, MVT::f32, t10,
4001 return DAG.getNode(ISD::FADD, dl, MVT::f32, LogOfExponent, Log2ofMantissa);
4005 return DAG.getNode(ISD::FLOG2, dl, Op.getValueType(), Op);
4014 SDValue Op1 = DAG.getNode(ISD::BITCAST, dl, MVT::i32, Op);
4018 SDValue LogOfExponent = DAG.getNode(ISD::FMUL, dl, MVT::f32, Exp,
4034 SDValue t0 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
4036 SDValue t1 = DAG.getNode(ISD::FADD, dl, MVT::f32, t0,
4038 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t1, X);
4039 Log10ofMantissa = DAG.getNode(ISD::FSUB, dl, MVT::f32, t2,
4050 SDValue t0 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
4052 SDValue t1 = DAG.getNode(ISD::FSUB, dl, MVT::f32, t0,
4054 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t1, X);
4055 SDValue t3 = DAG.getNode(ISD::FADD, dl, MVT::f32, t2,
4057 SDValue t4 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t3, X);
4058 Log10ofMantissa = DAG.getNode(ISD::FSUB, dl, MVT::f32, t4,
4071 SDValue t0 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
4073 SDValue t1 = DAG.getNode(ISD::FSUB, dl, MVT::f32, t0,
4075 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t1, X);
4076 SDValue t3 = DAG.getNode(ISD::FADD, dl, MVT::f32, t2,
4078 SDValue t4 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t3, X);
4079 SDValue t5 = DAG.getNode(ISD::FSUB, dl, MVT::f32, t4,
4081 SDValue t6 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t5, X);
4082 SDValue t7 = DAG.getNode(ISD::FADD, dl, MVT::f32, t6,
4084 SDValue t8 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t7, X);
4085 Log10ofMantissa = DAG.getNode(ISD::FSUB, dl, MVT::f32, t8,
4089 return DAG.getNode(ISD::FADD, dl, MVT::f32, LogOfExponent, Log10ofMantissa);
4093 return DAG.getNode(ISD::FLOG10, dl, Op.getValueType(), Op);
4102 SDValue IntegerPartOfX = DAG.getNode(ISD::FP_TO_SINT, dl, MVT::i32, Op);
4105 SDValue t1 = DAG.getNode(ISD::SINT_TO_FP, dl, MVT::f32, IntegerPartOfX);
4106 SDValue X = DAG.getNode(ISD::FSUB, dl, MVT::f32, Op, t1);
4109 IntegerPartOfX = DAG.getNode(ISD::SHL, dl, MVT::i32, IntegerPartOfX,
4121 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
4123 SDValue t3 = DAG.getNode(ISD::FADD, dl, MVT::f32, t2,
4125 SDValue t4 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t3, X);
4126 TwoToFractionalPartOfX = DAG.getNode(ISD::FADD, dl, MVT::f32, t4,
4137 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
4139 SDValue t3 = DAG.getNode(ISD::FADD, dl, MVT::f32, t2,
4141 SDValue t4 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t3, X);
4142 SDValue t5 = DAG.getNode(ISD::FADD, dl, MVT::f32, t4,
4144 SDValue t6 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t5, X);
4145 TwoToFractionalPartOfX = DAG.getNode(ISD::FADD, dl, MVT::f32, t6,
4158 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
4160 SDValue t3 = DAG.getNode(ISD::FADD, dl, MVT::f32, t2,
4162 SDValue t4 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t3, X);
4163 SDValue t5 = DAG.getNode(ISD::FADD, dl, MVT::f32, t4,
4165 SDValue t6 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t5, X);
4166 SDValue t7 = DAG.getNode(ISD::FADD, dl, MVT::f32, t6,
4168 SDValue t8 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t7, X);
4169 SDValue t9 = DAG.getNode(ISD::FADD, dl, MVT::f32, t8,
4171 SDValue t10 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t9, X);
4172 SDValue t11 = DAG.getNode(ISD::FADD, dl, MVT::f32, t10,
4174 SDValue t12 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t11, X);
4175 TwoToFractionalPartOfX = DAG.getNode(ISD::FADD, dl, MVT::f32, t12,
4180 SDValue t13 = DAG.getNode(ISD::BITCAST, dl, MVT::i32,
4182 return DAG.getNode(ISD::BITCAST, dl, MVT::f32,
4183 DAG.getNode(ISD::ADD, dl, MVT::i32,
4188 return DAG.getNode(ISD::FEXP2, dl, Op.getValueType(), Op);
4210 SDValue t0 = DAG.getNode(ISD::FMUL, dl, MVT::f32, RHS,
4212 SDValue IntegerPartOfX = DAG.getNode(ISD::FP_TO_SINT, dl, MVT::i32, t0);
4215 SDValue t1 = DAG.getNode(ISD::SINT_TO_FP, dl, MVT::f32, IntegerPartOfX);
4216 SDValue X = DAG.getNode(ISD::FSUB, dl, MVT::f32, t0, t1);
4219 IntegerPartOfX = DAG.getNode(ISD::SHL, dl, MVT::i32, IntegerPartOfX,
4231 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
4233 SDValue t3 = DAG.getNode(ISD::FADD, dl, MVT::f32, t2,
4235 SDValue t4 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t3, X);
4236 TwoToFractionalPartOfX = DAG.getNode(ISD::FADD, dl, MVT::f32, t4,
4247 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
4249 SDValue t3 = DAG.getNode(ISD::FADD, dl, MVT::f32, t2,
4251 SDValue t4 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t3, X);
4252 SDValue t5 = DAG.getNode(ISD::FADD, dl, MVT::f32, t4,
4254 SDValue t6 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t5, X);
4255 TwoToFractionalPartOfX = DAG.getNode(ISD::FADD, dl, MVT::f32, t6,
4268 SDValue t2 = DAG.getNode(ISD::FMUL, dl, MVT::f32, X,
4270 SDValue t3 = DAG.getNode(ISD::FADD, dl, MVT::f32, t2,
4272 SDValue t4 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t3, X);
4273 SDValue t5 = DAG.getNode(ISD::FADD, dl, MVT::f32, t4,
4275 SDValue t6 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t5, X);
4276 SDValue t7 = DAG.getNode(ISD::FADD, dl, MVT::f32, t6,
4278 SDValue t8 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t7, X);
4279 SDValue t9 = DAG.getNode(ISD::FADD, dl, MVT::f32, t8,
4281 SDValue t10 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t9, X);
4282 SDValue t11 = DAG.getNode(ISD::FADD, dl, MVT::f32, t10,
4284 SDValue t12 = DAG.getNode(ISD::FMUL, dl, MVT::f32, t11, X);
4285 TwoToFractionalPartOfX = DAG.getNode(ISD::FADD, dl, MVT::f32, t12,
4289 SDValue t13 = DAG.getNode(ISD::BITCAST, dl,MVT::i32,TwoToFractionalPartOfX);
4290 return DAG.getNode(ISD::BITCAST, dl, MVT::f32,
4291 DAG.getNode(ISD::ADD, dl, MVT::i32,
4296 return DAG.getNode(ISD::FPOW, dl, LHS.getValueType(), LHS, RHS);
4330 if (Res.getNode())
4331 Res = DAG.getNode(ISD::FMUL, DL,Res.getValueType(), Res, CurSquare);
4336 CurSquare = DAG.getNode(ISD::FMUL, DL, CurSquare.getValueType(),
4343 Res = DAG.getNode(ISD::FDIV, DL, LHS.getValueType(),
4350 return DAG.getNode(ISD::FPOWI, DL, LHS.getValueType(), LHS, RHS);
4395 if (!Op && N.getNode()) {
4418 if (!Op && N.getNode())
4420 if (LoadSDNode *LNode = dyn_cast<LoadSDNode>(N.getNode()))
4422 dyn_cast<FrameIndexSDNode>(LNode->getBasePtr().getNode()))
4470 setValue(&I, DAG.getNode(ISD::RETURNADDR, sdl, TLI->getPointerTy(),
4474 setValue(&I, DAG.getNode(ISD::FRAMEADDR, sdl, TLI->getPointerTy(),
4558 if (!N.getNode() && isa<Argument>(Address))
4562 if (N.getNode()) {
4573 FrameIndexSDNode *FINode = dyn_cast<FrameIndexSDNode>(N.getNode());
4585 SDV = DAG.getDbgValue(Variable, N.getNode(), N.getResNo(),
4594 DAG.AddDbgValue(SDV, N.getNode(), isParameter);
4640 if (!N.getNode() && isa<Argument>(V))
4643 if (N.getNode()) {
4645 SDV = DAG.getDbgValue(Variable, N.getNode(),
4647 DAG.AddDbgValue(SDV, N.getNode(), false);
4695 DAG.setRoot(DAG.getNode(ISD::EH_RETURN, sdl,
4707 SDValue Offset = DAG.getNode(ISD::ADD, sdl,
4709 DAG.getNode(ISD::FRAME_TO_ARGS_OFFSET, sdl,
4712 SDValue FA = DAG.getNode(ISD::FRAMEADDR, sdl,
4715 setValue(&I, DAG.getNode(ISD::ADD, sdl, TLI->getPointerTy(),
4741 SDValue Op = DAG.getNode(ISD::EH_SJLJ_SETJMP, sdl,
4749 DAG.setRoot(DAG.getNode(ISD::EH_SJLJ_LONGJMP, sdl, MVT::Other,
4804 ShAmt = DAG.getNode(ISD::BUILD_VECTOR, sdl, ShAmtVT, &ShOps[0], 2);
4806 ShAmt = DAG.getNode(ISD::BITCAST, sdl, DestVT, ShAmt);
4807 Res = DAG.getNode(ISD::INTRINSIC_WO_CHAIN, sdl, DestVT,
4821 Res = DAG.getNode(ISD::INSERT_SUBVECTOR, sdl, DestVT,
4835 Res = DAG.getNode(ISD::EXTRACT_SUBVECTOR, sdl, DestVT,
4920 setValue(&I, DAG.getNode(Opcode, sdl,
4926 setValue(&I, DAG.getNode(ISD::FMA, sdl,
4936 setValue(&I, DAG.getNode(ISD::FMA, sdl,
4942 SDValue Mul = DAG.getNode(ISD::FMUL, sdl,
4946 SDValue Add = DAG.getNode(ISD::FADD, sdl,
4955 setValue(&I, DAG.getNode(ISD::FP32_TO_FP16, sdl,
4959 setValue(&I, DAG.getNode(ISD::FP16_TO_FP32, sdl,
4964 DAG.setRoot(DAG.getNode(ISD::PCMARKER, sdl, MVT::Other, getRoot(), Tmp));
4969 Res = DAG.getNode(ISD::READCYCLECOUNTER, sdl,
4977 setValue(&I, DAG.getNode(ISD::BSWAP, sdl,
4985 setValue(&I, DAG.getNode(CI->isZero() ? ISD::CTTZ : ISD::CTTZ_ZERO_UNDEF,
4993 setValue(&I, DAG.getNode(CI->isZero() ? ISD::CTLZ : ISD::CTLZ_ZERO_UNDEF,
5000 setValue(&I, DAG.getNode(ISD::CTPOP, sdl, Ty, Arg));
5005 Res = DAG.getNode(ISD::STACKSAVE, sdl,
5013 DAG.setRoot(DAG.getNode(ISD::STACKRESTORE, sdl, MVT::Other, getRoot(), Res));
5075 Res = DAG.getNode(ISD::INIT_TRAMPOLINE, sdl, MVT::Other, Ops, 6);
5081 setValue(&I, DAG.getNode(ISD::ADJUST_TRAMPOLINE, sdl,
5091 FrameIndexSDNode *FI = cast<FrameIndexSDNode>(getValue(Alloca).getNode());
5099 setValue(&I, DAG.getNode(ISD::FLT_ROUNDS_, sdl, MVT::i32));
5114 DAG.setRoot(DAG.getNode(Op, sdl,MVT::Other, getRoot()));
5151 setValue(&I, DAG.getNode(Op, sdl, VTs, Op1, Op2));
5198 Res = DAG.getNode(Opcode, sdl, MVT::Other, Ops, 2);
5320 assert((isTailCall || Result.second.getNode()) &&
5322 assert((Result.second.getNode() || !Result.first.getNode()) &&
5324 if (Result.first.getNode()) {
5326 } else if (!CanLowerReturn && Result.second.getNode()) {
5346 SDValue Add = DAG.getNode(ISD::ADD, getCurSDLoc(), PtrVT,
5356 SDValue Chain = DAG.getNode(ISD::TokenFactor, getCurSDLoc(),
5361 DAG.getNode(ISD::MERGE_VALUES, getCurSDLoc(),
5366 if (!Result.second.getNode()) {
5542 setValue(&I, DAG.getNode(Opcode, getCurSDLoc(), Tmp.getValueType(), Tmp));
5591 setValue(&I, DAG.getNode(ISD::FCOPYSIGN, getCurSDLoc(),
5792 OpInfo.CallOperand = DAG.getNode(ISD::BITCAST, DL,
5801 OpInfo.CallOperand = DAG.getNode(ISD::BITCAST, DL,
6317 if (Flag.getNode()) AsmNodeOperands.push_back(Flag);
6319 Chain = DAG.getNode(ISD::INLINEASM, getCurSDLoc(),
6340 Val = DAG.getNode(ISD::BITCAST, getCurSDLoc(),
6348 Val = DAG.getNode(ISD::TRUNCATE, getCurSDLoc(), ResultType, Val);
6384 Chain = DAG.getNode(ISD::TokenFactor, getCurSDLoc(), MVT::Other,
6391 DAG.setRoot(DAG.getNode(ISD::VASTART, getCurSDLoc(),
6409 DAG.setRoot(DAG.getNode(ISD::VAEND, getCurSDLoc(),
6416 DAG.setRoot(DAG.getNode(ISD::VACOPY, getCurSDLoc(),
6463 SDValue Op = SDValue(Args[i].Node.getNode(),
6548 assert(CLI.Chain.getNode() && CLI.Chain.getValueType() == MVT::Other &&
6565 assert(InVals[i].getNode() &&
6597 SDValue Res = CLI.DAG.getNode(ISD::MERGE_VALUES, CLI.DL,
6607 if (Res.getNode())
6736 assert(NewRoot.getNode() && NewRoot.getValueType() == MVT::Other &&
6742 assert(InVals[i].getNode() &&
6793 dyn_cast<FrameIndexSDNode>(InVals[i].getNode()))
6823 dyn_cast<FrameIndexSDNode>(ArgValues[0].getNode()))
6832 dyn_cast<LoadSDNode>(Res.getOperand(0).getNode()))
6834 dyn_cast<FrameIndexSDNode>(LNode->getBasePtr().getNode()))