Lines Matching refs:bcast

212   auto bcast = [&](Value value) -> Value {  in frexp()  local
230 Value tmp0 = builder.create<arith::AndIOp>(i32Arg, bcast(i32InvMantMask)); in frexp()
231 Value tmp1 = builder.create<arith::OrIOp>(tmp0, bcast(i32Half)); in frexp()
238 bcast(i32Cst(builder, 23))); in frexp()
242 builder.create<arith::SubFOp>(biasedExponent, bcast(cst126f)); in frexp()
252 auto bcast = [&](Value value) -> Value { in exp2I32() local
258 auto exponetBitLocation = bcast(i32Cst(builder, 23)); in exp2I32()
260 auto bias = bcast(i32Cst(builder, 127)); in exp2I32()
498 auto bcast = [&](Value value) -> Value { in matchAndRewrite() local
503 Value minusClamp = bcast(f32Cst(builder, -7.99881172180175781f)); in matchAndRewrite()
504 Value plusClamp = bcast(f32Cst(builder, 7.99881172180175781f)); in matchAndRewrite()
508 Value tiny = bcast(f32Cst(builder, 0.0004f)); in matchAndRewrite()
514 Value alpha1 = bcast(f32Cst(builder, 4.89352455891786e-03f)); in matchAndRewrite()
515 Value alpha3 = bcast(f32Cst(builder, 6.37261928875436e-04f)); in matchAndRewrite()
516 Value alpha5 = bcast(f32Cst(builder, 1.48572235717979e-05f)); in matchAndRewrite()
517 Value alpha7 = bcast(f32Cst(builder, 5.12229709037114e-08f)); in matchAndRewrite()
518 Value alpha9 = bcast(f32Cst(builder, -8.60467152213735e-11f)); in matchAndRewrite()
519 Value alpha11 = bcast(f32Cst(builder, 2.00018790482477e-13f)); in matchAndRewrite()
520 Value alpha13 = bcast(f32Cst(builder, -2.76076847742355e-16f)); in matchAndRewrite()
523 Value beta0 = bcast(f32Cst(builder, 4.89352518554385e-03f)); in matchAndRewrite()
524 Value beta2 = bcast(f32Cst(builder, 2.26843463243900e-03f)); in matchAndRewrite()
525 Value beta4 = bcast(f32Cst(builder, 1.18534705686654e-04f)); in matchAndRewrite()
526 Value beta6 = bcast(f32Cst(builder, 1.19825839466702e-06f)); in matchAndRewrite()
586 auto bcast = [&](Value value) -> Value { in logMatchAndRewrite() local
590 Value cstZero = bcast(f32Cst(builder, 0.0f)); in logMatchAndRewrite()
591 Value cstOne = bcast(f32Cst(builder, 1.0f)); in logMatchAndRewrite()
592 Value cstNegHalf = bcast(f32Cst(builder, -0.5f)); in logMatchAndRewrite()
595 Value cstMinNormPos = bcast(f32FromBits(builder, 0x00800000u)); in logMatchAndRewrite()
596 Value cstMinusInf = bcast(f32FromBits(builder, 0xff800000u)); in logMatchAndRewrite()
597 Value cstPosInf = bcast(f32FromBits(builder, 0x7f800000u)); in logMatchAndRewrite()
598 Value cstNan = bcast(f32FromBits(builder, 0x7fc00000)); in logMatchAndRewrite()
601 Value cstCephesSQRTHF = bcast(f32Cst(builder, 0.707106781186547524f)); in logMatchAndRewrite()
602 Value cstCephesLogP0 = bcast(f32Cst(builder, 7.0376836292E-2f)); in logMatchAndRewrite()
603 Value cstCephesLogP1 = bcast(f32Cst(builder, -1.1514610310E-1f)); in logMatchAndRewrite()
604 Value cstCephesLogP2 = bcast(f32Cst(builder, 1.1676998740E-1f)); in logMatchAndRewrite()
605 Value cstCephesLogP3 = bcast(f32Cst(builder, -1.2420140846E-1f)); in logMatchAndRewrite()
606 Value cstCephesLogP4 = bcast(f32Cst(builder, +1.4249322787E-1f)); in logMatchAndRewrite()
607 Value cstCephesLogP5 = bcast(f32Cst(builder, -1.6668057665E-1f)); in logMatchAndRewrite()
608 Value cstCephesLogP6 = bcast(f32Cst(builder, +2.0000714765E-1f)); in logMatchAndRewrite()
609 Value cstCephesLogP7 = bcast(f32Cst(builder, -2.4999993993E-1f)); in logMatchAndRewrite()
610 Value cstCephesLogP8 = bcast(f32Cst(builder, +3.3333331174E-1f)); in logMatchAndRewrite()
658 Value cstLog2e = bcast(f32Cst(builder, static_cast<float>(LOG2E_VALUE))); in logMatchAndRewrite()
661 Value cstLn2 = bcast(f32Cst(builder, static_cast<float>(LN2_VALUE))); in logMatchAndRewrite()
733 auto bcast = [&](Value value) -> Value { in matchAndRewrite() local
743 Value cstOne = bcast(f32Cst(builder, 1.0f)); in matchAndRewrite()
780 auto bcast = [&](Value value) -> Value { in matchAndRewrite() local
787 Value zero = bcast(f32Cst(builder, 0)); in matchAndRewrite()
788 Value one = bcast(f32Cst(builder, 1)); in matchAndRewrite()
790 pp[0][0] = bcast(f32Cst(builder, +0.00000000000000000e+00f)); in matchAndRewrite()
791 pp[0][1] = bcast(f32Cst(builder, +1.12837916222975858e+00f)); in matchAndRewrite()
792 pp[0][2] = bcast(f32Cst(builder, -5.23018562988006470e-01f)); in matchAndRewrite()
793 pp[0][3] = bcast(f32Cst(builder, +2.09741709609267072e-01f)); in matchAndRewrite()
794 pp[0][4] = bcast(f32Cst(builder, +2.58146801602987875e-02f)); in matchAndRewrite()
795 pp[1][0] = bcast(f32Cst(builder, +0.00000000000000000e+00f)); in matchAndRewrite()
796 pp[1][1] = bcast(f32Cst(builder, +1.12750687816789140e+00f)); in matchAndRewrite()
797 pp[1][2] = bcast(f32Cst(builder, -3.64721408487825775e-01f)); in matchAndRewrite()
798 pp[1][3] = bcast(f32Cst(builder, +1.18407396425136952e-01f)); in matchAndRewrite()
799 pp[1][4] = bcast(f32Cst(builder, +3.70645533056476558e-02f)); in matchAndRewrite()
800 pp[2][0] = bcast(f32Cst(builder, -3.30093071049483172e-03f)); in matchAndRewrite()
801 pp[2][1] = bcast(f32Cst(builder, +3.51961938357697011e-03f)); in matchAndRewrite()
802 pp[2][2] = bcast(f32Cst(builder, -1.41373622814988039e-03f)); in matchAndRewrite()
803 pp[2][3] = bcast(f32Cst(builder, +2.53447094961941348e-04f)); in matchAndRewrite()
804 pp[2][4] = bcast(f32Cst(builder, -1.71048029455037401e-05f)); in matchAndRewrite()
807 qq[0][0] = bcast(f32Cst(builder, +1.000000000000000000e+00f)); in matchAndRewrite()
808 qq[0][1] = bcast(f32Cst(builder, -4.635138185962547255e-01f)); in matchAndRewrite()
809 qq[0][2] = bcast(f32Cst(builder, +5.192301327279782447e-01f)); in matchAndRewrite()
810 qq[0][3] = bcast(f32Cst(builder, -1.318089722204810087e-01f)); in matchAndRewrite()
811 qq[0][4] = bcast(f32Cst(builder, +7.397964654672315005e-02f)); in matchAndRewrite()
812 qq[1][0] = bcast(f32Cst(builder, +1.00000000000000000e+00f)); in matchAndRewrite()
813 qq[1][1] = bcast(f32Cst(builder, -3.27607011824493086e-01f)); in matchAndRewrite()
814 qq[1][2] = bcast(f32Cst(builder, +4.48369090658821977e-01f)); in matchAndRewrite()
815 qq[1][3] = bcast(f32Cst(builder, -8.83462621207857930e-02f)); in matchAndRewrite()
816 qq[1][4] = bcast(f32Cst(builder, +5.72442770283176093e-02f)); in matchAndRewrite()
817 qq[2][0] = bcast(f32Cst(builder, +1.00000000000000000e+00f)); in matchAndRewrite()
818 qq[2][1] = bcast(f32Cst(builder, -2.06069165953913769e+00f)); in matchAndRewrite()
819 qq[2][2] = bcast(f32Cst(builder, +1.62705939945477759e+00f)); in matchAndRewrite()
820 qq[2][3] = bcast(f32Cst(builder, -5.83389859211130017e-01f)); in matchAndRewrite()
821 qq[2][4] = bcast(f32Cst(builder, +8.21908939856640930e-02f)); in matchAndRewrite()
824 offsets[0] = bcast(f32Cst(builder, 0.0f)); in matchAndRewrite()
825 offsets[1] = bcast(f32Cst(builder, 0.0f)); in matchAndRewrite()
826 offsets[2] = bcast(f32Cst(builder, 1.0f)); in matchAndRewrite()
829 bounds[0] = bcast(f32Cst(builder, 0.8f)); in matchAndRewrite()
830 bounds[1] = bcast(f32Cst(builder, 2.0f)); in matchAndRewrite()
831 bounds[2] = bcast(f32Cst(builder, 3.75f)); in matchAndRewrite()
911 auto bcast = [&](Value value) -> Value { in matchAndRewrite() local
925 Value cstLn2 = bcast(f32Cst(builder, static_cast<float>(LN2_VALUE))); in matchAndRewrite()
926 Value cstLog2E = bcast(f32Cst(builder, static_cast<float>(LOG2E_VALUE))); in matchAndRewrite()
929 Value cstCephesExpP0 = bcast(f32Cst(builder, 1.0)); in matchAndRewrite()
930 Value cstCephesExpP1 = bcast(f32Cst(builder, 1.0)); in matchAndRewrite()
931 Value cstCephesExpP2 = bcast(f32Cst(builder, 0.49970514590562437052f)); in matchAndRewrite()
932 Value cstCephesExpP3 = bcast(f32Cst(builder, 0.16873890085469545053f)); in matchAndRewrite()
933 Value cstCephesExpP4 = bcast(f32Cst(builder, 0.03668965196652099192f)); in matchAndRewrite()
934 Value cstCephesExpP5 = bcast(f32Cst(builder, 0.01314350012789660196f)); in matchAndRewrite()
972 Value zerof32Const = bcast(f32Cst(builder, 0)); in matchAndRewrite()
974 bcast(f32Cst(builder, std::numeric_limits<float>::infinity())); in matchAndRewrite()
976 bcast(f32Cst(builder, -std::numeric_limits<float>::infinity())); in matchAndRewrite()
977 auto underflow = bcast(f32Cst(builder, std::numeric_limits<float>::min())); in matchAndRewrite()
979 Value kMaxConst = bcast(i32Cst(builder, 127)); in matchAndRewrite()
980 Value kMaxNegConst = bcast(i32Cst(builder, -127)); in matchAndRewrite()
1034 auto bcast = [&](Value value) -> Value { in matchAndRewrite() local
1041 Value cstOne = bcast(f32Cst(builder, 1.0f)); in matchAndRewrite()
1042 Value cstNegOne = bcast(f32Cst(builder, -1.0f)); in matchAndRewrite()
1104 auto bcast = [&](Value value) -> Value { in matchAndRewrite() local
1121 return builder.create<arith::AndIOp>(a, bcast(i32Cst(builder, 3))); in matchAndRewrite()
1144 Value twoOverPi = bcast(f32Cst(builder, (float)TWO_OVER_PI)); in matchAndRewrite()
1145 Value piOverTwo = bcast(f32Cst(builder, (float)PI_OVER_2)); in matchAndRewrite()
1153 Value cstOne = bcast(f32Cst(builder, 1.0)); in matchAndRewrite()
1154 Value cstNegativeOne = bcast(f32Cst(builder, -1.0)); in matchAndRewrite()
1156 Value cstSC2 = bcast(f32Cst(builder, -0.16666667163372039794921875f)); in matchAndRewrite()
1157 Value cstSC4 = bcast(f32Cst(builder, 8.333347737789154052734375e-3f)); in matchAndRewrite()
1158 Value cstSC6 = bcast(f32Cst(builder, -1.9842604524455964565277099609375e-4f)); in matchAndRewrite()
1160 bcast(f32Cst(builder, 2.760012648650445044040679931640625e-6f)); in matchAndRewrite()
1162 bcast(f32Cst(builder, -2.50293279435709337121807038784027099609375e-8f)); in matchAndRewrite()
1164 Value cstCC2 = bcast(f32Cst(builder, -0.5f)); in matchAndRewrite()
1165 Value cstCC4 = bcast(f32Cst(builder, 4.166664183139801025390625e-2f)); in matchAndRewrite()
1166 Value cstCC6 = bcast(f32Cst(builder, -1.388833043165504932403564453125e-3f)); in matchAndRewrite()
1167 Value cstCC8 = bcast(f32Cst(builder, 2.47562347794882953166961669921875e-5f)); in matchAndRewrite()
1169 bcast(f32Cst(builder, -2.59630184018533327616751194000244140625e-7f)); in matchAndRewrite()
1173 Value kR0 = isEqualTo(kMod4, bcast(i32Cst(builder, 0))); in matchAndRewrite()
1174 Value kR1 = isEqualTo(kMod4, bcast(i32Cst(builder, 1))); in matchAndRewrite()
1175 Value kR2 = isEqualTo(kMod4, bcast(i32Cst(builder, 2))); in matchAndRewrite()
1176 Value kR3 = isEqualTo(kMod4, bcast(i32Cst(builder, 3))); in matchAndRewrite()
1179 Value negativeRange = isSine ? isGreaterThan(kMod4, bcast(i32Cst(builder, 1))) in matchAndRewrite()
1231 auto bcast = [&](Value value) -> Value { in matchAndRewrite() local
1235 Value cstPosInf = bcast(f32FromBits(builder, 0x7f800000u)); in matchAndRewrite()
1236 Value cstOnePointFive = bcast(f32Cst(builder, 1.5f)); in matchAndRewrite()
1237 Value cstNegHalf = bcast(f32Cst(builder, -0.5f)); in matchAndRewrite()
1238 Value cstMinNormPos = bcast(f32FromBits(builder, 0x00800000u)); in matchAndRewrite()