Lines Matching refs:ir_constant
275 ir_constant *log2_e = new(ir) ir_constant(float(M_LOG2E)); in exp_to_exp2()
306 ir->operands[1] = new(ir) ir_constant(float(1.0 / M_LOG2E)); in log_to_log2()
455 new(ir) ir_constant(23, vec_elem)))); in ldexp_to_arith()
471 new(ir) ir_constant(255, vec_elem)))); in ldexp_to_arith()
476 new(ir) ir_constant(0x807fffffu, vec_elem)))); in ldexp_to_arith()
490 ir_constant::zero(ir, ivec)))); in ldexp_to_arith()
493 ir_constant::zero(ir, ivec), in ldexp_to_arith()
500 new(ir) ir_constant(255, vec_elem))))); in ldexp_to_arith()
504 new(ir) ir_constant(0x80000000u, vec_elem)), in ldexp_to_arith()
515 new(ir) ir_constant(23u, vec_elem), in ldexp_to_arith()
516 new(ir) ir_constant(8u, vec_elem)))); in ldexp_to_arith()
521 new(ir) ir_constant(23, vec_elem))))); in ldexp_to_arith()
527 new(ir) ir_constant(255, vec_elem)); in ldexp_to_arith()
548 ir_constant *zeroi = ir_constant::zero(ir, ivec); in dldexp_to_arith()
550 ir_constant *sign_mask = new(ir) ir_constant(0x80000000u); in dldexp_to_arith()
552 ir_constant *exp_shift = new(ir) ir_constant(20u); in dldexp_to_arith()
553 ir_constant *exp_width = new(ir) ir_constant(11u); in dldexp_to_arith()
554 ir_constant *exp_bias = new(ir) ir_constant(1022, vec_elem); in dldexp_to_arith()
607 i.insert_before(assign(unpacked, ir_constant::zero(ir, glsl_type::uint_type), WRITEMASK_X)); in dldexp_to_arith()
615 new(ir) ir_constant(0x1, vec_elem)))); in dldexp_to_arith()
686 ir_constant *dzero = new(ir) ir_constant(0.0, vec_elem); in dfrexp_sig_to_arith()
696 ir_constant *zero = new(ir) ir_constant(0u, 1); in dfrexp_sig_to_arith()
697 ir_constant *sign_mantissa_mask = new(ir) ir_constant(0x800fffffu, 1); in dfrexp_sig_to_arith()
700 ir_constant *exponent_value = new(ir) ir_constant(0x3fe00000u, 1); in dfrexp_sig_to_arith()
759 ir_constant *dzero = new(ir) ir_constant(0.0, vec_elem); in dfrexp_exp_to_arith()
760 ir_constant *izero = new(ir) ir_constant(0, vec_elem); in dfrexp_exp_to_arith()
777 ir_constant *exponent_shift = new(ir) ir_constant(20, vec_elem); in dfrexp_exp_to_arith()
778 ir_constant *exponent_bias = new(ir) ir_constant(-1022, vec_elem); in dfrexp_exp_to_arith()
841 new(ir) ir_constant(0.0f)); in sat_to_clamp()
842 ir->operands[1] = new(ir) ir_constant(1.0f); in sat_to_clamp()
883 ir_constant *one = new(ir) ir_constant(1.0, op2->type->vector_elements); in double_lrp()
912 ir_constant *zero = new(ir) ir_constant(0.0, ir->operands[0]->type->vector_elements); in dceil_to_dfrac()
913 ir_constant *one = new(ir) ir_constant(1.0, ir->operands[0]->type->vector_elements); in dceil_to_dfrac()
962 ir_constant *p5 = new(ir) ir_constant(0.5, ir->operands[0]->type->vector_elements); in dround_even_to_dfrac()
963 ir_constant *one = new(ir) ir_constant(1.0, ir->operands[0]->type->vector_elements); in dround_even_to_dfrac()
964 ir_constant *zero = new(ir) ir_constant(0.0, ir->operands[0]->type->vector_elements); in dround_even_to_dfrac()
999 ir_constant *zero = new(ir) ir_constant(0.0, arg->type->vector_elements); in dtrunc_to_dfrac()
1000 ir_constant *one = new(ir) ir_constant(1.0, arg->type->vector_elements); in dtrunc_to_dfrac()
1031 ir_constant *zero = new(ir) ir_constant(0.0, arg->type->vector_elements); in dsign_to_csel()
1032 ir_constant *one = new(ir) ir_constant(1.0, arg->type->vector_elements); in dsign_to_csel()
1033 ir_constant *neg_one = new(ir) ir_constant(-1.0, arg->type->vector_elements); in dsign_to_csel()
1057 ir_constant *c55555555 = new(ir) ir_constant(0x55555555u); in bit_count_to_math()
1058 ir_constant *c33333333 = new(ir) ir_constant(0x33333333u); in bit_count_to_math()
1059 ir_constant *c0F0F0F0F = new(ir) ir_constant(0x0F0F0F0Fu); in bit_count_to_math()
1060 ir_constant *c01010101 = new(ir) ir_constant(0x01010101u); in bit_count_to_math()
1061 ir_constant *c1 = new(ir) ir_constant(1u); in bit_count_to_math()
1062 ir_constant *c2 = new(ir) ir_constant(2u); in bit_count_to_math()
1063 ir_constant *c4 = new(ir) ir_constant(4u); in bit_count_to_math()
1064 ir_constant *c24 = new(ir) ir_constant(24u); in bit_count_to_math()
1104 ir_constant *c1 = in extract_to_shifts()
1105 new(ir) ir_constant(1u, ir->operands[0]->type->vector_elements); in extract_to_shifts()
1106 ir_constant *c32 = in extract_to_shifts()
1107 new(ir) ir_constant(32u, ir->operands[0]->type->vector_elements); in extract_to_shifts()
1108 ir_constant *cFFFFFFFF = in extract_to_shifts()
1109 new(ir) ir_constant(0xFFFFFFFFu, ir->operands[0]->type->vector_elements); in extract_to_shifts()
1135 ir_constant *c0 = in extract_to_shifts()
1136 new(ir) ir_constant(int(0), ir->operands[0]->type->vector_elements); in extract_to_shifts()
1137 ir_constant *c32 = in extract_to_shifts()
1138 new(ir) ir_constant(int(32), ir->operands[0]->type->vector_elements); in extract_to_shifts()
1173 ir_constant *c1; in insert_to_shifts()
1174 ir_constant *c32; in insert_to_shifts()
1175 ir_constant *cFFFFFFFF; in insert_to_shifts()
1184 c1 = new(ir) ir_constant(int(1), ir->operands[0]->type->vector_elements); in insert_to_shifts()
1185 c32 = new(ir) ir_constant(int(32), ir->operands[0]->type->vector_elements); in insert_to_shifts()
1186 cFFFFFFFF = new(ir) ir_constant(int(0xFFFFFFFF), ir->operands[0]->type->vector_elements); in insert_to_shifts()
1190 c1 = new(ir) ir_constant(1u, ir->operands[0]->type->vector_elements); in insert_to_shifts()
1191 c32 = new(ir) ir_constant(32u, ir->operands[0]->type->vector_elements); in insert_to_shifts()
1192 cFFFFFFFF = new(ir) ir_constant(0xFFFFFFFFu, ir->operands[0]->type->vector_elements); in insert_to_shifts()
1244 ir_constant *c1 = in reverse_to_shifts()
1245 new(ir) ir_constant(1u, ir->operands[0]->type->vector_elements); in reverse_to_shifts()
1246 ir_constant *c2 = in reverse_to_shifts()
1247 new(ir) ir_constant(2u, ir->operands[0]->type->vector_elements); in reverse_to_shifts()
1248 ir_constant *c4 = in reverse_to_shifts()
1249 new(ir) ir_constant(4u, ir->operands[0]->type->vector_elements); in reverse_to_shifts()
1250 ir_constant *c8 = in reverse_to_shifts()
1251 new(ir) ir_constant(8u, ir->operands[0]->type->vector_elements); in reverse_to_shifts()
1252 ir_constant *c16 = in reverse_to_shifts()
1253 new(ir) ir_constant(16u, ir->operands[0]->type->vector_elements); in reverse_to_shifts()
1254 ir_constant *c33333333 = in reverse_to_shifts()
1255 new(ir) ir_constant(0x33333333u, ir->operands[0]->type->vector_elements); in reverse_to_shifts()
1256 ir_constant *c55555555 = in reverse_to_shifts()
1257 new(ir) ir_constant(0x55555555u, ir->operands[0]->type->vector_elements); in reverse_to_shifts()
1258 ir_constant *c0F0F0F0F = in reverse_to_shifts()
1259 new(ir) ir_constant(0x0F0F0F0Fu, ir->operands[0]->type->vector_elements); in reverse_to_shifts()
1260 ir_constant *c00FF00FF = in reverse_to_shifts()
1261 new(ir) ir_constant(0x00FF00FFu, ir->operands[0]->type->vector_elements); in reverse_to_shifts()
1333 ir_constant *c0 = new(ir) ir_constant(unsigned(0), elements); in find_lsb_to_float_cast()
1334 ir_constant *cminus1 = new(ir) ir_constant(int(-1), elements); in find_lsb_to_float_cast()
1335 ir_constant *c23 = new(ir) ir_constant(int(23), elements); in find_lsb_to_float_cast()
1336 ir_constant *c7F = new(ir) ir_constant(int(0x7F), elements); in find_lsb_to_float_cast()
1414 ir_constant *c0 = new(ir) ir_constant(int(0), elements); in find_msb_to_float_cast()
1415 ir_constant *cminus1 = new(ir) ir_constant(int(-1), elements); in find_msb_to_float_cast()
1416 ir_constant *c23 = new(ir) ir_constant(int(23), elements); in find_msb_to_float_cast()
1417 ir_constant *c7F = new(ir) ir_constant(int(0x7F), elements); in find_msb_to_float_cast()
1418 ir_constant *c000000FF = new(ir) ir_constant(0x000000FFu, elements); in find_msb_to_float_cast()
1419 ir_constant *cFFFFFF00 = new(ir) ir_constant(0xFFFFFF00u, elements); in find_msb_to_float_cast()
1454 ir_constant *c31 = new(ir) ir_constant(int(31), elements); in find_msb_to_float_cast()
1565 ir_constant *c0000FFFF = new(ir) ir_constant(0x0000FFFFu, elements); in imul_high_to_mul()
1566 ir_constant *c16 = new(ir) ir_constant(16u, elements); in imul_high_to_mul()
1587 ir_constant *c0 = new(ir) ir_constant(int(0), elements); in imul_high_to_mul()
1648 ir_constant *c1 = new(ir) ir_constant(1u, elements); in imul_high_to_mul()