/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_bitarit.c | 52 a = LLVMBuildBitCast(builder, a, bld->int_vec_type, ""); in lp_build_or() 53 b = LLVMBuildBitCast(builder, b, bld->int_vec_type, ""); in lp_build_or() 59 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_or() 78 a = LLVMBuildBitCast(builder, a, bld->int_vec_type, ""); in lp_build_xor() 79 b = LLVMBuildBitCast(builder, b, bld->int_vec_type, ""); in lp_build_xor() 85 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_xor() 106 a = LLVMBuildBitCast(builder, a, bld->int_vec_type, ""); in lp_build_and() 107 b = LLVMBuildBitCast(builder, b, bld->int_vec_type, ""); in lp_build_and() 113 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_and() 135 a = LLVMBuildBitCast(builder, a, bld->int_vec_type, ""); in lp_build_andnot() [all …]
|
D | lp_bld_format_float.c | 99 i32_src = LLVMBuildBitCast(builder, src, i32_bld.vec_type, ""); in lp_build_float_to_smallfloat() 108 rescale_src = LLVMBuildBitCast(builder, rescale_src, i32_bld.vec_type, ""); in lp_build_float_to_smallfloat() 121 rescale_src = LLVMBuildBitCast(builder, rescale_src, i32_bld.vec_type, ""); in lp_build_float_to_smallfloat() 123 rescale_src = LLVMBuildBitCast(builder, rescale_src, f32_bld.vec_type, ""); in lp_build_float_to_smallfloat() 132 magic = LLVMBuildBitCast(builder, magic, f32_bld.vec_type, ""); in lp_build_float_to_smallfloat() 139 small_max = LLVMBuildBitCast(builder, small_max, f32_bld.vec_type, ""); in lp_build_float_to_smallfloat() 141 normal = LLVMBuildBitCast(builder, normal, i32_bld.vec_type, ""); in lp_build_float_to_smallfloat() 155 src_abs = LLVMBuildBitCast(builder, src_abs, i32_bld.vec_type, ""); in lp_build_float_to_smallfloat() 188 rescale_src = LLVMBuildBitCast(builder, rescale_src, i32_bld.vec_type, ""); in lp_build_float_to_smallfloat() 328 srcabs = LLVMBuildBitCast(builder, srcabs, f32_bld.vec_type, ""); in lp_build_smallfloat_to_float() [all …]
|
D | lp_bld_swizzle.c | 209 a = LLVMBuildBitCast(builder, a, lp_build_vec_type(bld->gallivm, type2), ""); in lp_build_swizzle_scalar_aos() 242 return LLVMBuildBitCast(builder, a, lp_build_vec_type(bld->gallivm, type), ""); in lp_build_swizzle_scalar_aos() 289 a = LLVMBuildBitCast(builder, a, lp_build_vec_type(bld->gallivm, type4), ""); in lp_build_swizzle_scalar_aos() 310 return LLVMBuildBitCast(builder, a, lp_build_vec_type(bld->gallivm, type), ""); in lp_build_swizzle_scalar_aos() 492 a = LLVMBuildBitCast(builder, a, lp_build_vec_type(bld->gallivm, type4), ""); in lp_build_swizzle_aos() 493 res = LLVMBuildBitCast(builder, res, lp_build_vec_type(bld->gallivm, type4), ""); in lp_build_swizzle_aos() 556 return LLVMBuildBitCast(builder, res, in lp_build_swizzle_aos() 670 t0 = LLVMBuildBitCast(gallivm->builder, t0, double_type, "t0"); in lp_build_transpose_aos() 671 t1 = LLVMBuildBitCast(gallivm->builder, t1, double_type, "t1"); in lp_build_transpose_aos() 672 t2 = LLVMBuildBitCast(gallivm->builder, t2, double_type, "t2"); in lp_build_transpose_aos() [all …]
|
D | lp_bld_gather.c | 99 ptr = LLVMBuildBitCast(gallivm->builder, ptr, src_ptr_type, ""); in lp_build_gather_elem() 180 ptr = LLVMBuildBitCast(gallivm->builder, ptr, src_ptr_type, ""); in lp_build_gather_elem_vec() 264 res = LLVMBuildBitCast(gallivm->builder, res, in lp_build_gather_elem_vec() 267 res = LLVMBuildBitCast(gallivm->builder, res, dst_elem_type, ""); in lp_build_gather_elem_vec() 319 base_ptr = LLVMBuildBitCast(builder, base_ptr, src_ptr_type, ""); in lp_build_gather_avx2() 379 res = LLVMBuildBitCast(builder, res, lp_build_vec_type(gallivm, res_type), ""); in lp_build_gather_avx2() 484 return LLVMBuildBitCast(gallivm->builder, res, in lp_build_gather() 569 elems[i] = LLVMBuildBitCast(gallivm->builder, elems[i], in lp_build_gather() 578 res = LLVMBuildBitCast(gallivm->builder, res, in lp_build_gather()
|
D | lp_bld_logic.c | 269 a = LLVMBuildBitCast(builder, a, int_vec_type, ""); in lp_build_select_bitwise() 270 b = LLVMBuildBitCast(builder, b, int_vec_type, ""); in lp_build_select_bitwise() 286 res = LLVMBuildBitCast(builder, res, vec_type, ""); in lp_build_select_bitwise() 395 mask = LLVMBuildBitCast(builder, mask, arg_type, ""); in lp_build_select() 399 a = LLVMBuildBitCast(builder, a, arg_type, ""); in lp_build_select() 400 b = LLVMBuildBitCast(builder, b, arg_type, ""); in lp_build_select() 411 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_select() 499 val = LLVMBuildBitCast(builder, val, scalar_type, ""); in lp_build_any_true_range()
|
D | lp_bld_quad.c | 197 src0 = LLVMBuildBitCast(builder, src[i + 0], type2_ref, ""); in lp_bld_quad_twiddle() 198 src1 = LLVMBuildBitCast(builder, src[i + 1], type2_ref, ""); in lp_bld_quad_twiddle() 203 dst[i + 0] = LLVMBuildBitCast(builder, dst[i + 0], dst_type_ref, ""); in lp_bld_quad_twiddle() 204 dst[i + 1] = LLVMBuildBitCast(builder, dst[i + 1], dst_type_ref, ""); in lp_bld_quad_twiddle()
|
D | lp_bld_pack.c | 338 a = LLVMBuildBitCast(gallivm->builder, a, lp_build_vec_type(gallivm, tmp_type), ""); in lp_build_interleave2() 339 b = LLVMBuildBitCast(gallivm->builder, b, lp_build_vec_type(gallivm, tmp_type), ""); in lp_build_interleave2() 344 return LLVMBuildBitCast(gallivm->builder, tmpdst, lp_build_vec_type(gallivm, type), ""); in lp_build_interleave2() 445 *dst_lo = LLVMBuildBitCast(builder, *dst_lo, dst_vec_type, ""); in lp_build_unpack2() 446 *dst_hi = LLVMBuildBitCast(builder, *dst_hi, dst_vec_type, ""); in lp_build_unpack2() 503 *dst_lo = LLVMBuildBitCast(builder, *dst_lo, dst_vec_type, ""); in lp_build_unpack2_native() 504 *dst_hi = LLVMBuildBitCast(builder, *dst_hi, dst_vec_type, ""); in lp_build_unpack2_native() 646 res = LLVMBuildBitCast(builder, res, dst_vec_type, ""); in lp_build_pack2() 672 tmpres[i] = LLVMBuildBitCast(builder, tmpres[i], ndst_vec_type, ""); in lp_build_pack2() 684 tmpres[i+num_split/2] = LLVMBuildBitCast(builder, tmpres[i+num_split/2], in lp_build_pack2() [all …]
|
D | lp_bld_arit.c | 1203 muleven = LLVMBuildBitCast(builder, muleven, bld->vec_type, ""); in lp_build_mul_32_lohi_cpu() 1204 mulodd = LLVMBuildBitCast(builder, mulodd, bld->vec_type, ""); in lp_build_mul_32_lohi_cpu() 1324 a = LLVMBuildBitCast(builder, a, lp_build_int_vec_type(bld->type), ""); in lp_build_mul_imm() 1326 a = LLVMBuildBitCast(builder, a, lp_build_vec_type(bld->gallivm, bld->type), ""); in lp_build_mul_imm() 1465 res = LLVMBuildBitCast(builder, res, narrow_bld.vec_type, ""); in lp_build_lerp_simple() 1466 v0 = LLVMBuildBitCast(builder, v0, narrow_bld.vec_type, ""); in lp_build_lerp_simple() 1468 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_lerp_simple() 1791 a = LLVMBuildBitCast(builder, a, int_vec_type, ""); in lp_build_abs() 1793 a = LLVMBuildBitCast(builder, a, vec_type, ""); in lp_build_abs() 1875 sign = LLVMBuildBitCast(builder, a, int_type, ""); in lp_build_sgn() [all …]
|
D | lp_bld_sample.c | 1143 lf = LLVMBuildBitCast(builder, lf, fbld.vec_type, ""); in lp_build_minify() 1721 mai = LLVMBuildBitCast(builder, ma, cint_vec_type, ""); in lp_build_cube_lookup() 1748 si = LLVMBuildBitCast(builder, s, cint_vec_type, ""); in lp_build_cube_lookup() 1749 ti = LLVMBuildBitCast(builder, t, cint_vec_type, ""); in lp_build_cube_lookup() 1750 ri = LLVMBuildBitCast(builder, r, cint_vec_type, ""); in lp_build_cube_lookup() 1752 sdxi = LLVMBuildBitCast(builder, ddx[0], cint_vec_type, ""); in lp_build_cube_lookup() 1753 tdxi = LLVMBuildBitCast(builder, ddx[1], cint_vec_type, ""); in lp_build_cube_lookup() 1754 rdxi = LLVMBuildBitCast(builder, ddx[2], cint_vec_type, ""); in lp_build_cube_lookup() 1756 sdyi = LLVMBuildBitCast(builder, ddy[0], cint_vec_type, ""); in lp_build_cube_lookup() 1757 tdyi = LLVMBuildBitCast(builder, ddy[1], cint_vec_type, ""); in lp_build_cube_lookup() [all …]
|
D | lp_bld_format_cached.c | 102 ptr = LLVMBuildBitCast(builder, ptr, type_ptr4x32, ""); in store_cached_block() 191 function = LLVMBuildBitCast(builder, function, in update_cached_block() 199 tmp_ptr = LLVMBuildBitCast(builder, tmp_ptr, pi8t, ""); in update_cached_block() 225 tmp_ptr = LLVMBuildBitCast(builder, tmp_ptr, LLVMPointerType(i32x4, 0), ""); in update_cached_block() 372 return LLVMBuildBitCast(builder, color, LLVMVectorType(i8t, n * 4), ""); in lp_build_fetch_cached_texels()
|
D | lp_bld_format_soa.c | 244 input = LLVMBuildBitCast(builder, input, bld->vec_type, ""); in lp_build_extract_soa_chan() 363 packed = LLVMBuildBitCast(builder, packed, in lp_build_rgba8_to_fi32_soa() 615 packed[i] = LLVMBuildBitCast(builder, packed[i], in lp_build_fetch_rgba_soa() 648 dst[i] = LLVMBuildBitCast(builder, dst[i], bld.int_vec_type, ""); in lp_build_fetch_rgba_soa() 730 packed = LLVMBuildBitCast(builder, packed, in lp_build_fetch_rgba_soa() 773 packed = LLVMBuildBitCast(builder, packed, bld.int_vec_type, ""); in lp_build_fetch_rgba_soa()
|
D | lp_bld_format_aos.c | 518 packed = LLVMBuildBitCast(gallivm->builder, packed, dst_vec_type, ""); in lp_build_fetch_rgba_aos() 554 packed = LLVMBuildBitCast(gallivm->builder, packed, conv_vec_type, ""); in lp_build_fetch_rgba_aos() 597 res = LLVMBuildBitCast(gallivm->builder, res, dst_vec_type, ""); in lp_build_fetch_rgba_aos() 810 function = LLVMBuildBitCast(builder, function, in lp_build_fetch_rgba_aos() 828 args[0] = LLVMBuildBitCast(builder, tmp_ptr, pi8t, ""); in lp_build_fetch_rgba_aos() 854 res = LLVMBuildBitCast(builder, res, bld.vec_type, ""); in lp_build_fetch_rgba_aos() 924 args[0] = LLVMBuildBitCast(builder, tmp_ptr, pf32t, ""); in lp_build_fetch_rgba_aos()
|
D | lp_bld_tgsi_soa.c | 468 LLVMBuildBitCast(builder, mask->exec_mask, reg_type, ""), in lp_exec_endloop() 985 res = LLVMBuildBitCast(builder, res, bld_base->dbl_bld.vec_type, ""); in build_gather() 1078 rel = LLVMBuildBitCast(builder, rel, uint_bld->vec_type, ""); in get_indirect_index() 1249 scalar_ptr = LLVMBuildBitCast(builder, scalar_ptr, dptr_type, ""); in emit_fetch_constant() 1253 scalar_ptr = LLVMBuildBitCast(builder, scalar_ptr, u64ptr_type, ""); in emit_fetch_constant() 1257 scalar_ptr = LLVMBuildBitCast(builder, scalar_ptr, i64ptr_type, ""); in emit_fetch_constant() 1266 res = LLVMBuildBitCast(builder, res, bld_fetch->vec_type, ""); in emit_fetch_constant() 1302 return LLVMBuildBitCast(builder, res, bld_fetch->vec_type, ""); in emit_fetch_64bit() 1323 imms_array = LLVMBuildBitCast(builder, bld->imms_array, fptr_type, ""); in emit_fetch_immediate() 1379 res = LLVMBuildBitCast(builder, res, bld_fetch->vec_type, ""); in emit_fetch_immediate() [all …]
|
D | lp_bld_format_srgb.c | 199 tmp = LLVMBuildBitCast(builder, tmp, lp_build_vec_type(gallivm, int_type), ""); in lp_build_linear_to_srgb() 205 pow_approx = LLVMBuildBitCast(builder, pow_approx, in lp_build_linear_to_srgb()
|
D | lp_bld_format_aos_array.c | 116 res = LLVMBuildBitCast(builder, res, lp_build_vec_type(gallivm, dst_type), ""); in lp_build_fetch_rgba_aos_array()
|
D | lp_bld_intr.c | 324 a = LLVMBuildBitCast(builder, a, LLVMVectorType(elem_type, 1), ""); in lp_build_intrinsic_binary_anylength() 325 b = LLVMBuildBitCast(builder, b, LLVMVectorType(elem_type, 1), ""); in lp_build_intrinsic_binary_anylength()
|
D | lp_bld_conv.c | 194 func = LLVMBuildBitCast(builder, func, LLVMPointerType(func_type, 0), "util_float_to_half"); in lp_build_float_to_half() 276 res = LLVMBuildBitCast(builder, res, int_vec_type, ""); in lp_build_clamped_float_to_unsigned_norm() 424 LLVMBuildBitCast(builder, bias_, int_vec_type, ""), ""); in lp_build_unsigned_norm_to_float() 426 res = LLVMBuildBitCast(builder, res, vec_type, ""); in lp_build_unsigned_norm_to_float()
|
D | lp_bld_sample_soa.c | 958 weight = LLVMBuildBitCast(builder, weight, in lp_build_masklerp() 960 weight2 = LLVMBuildBitCast(builder, weight2, in lp_build_masklerp() 964 weight = LLVMBuildBitCast(builder, weight, bld->vec_type, ""); in lp_build_masklerp() 965 weight2 = LLVMBuildBitCast(builder, weight2, bld->vec_type, ""); in lp_build_masklerp() 1395 c00f = LLVMBuildBitCast(builder, c00, coord_bld->vec_type, ""); in lp_build_sample_image_linear() 1397 c01f = LLVMBuildBitCast(builder, c01, coord_bld->vec_type, ""); in lp_build_sample_image_linear() 1399 c10f = LLVMBuildBitCast(builder, c10, coord_bld->vec_type, ""); in lp_build_sample_image_linear() 1401 c11f = LLVMBuildBitCast(builder, c11, coord_bld->vec_type, ""); in lp_build_sample_image_linear() 1469 cmpval00 = LLVMBuildBitCast(builder, cmpval00, in lp_build_sample_image_linear() 1471 cmpval01 = LLVMBuildBitCast(builder, cmpval01, in lp_build_sample_image_linear() [all …]
|
D | lp_bld_printf.c | 69 …func_printf = LLVMBuildBitCast(builder, func_printf, LLVMPointerType(printf_type, 0), "debug_print… in lp_build_print_args()
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_bld_depth.c | 441 LLVMValueRef bits = LLVMBuildBitCast(builder, maskvalue, in lp_build_occlusion_count() 452 LLVMValueRef bits = LLVMBuildBitCast(builder, maskvalue, in lp_build_occlusion_count() 469 countv = LLVMBuildBitCast(builder, countv, i8vntype, ""); in lp_build_occlusion_count() 477 countd = LLVMBuildBitCast(builder, countd, counttype, "countd"); in lp_build_occlusion_count() 587 zs_dst_ptr = LLVMBuildBitCast(builder, zs_dst_ptr, load_ptr_type, ""); in lp_build_depth_stencil_load_swizzled() 594 zs_dst_ptr = LLVMBuildBitCast(builder, zs_dst_ptr, load_ptr_type, ""); in lp_build_depth_stencil_load_swizzled() 622 tmp = LLVMBuildBitCast(builder, *z_fb, in lp_build_depth_stencil_load_swizzled() 633 *s_fb = LLVMBuildBitCast(builder, *s_fb, in lp_build_depth_stencil_load_swizzled() 727 zs_dst_ptr1 = LLVMBuildBitCast(builder, zs_dst_ptr1, load_ptr_type, ""); in lp_build_depth_stencil_write_swizzled() 729 zs_dst_ptr2 = LLVMBuildBitCast(builder, zs_dst_ptr2, load_ptr_type, ""); in lp_build_depth_stencil_write_swizzled() [all …]
|
D | lp_bld_interp.c | 197 ptr = LLVMBuildBitCast(builder, ptr, in coeffs_init_simple() 202 ptr = LLVMBuildBitCast(builder, ptr, in coeffs_init_simple() 213 ptr = LLVMBuildBitCast(builder, ptr, in coeffs_init_simple() 409 ptr = LLVMBuildBitCast(builder, ptr, in coeffs_init() 414 ptr = LLVMBuildBitCast(builder, ptr, in coeffs_init() 425 ptr = LLVMBuildBitCast(builder, ptr, in coeffs_init() 596 a = LLVMBuildBitCast(builder, a, ptr_type, ""); in attribs_update()
|
D | lp_state_setup.c | 291 exp = LLVMBuildBitCast(b, maxz_value, int_scalar_bld.vec_type, ""); in lp_do_offset_tri() 298 exp = LLVMBuildBitCast(b, exp, flt_scalar_bld.vec_type, ""); in lp_do_offset_tri() 515 one = LLVMBuildBitCast(builder, one, lp_build_int_vec_type(gallivm, type), ""); in emit_apply_cyl_wrap() 523 offset = LLVMBuildBitCast(builder, offset, float_vec_type, ""); in emit_apply_cyl_wrap() 528 offset = LLVMBuildBitCast(builder, offset, float_vec_type, ""); in emit_apply_cyl_wrap() 536 offset = LLVMBuildBitCast(builder, offset, float_vec_type, ""); in emit_apply_cyl_wrap() 541 offset = LLVMBuildBitCast(builder, offset, float_vec_type, ""); in emit_apply_cyl_wrap() 549 offset = LLVMBuildBitCast(builder, offset, float_vec_type, ""); in emit_apply_cyl_wrap() 554 offset = LLVMBuildBitCast(builder, offset, float_vec_type, ""); in emit_apply_cyl_wrap()
|
D | lp_state_fs.c | 534 smask = LLVMBuildBitCast(builder, smask, smask_bld.vec_type, ""); in generate_fs_loop() 563 stencil_refs[0] = LLVMBuildBitCast(builder, stencil_refs[0], int_vec_type, ""); in generate_fs_loop() 847 tmp[0] = LLVMBuildBitCast(builder, src[0], type16_t, ""); in fs_twiddle_transpose() 849 dst[0] = LLVMBuildBitCast(builder, tmp[0], type8_t, ""); in fs_twiddle_transpose() 855 tmp[i] = LLVMBuildBitCast(builder, tmp[i], type32_t, ""); in fs_twiddle_transpose() 857 dst[i] = LLVMBuildBitCast(builder, tmp[i], type8_t, ""); in fs_twiddle_transpose() 869 lo2 = LLVMBuildBitCast(builder, tmp[j*2], type64_t, ""); in fs_twiddle_transpose() 870 hi2 = LLVMBuildBitCast(builder, tmp[j*2 + 1], type64_t, ""); in fs_twiddle_transpose() 873 dst[j*2] = LLVMBuildBitCast(builder, lo, type8_t, ""); in fs_twiddle_transpose() 874 dst[j*2 + 1] = LLVMBuildBitCast(builder, hi, type8_t, ""); in fs_twiddle_transpose() [all …]
|
/external/mesa3d/src/amd/common/ |
D | ac_llvm_build.c | 200 return LLVMBuildBitCast(ctx->builder, v, ac_to_integer_type(ctx, type), ""); in ac_to_integer() 230 return LLVMBuildBitCast(ctx->builder, v, ac_to_float_type(ctx, type), ""); in ac_to_float() 354 vgpr = LLVMBuildBitCast(builder, vgpr, LLVMVectorType(ctx->i32, vgpr_size / 4), ""); in ac_build_optimization_barrier() 358 vgpr = LLVMBuildBitCast(builder, vgpr, vgpr_type, ""); in ac_build_optimization_barrier() 380 args[0] = LLVMBuildBitCast(ctx->builder, args[0], ctx->i32, ""); in ac_build_ballot() 709 ij[0] = LLVMBuildBitCast(ctx->builder, i, ctx->i32, ""); in ac_build_fs_interp() 710 ij[1] = LLVMBuildBitCast(ctx->builder, j, ctx->i32, ""); in ac_build_fs_interp() 888 LLVMBuildBitCast(ctx->builder, rsrc, ctx->v4i32, ""), in ac_build_buffer_store_dword() 991 LLVMBuildBitCast(ctx->builder, rsrc, ctx->v4i32, ""), in ac_build_buffer_load() 1018 LLVMBuildBitCast(ctx->builder, rsrc, ctx->v4i32, ""), in ac_build_buffer_load_format() [all …]
|
D | ac_nir_to_llvm.c | 1086 ctx->ring_offsets = LLVMBuildBitCast(ctx->builder, ctx->ring_offsets, in create_function() 1453 …return LLVMBuildAnd(ctx->builder, src0, LLVMBuildBitCast(ctx->builder, LLVMConstReal(ctx->f32, 1.0… in emit_b2f() 1516 … LLVMBuildBitCast(ctx->builder, LLVMConstInt(ctx->ac.i32, 0x38800000, false), ctx->ac.f32, ""), in emit_f2f16() 1616 val = LLVMBuildBitCast(ctx->builder, val, ctx->f16, ""); in emit_unpack_half_2x16() 2065 LLVMValueRef tmp = LLVMBuildBitCast(ctx->ac.builder, src[0], in visit_alu() 2075 LLVMValueRef tmp = LLVMBuildBitCast(ctx->ac.builder, src[0], in visit_alu() 2089 result = LLVMBuildBitCast(ctx->ac.builder, tmp, ctx->ac.i64, ""); in visit_alu() 2144 return LLVMBuildBitCast(ctx->builder, ptr, in cast_ptr() 2230 tmp = LLVMBuildBitCast(ctx->builder, tmp, ctx->f32, ""); in radv_lower_gather4_integer() 2232 tmp = LLVMBuildBitCast(ctx->builder, tmp, ctx->i32, ""); in radv_lower_gather4_integer() [all …]
|