Lines Matching defs:bcast
228 auto bcast = [&](Value value) -> Value {
246 Value tmp0 = builder.create<arith::AndIOp>(i32Arg, bcast(i32InvMantMask));
247 Value tmp1 = builder.create<arith::OrIOp>(tmp0, bcast(i32Half));
254 bcast(i32Cst(builder, 23)));
258 builder.create<arith::SubFOp>(biasedExponent, bcast(cst126f));
268 auto bcast = [&](Value value) -> Value {
274 auto exponetBitLocation = bcast(i32Cst(builder, 23));
276 auto bias = bcast(i32Cst(builder, 127));
406 auto bcast = [&](Value value) -> Value {
411 auto tan3pio8 = bcast(f32Cst(builder, 2.41421356237309504880));
422 auto p0 = bcast(f32Cst(builder, -8.750608600031904122785e-01));
423 auto p1 = bcast(f32Cst(builder, -1.615753718733365076637e+01));
424 auto p2 = bcast(f32Cst(builder, -7.500855792314704667340e+01));
425 auto p3 = bcast(f32Cst(builder, -1.228866684490136173410e+02));
426 auto p4 = bcast(f32Cst(builder, -6.485021904942025371773e+01));
427 auto q0 = bcast(f32Cst(builder, +2.485846490142306297962e+01));
428 auto q1 = bcast(f32Cst(builder, +1.650270098316988542046e+02));
429 auto q2 = bcast(f32Cst(builder, +4.328810604912902668951e+02));
430 auto q3 = bcast(f32Cst(builder, +4.853903996359136964868e+02));
431 auto q4 = bcast(f32Cst(builder, +1.945506571482613964425e+02));
453 Value mpi4 = bcast(f32Cst(builder, llvm::numbers::pi / 4));
457 Value mpi2 = bcast(f32Cst(builder, llvm::numbers::pi / 2));
558 auto bcast = [&](Value value) -> Value {
563 Value minusClamp = bcast(f32Cst(builder, -7.99881172180175781f));
564 Value plusClamp = bcast(f32Cst(builder, 7.99881172180175781f));
568 Value tiny = bcast(f32Cst(builder, 0.0004f));
574 Value alpha1 = bcast(f32Cst(builder, 4.89352455891786e-03f));
575 Value alpha3 = bcast(f32Cst(builder, 6.37261928875436e-04f));
576 Value alpha5 = bcast(f32Cst(builder, 1.48572235717979e-05f));
577 Value alpha7 = bcast(f32Cst(builder, 5.12229709037114e-08f));
578 Value alpha9 = bcast(f32Cst(builder, -8.60467152213735e-11f));
579 Value alpha11 = bcast(f32Cst(builder, 2.00018790482477e-13f));
580 Value alpha13 = bcast(f32Cst(builder, -2.76076847742355e-16f));
583 Value beta0 = bcast(f32Cst(builder, 4.89352518554385e-03f));
584 Value beta2 = bcast(f32Cst(builder, 2.26843463243900e-03f));
585 Value beta4 = bcast(f32Cst(builder, 1.18534705686654e-04f));
586 Value beta6 = bcast(f32Cst(builder, 1.19825839466702e-06f));
646 auto bcast = [&](Value value) -> Value {
650 Value cstZero = bcast(f32Cst(builder, 0.0f));
651 Value cstOne = bcast(f32Cst(builder, 1.0f));
652 Value cstNegHalf = bcast(f32Cst(builder, -0.5f));
655 Value cstMinNormPos = bcast(f32FromBits(builder, 0x00800000u));
656 Value cstMinusInf = bcast(f32FromBits(builder, 0xff800000u));
657 Value cstPosInf = bcast(f32FromBits(builder, 0x7f800000u));
658 Value cstNan = bcast(f32FromBits(builder, 0x7fc00000));
661 Value cstCephesSQRTHF = bcast(f32Cst(builder, 0.707106781186547524f));
662 Value cstCephesLogP0 = bcast(f32Cst(builder, 7.0376836292E-2f));
663 Value cstCephesLogP1 = bcast(f32Cst(builder, -1.1514610310E-1f));
664 Value cstCephesLogP2 = bcast(f32Cst(builder, 1.1676998740E-1f));
665 Value cstCephesLogP3 = bcast(f32Cst(builder, -1.2420140846E-1f));
666 Value cstCephesLogP4 = bcast(f32Cst(builder, +1.4249322787E-1f));
667 Value cstCephesLogP5 = bcast(f32Cst(builder, -1.6668057665E-1f));
668 Value cstCephesLogP6 = bcast(f32Cst(builder, +2.0000714765E-1f));
669 Value cstCephesLogP7 = bcast(f32Cst(builder, -2.4999993993E-1f));
670 Value cstCephesLogP8 = bcast(f32Cst(builder, +3.3333331174E-1f));
718 Value cstLog2e = bcast(f32Cst(builder, static_cast<float>(LOG2E_VALUE)));
721 Value cstLn2 = bcast(f32Cst(builder, static_cast<float>(LN2_VALUE)));
793 auto bcast = [&](Value value) -> Value {
803 Value cstOne = bcast(f32Cst(builder, 1.0f));
848 auto bcast = [&](Value value) -> Value {
878 Value opp = sqrt(sub(bcast(floatCst(builder, 1.0, elementType)), aa));
882 bcast(floatCst(builder, 0.5, elementType)));
889 Value r = bcast(floatCst(builder, 5.5579749017470502e-2, elementType));
890 Value t = bcast(floatCst(builder, -6.2027913464120114e-2, elementType));
892 r = fma(r, q, bcast(floatCst(builder, 5.4224464349245036e-2, elementType)));
893 t = fma(t, q, bcast(floatCst(builder, -1.1326992890324464e-2, elementType)));
894 r = fma(r, q, bcast(floatCst(builder, 1.5268872539397656e-2, elementType)));
895 t = fma(t, q, bcast(floatCst(builder, 1.0493798473372081e-2, elementType)));
896 r = fma(r, q, bcast(floatCst(builder, 1.4106045900607047e-2, elementType)));
897 t = fma(t, q, bcast(floatCst(builder, 1.7339776384962050e-2, elementType)));
898 r = fma(r, q, bcast(floatCst(builder, 2.2372961589651054e-2, elementType)));
899 t = fma(t, q, bcast(floatCst(builder, 3.0381912707941005e-2, elementType)));
900 r = fma(r, q, bcast(floatCst(builder, 4.4642857881094775e-2, elementType)));
901 t = fma(t, q, bcast(floatCst(builder, 7.4999999991367292e-2, elementType)));
903 r = fma(r, s, bcast(floatCst(builder, 1.6666666666670193e-1, elementType)));
907 Value rsub = sub(bcast(floatCst(builder, 1.57079632679, elementType)), r);
943 auto bcast = [&](Value value) -> Value {
956 Value zero = bcast(floatCst(builder, 0.0, elementType));
957 Value half = bcast(floatCst(builder, 0.5, elementType));
958 Value negOne = bcast(floatCst(builder, -1.0, elementType));
962 Value chkConst = bcast(floatCst(builder, -0.5625, elementType));
967 fma(bcast(floatCst(builder, 9.3282184640716537e-1, elementType)),
968 bcast(floatCst(builder, 1.6839188885261840e+0, elementType)),
973 falseVal = mul(bcast(floatCst(builder, 2.0, elementType)), falseVal);
987 trueVal = fma(bcast(floatCst(builder, 1.8656436928143307e+0, elementType)),
988 bcast(floatCst(builder, 1.6839188885261840e+0, elementType)),
1021 auto bcast = [&](Value value) -> Value {
1028 Value zero = bcast(floatCst(builder, 0, elementType));
1029 Value one = bcast(floatCst(builder, 1, elementType));
1031 pp[0][0] = bcast(floatCst(builder, +0.00000000000000000e+00f, elementType));
1032 pp[0][1] = bcast(floatCst(builder, +1.12837916222975858e+00f, elementType));
1033 pp[0][2] = bcast(floatCst(builder, -5.23018562988006470e-01f, elementType));
1034 pp[0][3] = bcast(floatCst(builder, +2.09741709609267072e-01f, elementType));
1035 pp[0][4] = bcast(floatCst(builder, +2.58146801602987875e-02f, elementType));
1036 pp[1][0] = bcast(floatCst(builder, +0.00000000000000000e+00f, elementType));
1037 pp[1][1] = bcast(floatCst(builder, +1.12750687816789140e+00f, elementType));
1038 pp[1][2] = bcast(floatCst(builder, -3.64721408487825775e-01f, elementType));
1039 pp[1][3] = bcast(floatCst(builder, +1.18407396425136952e-01f, elementType));
1040 pp[1][4] = bcast(floatCst(builder, +3.70645533056476558e-02f, elementType));
1041 pp[2][0] = bcast(floatCst(builder, -3.30093071049483172e-03f, elementType));
1042 pp[2][1] = bcast(floatCst(builder, +3.51961938357697011e-03f, elementType));
1043 pp[2][2] = bcast(floatCst(builder, -1.41373622814988039e-03f, elementType));
1044 pp[2][3] = bcast(floatCst(builder, +2.53447094961941348e-04f, elementType));
1045 pp[2][4] = bcast(floatCst(builder, -1.71048029455037401e-05f, elementType));
1048 qq[0][0] = bcast(floatCst(builder, +1.000000000000000000e+00f, elementType));
1049 qq[0][1] = bcast(floatCst(builder, -4.635138185962547255e-01f, elementType));
1050 qq[0][2] = bcast(floatCst(builder, +5.192301327279782447e-01f, elementType));
1051 qq[0][3] = bcast(floatCst(builder, -1.318089722204810087e-01f, elementType));
1052 qq[0][4] = bcast(floatCst(builder, +7.397964654672315005e-02f, elementType));
1053 qq[1][0] = bcast(floatCst(builder, +1.00000000000000000e+00f, elementType));
1054 qq[1][1] = bcast(floatCst(builder, -3.27607011824493086e-01f, elementType));
1055 qq[1][2] = bcast(floatCst(builder, +4.48369090658821977e-01f, elementType));
1056 qq[1][3] = bcast(floatCst(builder, -8.83462621207857930e-02f, elementType));
1057 qq[1][4] = bcast(floatCst(builder, +5.72442770283176093e-02f, elementType));
1058 qq[2][0] = bcast(floatCst(builder, +1.00000000000000000e+00f, elementType));
1059 qq[2][1] = bcast(floatCst(builder, -2.06069165953913769e+00f, elementType));
1060 qq[2][2] = bcast(floatCst(builder, +1.62705939945477759e+00f, elementType));
1061 qq[2][3] = bcast(floatCst(builder, -5.83389859211130017e-01f, elementType));
1062 qq[2][4] = bcast(floatCst(builder, +8.21908939856640930e-02f, elementType));
1065 offsets[0] = bcast(floatCst(builder, 0.0f, elementType));
1066 offsets[1] = bcast(floatCst(builder, 0.0f, elementType));
1067 offsets[2] = bcast(floatCst(builder, 1.0f, elementType));
1070 bounds[0] = bcast(floatCst(builder, 0.8f, elementType));
1071 bounds[1] = bcast(floatCst(builder, 2.0f, elementType));
1072 bounds[2] = bcast(floatCst(builder, 3.75f, elementType));
1133 auto bcast = [&](Value value) -> Value {
1146 bcast(f32Cst(builder, lowerBound)));
1148 bcast(f32Cst(builder, upperBound)));
1173 auto bcast = [&](Value value) -> Value {
1205 Value cstHalf = bcast(f32Cst(builder, 0.5f));
1206 Value cstOne = bcast(f32Cst(builder, 1.0f));
1209 Value cstLog2ef = bcast(f32Cst(builder, 1.44269504088896341f));
1211 Value cstExpC1 = bcast(f32Cst(builder, -0.693359375f));
1212 Value cstExpC2 = bcast(f32Cst(builder, 2.12194440e-4f));
1213 Value cstExpP0 = bcast(f32Cst(builder, 1.9875691500E-4f));
1214 Value cstExpP1 = bcast(f32Cst(builder, 1.3981999507E-3f));
1215 Value cstExpP2 = bcast(f32Cst(builder, 8.3334519073E-3f));
1216 Value cstExpP3 = bcast(f32Cst(builder, 4.1665795894E-2f));
1217 Value cstExpP4 = bcast(f32Cst(builder, 1.6666665459E-1f));
1218 Value cstExpP5 = bcast(f32Cst(builder, 5.0000001201E-1f));
1323 auto bcast = [&](Value value) -> Value {
1330 Value cstOne = bcast(f32Cst(builder, 1.0f));
1331 Value cstNegOne = bcast(f32Cst(builder, -1.0f));
1393 auto bcast = [&](Value value) -> Value {
1410 return builder.create<arith::AndIOp>(a, bcast(i32Cst(builder, 3)));
1433 Value twoOverPi = bcast(f32Cst(builder, (float)TWO_OVER_PI));
1434 Value piOverTwo = bcast(f32Cst(builder, (float)PI_OVER_2));
1442 Value cstOne = bcast(f32Cst(builder, 1.0));
1443 Value cstNegativeOne = bcast(f32Cst(builder, -1.0));
1445 Value cstSC2 = bcast(f32Cst(builder, -0.16666667163372039794921875f));
1446 Value cstSC4 = bcast(f32Cst(builder, 8.333347737789154052734375e-3f));
1447 Value cstSC6 = bcast(f32Cst(builder, -1.9842604524455964565277099609375e-4f));
1449 bcast(f32Cst(builder, 2.760012648650445044040679931640625e-6f));
1451 bcast(f32Cst(builder, -2.50293279435709337121807038784027099609375e-8f));
1453 Value cstCC2 = bcast(f32Cst(builder, -0.5f));
1454 Value cstCC4 = bcast(f32Cst(builder, 4.166664183139801025390625e-2f));
1455 Value cstCC6 = bcast(f32Cst(builder, -1.388833043165504932403564453125e-3f));
1456 Value cstCC8 = bcast(f32Cst(builder, 2.47562347794882953166961669921875e-5f));
1458 bcast(f32Cst(builder, -2.59630184018533327616751194000244140625e-7f));
1462 Value kR0 = isEqualTo(kMod4, bcast(i32Cst(builder, 0)));
1463 Value kR1 = isEqualTo(kMod4, bcast(i32Cst(builder, 1)));
1464 Value kR2 = isEqualTo(kMod4, bcast(i32Cst(builder, 2)));
1465 Value kR3 = isEqualTo(kMod4, bcast(i32Cst(builder, 3)));
1468 Value negativeRange = isSine ? isGreaterThan(kMod4, bcast(i32Cst(builder, 1)))
1613 auto bcast = [&](Value value) -> Value {
1617 Value cstPosInf = bcast(f32FromBits(builder, 0x7f800000u));
1618 Value cstOnePointFive = bcast(f32Cst(builder, 1.5f));
1619 Value cstNegHalf = bcast(f32Cst(builder, -0.5f));
1620 Value cstMinNormPos = bcast(f32FromBits(builder, 0x00800000u));