Home
last modified time | relevance | path

Searched refs:LLVMBuildTrunc (Results 1 – 24 of 24) sorted by relevance

/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_logic.c320 mask = LLVMBuildTrunc(builder, mask, LLVMInt1TypeInContext(lc), ""); in lp_build_select()
349 mask = LLVMBuildTrunc(builder, mask, bool_vec_type, ""); in lp_build_select()
516 val = LLVMBuildTrunc(builder, val, true_type, ""); in lp_build_any_true_range()
Dlp_bld_nir.c261 result = LLVMBuildTrunc(builder, result, bld_base->int_bld.vec_type, ""); in int_to_bool32()
276 result = LLVMBuildTrunc(builder, result, bld_base->int_bld.vec_type, ""); in flt_to_bool32()
298 result = LLVMBuildTrunc(builder, result, bld_base->int_bld.vec_type, ""); in fcmp32()
319 result = LLVMBuildTrunc(builder, result, bld_base->int_bld.vec_type, ""); in icmp32()
421 return LLVMBuildTrunc(builder, result, bld_base->int8_bld.vec_type, ""); in emit_b2i()
423 return LLVMBuildTrunc(builder, result, bld_base->int16_bld.vec_type, ""); in emit_b2i()
708 result = LLVMBuildTrunc(builder, result, bld_base->int_bld.vec_type, ""); in do_alu_action()
831 result = LLVMBuildTrunc(builder, result, bld_base->uint_bld.vec_type, ""); in do_alu_action()
942 result = LLVMBuildTrunc(builder, src[0], bld_base->int8_bld.vec_type, ""); in do_alu_action()
948 result = LLVMBuildTrunc(builder, src[0], bld_base->int16_bld.vec_type, ""); in do_alu_action()
[all …]
Dlp_bld_format_soa.c238 input = LLVMBuildTrunc(builder, input, in lp_build_extract_soa_chan()
1115 data = LLVMBuildTrunc(gallivm->builder, data, LLVMInt8TypeInContext(gallivm->context), ""); in lp_build_store_rgba_soa()
1118 … data = LLVMBuildTrunc(gallivm->builder, data, LLVMInt16TypeInContext(gallivm->context), ""); in lp_build_store_rgba_soa()
Dlp_bld_sample_aos.c1067 lod_fpart = LLVMBuildTrunc(builder, lod_fpart, u8n_bld.elem_type, ""); in lp_build_sample_mipmap()
1076 lod_fpart = LLVMBuildTrunc(builder, lod_fpart, tmp_vec_type, ""); in lp_build_sample_mipmap()
1170 lod_positive = LLVMBuildTrunc(builder, lod_positive, in lp_build_sample_aos()
Dlp_bld_ir_common.c220 exec_mask = LLVMBuildTrunc(builder, exec_mask, bld_store->vec_type, ""); in lp_exec_mask_store()
Dlp_bld_format_s3tc.c497 res = LLVMBuildTrunc(builder, res, bld8->vec_type, ""); in lp_build_pavgb()
931 alpha0 = LLVMBuildTrunc(builder, alpha0, lp_build_vec_type(gallivm, type8), ""); in s3tc_dxt5_alpha_channel()
940 alpha1 = LLVMBuildTrunc(builder, alpha1, lp_build_vec_type(gallivm, type8), ""); in s3tc_dxt5_alpha_channel()
968 alphac0 = LLVMBuildTrunc(builder, alphac0, i32t, ""); in s3tc_dxt5_alpha_channel()
987 alphac = LLVMBuildTrunc(builder, alphac, bld32.vec_type, ""); in s3tc_dxt5_alpha_channel()
Dlp_bld_tgsi_action.c2129 cond = LLVMBuildTrunc(builder, cond, bld_base->int_bld.int_vec_type, ""); in dset_emit_cpu()
2237 cond = LLVMBuildTrunc(builder, cond, bld_base->int_bld.int_vec_type, ""); in u64set_emit_cpu()
2288 cond = LLVMBuildTrunc(builder, cond, bld_base->int_bld.int_vec_type, ""); in i64set_emit_cpu()
Dlp_bld_format_aos.c451 packed = LLVMBuildTrunc(builder, packed, type, ""); in lp_build_pack_rgba_aos()
Dlp_bld_conv.c204 result = LLVMBuildTrunc(builder, result, lp_build_vec_type(gallivm, i16_type), ""); in lp_build_float_to_half()
Dlp_bld_arit.c1168 res_lo = LLVMBuildTrunc(builder, tmp, narrow_type, ""); in lp_build_mul_32_lohi()
1172 *res_hi = LLVMBuildTrunc(builder, tmp, narrow_type, ""); in lp_build_mul_32_lohi()
Dlp_bld_nir_soa.c339 … scalar_pred = LLVMBuildTrunc(builder, scalar_pred, LLVMInt1TypeInContext(gallivm->context), ""); in emit_mask_scatter()
Dlp_bld_sample_soa.c3000 lod_positive = LLVMBuildTrunc(builder, lod_positive, in lp_build_sample_general()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dgfx10_shader_ngg.c510 tmp = LLVMBuildTrunc(builder, tmp, ctx->ac.i1, ""); in build_streamout()
1256 LLVMBuildStore(builder, LLVMBuildTrunc(builder, vertex_count, ctx->ac.i8, ""), in gfx10_ngg_culling_build_end()
1292 LLVMBuildStore(builder, LLVMBuildTrunc(builder, new_id, ctx->ac.i8, ""), in gfx10_ngg_culling_build_end()
1322 …LLVMBuildStore(builder, LLVMBuildTrunc(builder, ac_get_arg(&ctx->ac, ctx->args.tes_rel_patch_id), … in gfx10_ngg_culling_build_end()
1379 ac_build_ifcc(&ctx->ac, LLVMBuildTrunc(builder, gs_accepted, ctx->ac.i1, ""), 16011); in gfx10_ngg_culling_build_end()
1619 tmp = LLVMBuildTrunc(builder, tmp, ctx->ac.i1, ""); in gfx10_ngg_build_end()
1658 tmp = LLVMBuildTrunc(builder, tmp, ctx->ac.i1, ""); in gfx10_ngg_build_end()
1947 tmp = LLVMBuildTrunc(builder, tmp, ctx->ac.i1, ""); in gfx10_ngg_gs_emit_begin()
2048 tmp = LLVMBuildTrunc(builder, tmp, ctx->ac.i1, ""); in gfx10_ngg_gs_build_end()
2066 tmp = LLVMBuildTrunc(builder, tmp, ctx->ac.i1, ""); in gfx10_ngg_gs_build_end()
[all …]
Dsi_shader_llvm_vs.c38 return LLVMBuildSExt(ctx->ac.builder, LLVMBuildTrunc(ctx->ac.builder, i32, ctx->ac.i16, ""), in unpack_sint16()
150 out[i] = LLVMBuildTrunc(ctx->ac.builder, out[i], ctx->ac.i16, ""); in load_input_vs()
474 cond = LLVMBuildTrunc(ctx->ac.builder, cond, ctx->ac.i1, ""); in si_vertex_color_clamping()
Dsi_shader_llvm_ps.c557 bit = LLVMBuildTrunc(builder, bit, ctx->ac.i1, ""); in si_llvm_emit_polygon_stipple()
644 bc_optimize = LLVMBuildTrunc(ctx->ac.builder, bc_optimize, ctx->ac.i1, ""); in si_llvm_build_ps_prolog()
Dsi_shader_llvm_gs.c122 tmp = LLVMBuildTrunc(ctx->ac.builder, tmp, ctx->ac.i1, ""); in si_llvm_gs_build_end()
Dsi_shader_llvm.c732 indexed = LLVMBuildTrunc(ctx->ac.builder, indexed, ctx->ac.i1, ""); in si_llvm_load_intrinsic()
/third_party/mesa3d/src/amd/llvm/
Dac_llvm_build.c471 vgpr = LLVMBuildTrunc(builder, vgpr, type, ""); in ac_build_optimization_barrier()
729 num = LLVMBuildTrunc(builder, num, ctx->i32, ""); in ac_build_fast_udiv()
747 num = LLVMBuildTrunc(builder, num, ctx->i32, ""); in ac_build_fast_udiv_nuw()
761 num = LLVMBuildTrunc(builder, num, ctx->i32, ""); in ac_build_fast_udiv_u31_d_not_one()
1612 loads[dst - 1] = LLVMBuildTrunc(ctx->builder, tmp, dst_type, ""); in ac_build_opencoded_load_format()
1645 loads[0] = LLVMBuildTrunc(ctx->builder, data, i10, ""); in ac_build_opencoded_load_format()
1647 loads[1] = LLVMBuildTrunc(ctx->builder, tmp, i10, ""); in ac_build_opencoded_load_format()
1649 loads[2] = LLVMBuildTrunc(ctx->builder, tmp, i10, ""); in ac_build_opencoded_load_format()
1651 loads[3] = LLVMBuildTrunc(ctx->builder, tmp, i2, ""); in ac_build_opencoded_load_format()
1823 tl = LLVMBuildTrunc(ctx->builder, tl, ctx->i16, ""); in ac_build_ddxy()
[all …]
Dac_nir_to_llvm.c383 result = LLVMBuildTrunc(ctx->builder, dst64, ctx->i32, ""); in emit_umul_high()
396 result = LLVMBuildTrunc(ctx->builder, dst64, ctx->i32, ""); in emit_imul_high()
442 val = LLVMBuildTrunc(ctx->builder, val, ctx->i16, ""); in emit_unpack_half_2x16()
741 src[1] = LLVMBuildTrunc(ctx->ac.builder, src[1], LLVMTypeOf(src[0]), ""); in visit_alu()
750 src[1] = LLVMBuildTrunc(ctx->ac.builder, src[1], LLVMTypeOf(src[0]), ""); in visit_alu()
759 src[1] = LLVMBuildTrunc(ctx->ac.builder, src[1], LLVMTypeOf(src[0]), ""); in visit_alu()
1075 result = LLVMBuildTrunc(ctx->ac.builder, src[0], def_type, ""); in visit_alu()
1085 result = LLVMBuildTrunc(ctx->ac.builder, src[0], def_type, ""); in visit_alu()
1309 … result = LLVMBuildTrunc(ctx->ac.builder, result, LLVMIntTypeInContext(ctx->ac.context, size), ""); in visit_alu()
1733 res = LLVMBuildTrunc( in visit_load_push_constant()
[all …]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_bld_depth.c508 count = LLVMBuildTrunc(builder, count, LLVMIntTypeInContext(context, 64), ""); in lp_build_occlusion_count()
755 z_value = LLVMBuildTrunc(builder, z_value, in lp_build_depth_stencil_write_swizzled()
Dlp_state_fs.c266 mask_input = LLVMBuildTrunc(builder, mask_input, i32t, ""); in generate_quad_mask()
668 LLVMBuildTrunc(gallivm->builder, facing, in generate_fs_loop()
1785 … result = LLVMBuildTrunc(gallivm->builder, result, lp_build_int_vec_type(gallivm, src_type), ""); in scale_bits()
2153 src[i] = LLVMBuildTrunc(builder, src[i], ltypei64, ""); in convert_from_blend_type()
2257 dst[i] = LLVMBuildTrunc(builder, res, lp_build_vec_type(gallivm, dst_type), ""); in convert_from_blend_type()
/third_party/mesa3d/src/amd/vulkan/
Dradv_nir_to_llvm.c501 out[chan] = LLVMBuildTrunc(ctx->ac.builder, out[chan], ctx->ac.i16, ""); in load_vs_input()
1687 value = LLVMBuildTrunc(ctx->ac.builder, value, ctx->ac.i16, ""); in ac_gs_copy_shader_emit()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/
DCore.h3829 LLVMValueRef LLVMBuildTrunc(LLVMBuilderRef, LLVMValueRef Val,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DCore.cpp3705 LLVMValueRef LLVMBuildTrunc(LLVMBuilderRef B, LLVMValueRef Val, in LLVMBuildTrunc() function