Lines Matching defs:getConstant

965                  getConstant(Imm, Op.getValueType()));
973 getConstant(APInt::getAllOnesValue(EltVT.getSizeInBits()), VT);
977 SDValue SelectionDAG::getConstant(uint64_t Val, EVT VT, bool isT) {
981 "getConstant with a uint64_t value that doesn't fit in the type!");
982 return getConstant(APInt(EltVT.getSizeInBits(), Val), VT, isT);
985 SDValue SelectionDAG::getConstant(const APInt &Val, EVT VT, bool isT) {
986 return getConstant(*ConstantInt::get(*Context, Val), VT, isT);
989 SDValue SelectionDAG::getConstant(const ConstantInt &Val, EVT VT, bool isT) {
1034 return getConstant(Val, TLI.getPointerTy(), isTarget);
1572 case ISD::SETFALSE2: return getConstant(0, VT);
1574 case ISD::SETTRUE2: return getConstant(1, VT);
1597 case ISD::SETEQ: return getConstant(C1 == C2, VT);
1598 case ISD::SETNE: return getConstant(C1 != C2, VT);
1599 case ISD::SETULT: return getConstant(C1.ult(C2), VT);
1600 case ISD::SETUGT: return getConstant(C1.ugt(C2), VT);
1601 case ISD::SETULE: return getConstant(C1.ule(C2), VT);
1602 case ISD::SETUGE: return getConstant(C1.uge(C2), VT);
1603 case ISD::SETLT: return getConstant(C1.slt(C2), VT);
1604 case ISD::SETGT: return getConstant(C1.sgt(C2), VT);
1605 case ISD::SETLE: return getConstant(C1.sle(C2), VT);
1606 case ISD::SETGE: return getConstant(C1.sge(C2), VT);
1622 case ISD::SETOEQ: return getConstant(R==APFloat::cmpEqual, VT);
1626 case ISD::SETONE: return getConstant(R==APFloat::cmpGreaterThan ||
1631 case ISD::SETOLT: return getConstant(R==APFloat::cmpLessThan, VT);
1635 case ISD::SETOGT: return getConstant(R==APFloat::cmpGreaterThan, VT);
1639 case ISD::SETOLE: return getConstant(R==APFloat::cmpLessThan ||
1644 case ISD::SETOGE: return getConstant(R==APFloat::cmpGreaterThan ||
1646 case ISD::SETO: return getConstant(R!=APFloat::cmpUnordered, VT);
1647 case ISD::SETUO: return getConstant(R==APFloat::cmpUnordered, VT);
1648 case ISD::SETUEQ: return getConstant(R==APFloat::cmpUnordered ||
1650 case ISD::SETUNE: return getConstant(R!=APFloat::cmpEqual, VT);
1651 case ISD::SETULT: return getConstant(R==APFloat::cmpUnordered ||
1653 case ISD::SETUGT: return getConstant(R==APFloat::cmpGreaterThan ||
1655 case ISD::SETULE: return getConstant(R!=APFloat::cmpGreaterThan, VT);
1656 case ISD::SETUGE: return getConstant(R!=APFloat::cmpLessThan, VT);
2440 return getConstant(Val.sextOrTrunc(VT.getSizeInBits()), VT);
2444 return getConstant(Val.zextOrTrunc(VT.getSizeInBits()), VT);
2462 return getConstant(Val.byteSwap(), VT);
2464 return getConstant(Val.countPopulation(), VT);
2467 return getConstant(Val.countLeadingZeros(), VT);
2470 return getConstant(Val.countTrailingZeros(), VT);
2523 return getConstant(api, VT);
2527 return getConstant((uint32_t)V.bitcastToAPInt().getZExtValue(), VT);
2529 return getConstant(V.bitcastToAPInt().getZExtValue(), VT);
2567 return getConstant(0, VT);
2584 return getConstant(0, VT);
2706 case ISD::ADD: return getConstant(C1 + C2, VT);
2707 case ISD::SUB: return getConstant(C1 - C2, VT);
2708 case ISD::MUL: return getConstant(C1 * C2, VT);
2710 if (C2.getBoolValue()) return getConstant(C1.udiv(C2), VT);
2713 if (C2.getBoolValue()) return getConstant(C1.urem(C2), VT);
2716 if (C2.getBoolValue()) return getConstant(C1.sdiv(C2), VT);
2719 if (C2.getBoolValue()) return getConstant(C1.srem(C2), VT);
2721 case ISD::AND: return getConstant(C1 & C2, VT);
2722 case ISD::OR: return getConstant(C1 | C2, VT);
2723 case ISD::XOR: return getConstant(C1 ^ C2, VT);
2724 case ISD::SHL: return getConstant(C1 << C2, VT);
2725 case ISD::SRL: return getConstant(C1.lshr(C2), VT);
2726 case ISD::SRA: return getConstant(C1.ashr(C2), VT);
2727 case ISD::ROTL: return getConstant(C1.rotl(C2), VT);
2728 case ISD::ROTR: return getConstant(C1.rotr(C2), VT);
2929 return getConstant(Val, VT);
2947 getConstant(N2C->getZExtValue() % Factor,
3004 return getConstant(ShiftedVal.trunc(ElementSize), VT);
3120 return getConstant(0, VT); // fold op(undef, arg2) -> 0
3135 return getConstant(0, VT);
3159 return getConstant(0, VT); // fold op(arg1, undef) -> 0
3165 return getConstant(APInt::getAllOnesValue(VT.getSizeInBits()), VT);
3346 return DAG.getConstant(Val, VT);
3355 Value = DAG.getNode(ISD::MUL, dl, VT, Value, DAG.getConstant(Magic, VT));
3369 return DAG.getConstant(0, VT);
3376 DAG.getConstant(0, EVT::getVectorVT(*DAG.getContext(),
3395 return DAG.getConstant(Val, VT);
3404 VT, Base, DAG.getConstant(Offset, VT));
6001 getConstant(i, TLI.getPointerTy()));