Lines Matching refs:insert_before
317 this->base_ir->insert_before(x); in mod_to_floor()
318 this->base_ir->insert_before(y); in mod_to_floor()
327 this->base_ir->insert_before(assign_x); in mod_to_floor()
328 this->base_ir->insert_before(assign_y); in mod_to_floor()
446 i.insert_before(x); in ldexp_to_arith()
447 i.insert_before(assign(x, ir->operands[0])); in ldexp_to_arith()
448 i.insert_before(exp); in ldexp_to_arith()
449 i.insert_before(assign(exp, ir->operands[1])); in ldexp_to_arith()
452 i.insert_before(extracted_biased_exp); in ldexp_to_arith()
453 i.insert_before(assign(extracted_biased_exp, in ldexp_to_arith()
468 i.insert_before(resulting_biased_exp); in ldexp_to_arith()
469 i.insert_before(assign(resulting_biased_exp, in ldexp_to_arith()
473 i.insert_before(sign_mantissa); in ldexp_to_arith()
474 i.insert_before(assign(sign_mantissa, in ldexp_to_arith()
486 i.insert_before(flush_to_zero); in ldexp_to_arith()
487 i.insert_before(assign(flush_to_zero, in ldexp_to_arith()
491 i.insert_before(assign(resulting_biased_exp, in ldexp_to_arith()
496 i.insert_before(zero_mantissa); in ldexp_to_arith()
497 i.insert_before(assign(zero_mantissa, in ldexp_to_arith()
501 i.insert_before(assign(sign_mantissa, in ldexp_to_arith()
510 i.insert_before(result); in ldexp_to_arith()
512 i.insert_before(assign(result, in ldexp_to_arith()
518 i.insert_before(assign(result, in ldexp_to_arith()
574 i.insert_before(x); in dldexp_to_arith()
575 i.insert_before(assign(x, ir->operands[0])); in dldexp_to_arith()
576 i.insert_before(exp); in dldexp_to_arith()
577 i.insert_before(assign(exp, ir->operands[1])); in dldexp_to_arith()
584 i.insert_before(extracted_biased_exp); in dldexp_to_arith()
585 i.insert_before(assign(extracted_biased_exp, add(frexp_exp, exp_bias))); in dldexp_to_arith()
587 i.insert_before(resulting_biased_exp); in dldexp_to_arith()
588 i.insert_before(assign(resulting_biased_exp, in dldexp_to_arith()
597 i.insert_before(zero_sign_x); in dldexp_to_arith()
601 i.insert_before(unpacked); in dldexp_to_arith()
602 i.insert_before( in dldexp_to_arith()
605 i.insert_before(assign(unpacked, bit_and(swizzle_y(unpacked), sign_mask->clone(ir, NULL)), in dldexp_to_arith()
607 i.insert_before(assign(unpacked, ir_constant::zero(ir, glsl_type::uint_type), WRITEMASK_X)); in dldexp_to_arith()
608 i.insert_before(assign(zero_sign_x, in dldexp_to_arith()
612 i.insert_before(is_not_zero_or_underflow); in dldexp_to_arith()
613 i.insert_before(assign(is_not_zero_or_underflow, in dldexp_to_arith()
616 i.insert_before(assign(x, csel(is_not_zero_or_underflow, in dldexp_to_arith()
618 i.insert_before(assign(resulting_biased_exp, in dldexp_to_arith()
634 i.insert_before(unpacked); in dldexp_to_arith()
635 i.insert_before( in dldexp_to_arith()
645 i.insert_before(assign(unpacked, bfi, WRITEMASK_Y)); in dldexp_to_arith()
687 i.insert_before(is_not_zero); in dfrexp_sig_to_arith()
688 i.insert_before( in dfrexp_sig_to_arith()
709 i.insert_before(bits); in dfrexp_sig_to_arith()
710 i.insert_before(unpacked); in dfrexp_sig_to_arith()
711 i.insert_before(assign(unpacked, expr(ir_unop_unpack_double_2x32, x))); in dfrexp_sig_to_arith()
716 i.insert_before(assign(bits, swizzle_y(unpacked))); in dfrexp_sig_to_arith()
717 i.insert_before(assign(bits, bit_and(bits, sign_mantissa_mask))); in dfrexp_sig_to_arith()
718 i.insert_before(assign(bits, bit_or(bits, in dfrexp_sig_to_arith()
722 i.insert_before(assign(unpacked, bits, WRITEMASK_Y)); in dfrexp_sig_to_arith()
764 i.insert_before(is_not_zero); in dfrexp_exp_to_arith()
765 i.insert_before(high_words); in dfrexp_exp_to_arith()
766 i.insert_before(assign(is_not_zero, nequal(absval->clone(ir, NULL), dzero))); in dfrexp_exp_to_arith()
772 i.insert_before(assign(high_words, in dfrexp_exp_to_arith()
852 this->base_ir->insert_before(temp); in double_dot_to_fma()
865 this->base_ir->insert_before(assig); in double_dot_to_fma()
917 i.insert_before(frtemp); in dceil_to_dfrac()
918 i.insert_before(assign(frtemp, fract(ir->operands[0]))); in dceil_to_dfrac()
966 i.insert_before(temp); in dround_even_to_dfrac()
967 i.insert_before(assign(temp, add(ir->operands[0], p5))); in dround_even_to_dfrac()
969 i.insert_before(frtemp); in dround_even_to_dfrac()
970 i.insert_before(assign(frtemp, fract(temp))); in dround_even_to_dfrac()
972 i.insert_before(t2); in dround_even_to_dfrac()
973 i.insert_before(assign(t2, sub(temp, frtemp))); in dround_even_to_dfrac()
1006 i.insert_before(frtemp); in dtrunc_to_dfrac()
1007 i.insert_before(assign(frtemp, fract(arg))); in dtrunc_to_dfrac()
1008 i.insert_before(temp); in dtrunc_to_dfrac()
1009 i.insert_before(assign(temp, sub(arg->clone(ir, NULL), frtemp))); in dtrunc_to_dfrac()
1066 base_ir->insert_before(temp); in bit_count_to_math()
1069 base_ir->insert_before(assign(temp, ir->operands[0])); in bit_count_to_math()
1072 base_ir->insert_before(assign(temp, i2u(ir->operands[0]))); in bit_count_to_math()
1076 base_ir->insert_before(assign(temp, sub(temp, bit_and(rshift(temp, c1), in bit_count_to_math()
1080 base_ir->insert_before(assign(temp, add(bit_and(temp, c33333333), in bit_count_to_math()
1100 base_ir->insert_before(bits); in extract_to_shifts()
1101 base_ir->insert_before(assign(bits, ir->operands[2])); in extract_to_shifts()
1143 base_ir->insert_before(temp); in extract_to_shifts()
1144 base_ir->insert_before(assign(temp, sub(c32, bits))); in extract_to_shifts()
1195 base_ir->insert_before(offset); in insert_to_shifts()
1196 base_ir->insert_before(assign(offset, ir->operands[2])); in insert_to_shifts()
1198 base_ir->insert_before(bits); in insert_to_shifts()
1199 base_ir->insert_before(assign(bits, ir->operands[3])); in insert_to_shifts()
1218 base_ir->insert_before(mask); in insert_to_shifts()
1220 base_ir->insert_before(assign(mask, csel(equal(bits, c32), in insert_to_shifts()
1267 i.insert_before(temp); in reverse_to_shifts()
1270 i.insert_before(assign(temp, ir->operands[0])); in reverse_to_shifts()
1273 i.insert_before(assign(temp, i2u(ir->operands[0]))); in reverse_to_shifts()
1280 i.insert_before(assign(temp, bit_or(bit_and(rshift(temp, c1), c55555555), in reverse_to_shifts()
1287 i.insert_before(assign(temp, bit_or(bit_and(rshift(temp, c2), c33333333), in reverse_to_shifts()
1295 i.insert_before(assign(temp, bit_or(bit_and(rshift(temp, c4), c0F0F0F0F), in reverse_to_shifts()
1306 i.insert_before(assign(temp, bit_or(bit_and(rshift(temp, c8), c00FF00FF), in reverse_to_shifts()
1348 i.insert_before(temp); in find_lsb_to_float_cast()
1351 i.insert_before(assign(temp, ir->operands[0])); in find_lsb_to_float_cast()
1354 i.insert_before(assign(temp, u2i(ir->operands[0]))); in find_lsb_to_float_cast()
1365 i.insert_before(lsb_only); in find_lsb_to_float_cast()
1366 i.insert_before(assign(lsb_only, i2u(bit_and(temp, neg(temp))))); in find_lsb_to_float_cast()
1368 i.insert_before(as_float); in find_lsb_to_float_cast()
1369 i.insert_before(assign(as_float, u2f(lsb_only))); in find_lsb_to_float_cast()
1383 i.insert_before(lsb); in find_lsb_to_float_cast()
1384 i.insert_before(assign(lsb, sub(rshift(bitcast_f2i(as_float), c23), c7F))); in find_lsb_to_float_cast()
1429 i.insert_before(temp); in find_msb_to_float_cast()
1432 i.insert_before(assign(temp, ir->operands[0])); in find_msb_to_float_cast()
1456 i.insert_before(as_int); in find_msb_to_float_cast()
1457 i.insert_before(assign(as_int, ir->operands[0])); in find_msb_to_float_cast()
1458 i.insert_before(assign(temp, i2u(expr(ir_binop_bit_xor, in find_msb_to_float_cast()
1470 i.insert_before(as_float); in find_msb_to_float_cast()
1471 i.insert_before(assign(as_float, u2f(csel(greater(temp, c000000FF), in find_msb_to_float_cast()
1487 i.insert_before(msb); in find_msb_to_float_cast()
1488 i.insert_before(assign(msb, sub(rshift(bitcast_f2i(as_float), c23), c7F))); in find_msb_to_float_cast()
1570 i.insert_before(src1); in imul_high_to_mul()
1571 i.insert_before(src2); in imul_high_to_mul()
1572 i.insert_before(src1h); in imul_high_to_mul()
1573 i.insert_before(src2h); in imul_high_to_mul()
1574 i.insert_before(src1l); in imul_high_to_mul()
1575 i.insert_before(src2l); in imul_high_to_mul()
1578 i.insert_before(assign(src1, ir->operands[0])); in imul_high_to_mul()
1579 i.insert_before(assign(src2, ir->operands[1])); in imul_high_to_mul()
1589 i.insert_before(itmp1); in imul_high_to_mul()
1590 i.insert_before(itmp2); in imul_high_to_mul()
1591 i.insert_before(assign(itmp1, ir->operands[0])); in imul_high_to_mul()
1592 i.insert_before(assign(itmp2, ir->operands[1])); in imul_high_to_mul()
1598 i.insert_before(different_signs); in imul_high_to_mul()
1599 i.insert_before(assign(different_signs, expr(ir_binop_logic_xor, in imul_high_to_mul()
1603 i.insert_before(assign(src1, i2u(abs(itmp1)))); in imul_high_to_mul()
1604 i.insert_before(assign(src2, i2u(abs(itmp2)))); in imul_high_to_mul()
1607 i.insert_before(assign(src1l, bit_and(src1, c0000FFFF))); in imul_high_to_mul()
1608 i.insert_before(assign(src2l, bit_and(src2, c0000FFFF->clone(ir, NULL)))); in imul_high_to_mul()
1609 i.insert_before(assign(src1h, rshift(src1, c16))); in imul_high_to_mul()
1610 i.insert_before(assign(src2h, rshift(src2, c16->clone(ir, NULL)))); in imul_high_to_mul()
1612 i.insert_before(lo); in imul_high_to_mul()
1613 i.insert_before(hi); in imul_high_to_mul()
1614 i.insert_before(t1); in imul_high_to_mul()
1615 i.insert_before(t2); in imul_high_to_mul()
1617 i.insert_before(assign(lo, mul(src1l, src2l))); in imul_high_to_mul()
1618 i.insert_before(assign(t1, mul(src1l, src2h))); in imul_high_to_mul()
1619 i.insert_before(assign(t2, mul(src1h, src2l))); in imul_high_to_mul()
1620 i.insert_before(assign(hi, mul(src1h, src2h))); in imul_high_to_mul()
1622 i.insert_before(assign(hi, add(hi, _carry(lo, lshift(t1, c16->clone(ir, NULL)))))); in imul_high_to_mul()
1623 i.insert_before(assign(lo, add(lo, lshift(t1, c16->clone(ir, NULL))))); in imul_high_to_mul()
1625 i.insert_before(assign(hi, add(hi, _carry(lo, lshift(t2, c16->clone(ir, NULL)))))); in imul_high_to_mul()
1626 i.insert_before(assign(lo, add(lo, lshift(t2, c16->clone(ir, NULL))))); in imul_high_to_mul()
1638 i.insert_before(assign(hi, add(add(hi, rshift(t1, c16->clone(ir, NULL))), in imul_high_to_mul()
1650 i.insert_before(neg_hi); in imul_high_to_mul()
1651 i.insert_before(assign(neg_hi, add(bit_not(u2i(hi)), in imul_high_to_mul()