Home
last modified time | relevance | path

Searched refs:vec_type (Results 1 – 25 of 32) sorted by relevance

12

/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_type.c121 lp_check_vec_type(struct lp_type type, LLVMTypeRef vec_type) in lp_check_vec_type() argument
125 assert(vec_type); in lp_check_vec_type()
126 if(!vec_type) in lp_check_vec_type()
130 return lp_check_elem_type(type, vec_type); in lp_check_vec_type()
132 if(LLVMGetTypeKind(vec_type) != LLVMVectorTypeKind) in lp_check_vec_type()
135 if(LLVMGetVectorSize(vec_type) != type.length) in lp_check_vec_type()
138 elem_type = LLVMGetElementType(vec_type); in lp_check_vec_type()
147 LLVMTypeRef vec_type; in lp_check_value() local
153 vec_type = LLVMTypeOf(val); in lp_check_value()
155 return lp_check_vec_type(type, vec_type); in lp_check_value()
[all …]
Dlp_bld_format_float.c99 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 …]
Dlp_bld_arit.c1203 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()
1463 res = LLVMBuildBitCast(builder, res, narrow_bld.vec_type, ""); in lp_build_lerp_simple()
1464 v0 = LLVMBuildBitCast(builder, v0, narrow_bld.vec_type, ""); in lp_build_lerp_simple()
1466 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_lerp_simple()
1776 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); in lp_build_abs() local
1791 a = LLVMBuildBitCast(builder, a, vec_type, ""); in lp_build_abs()
1795 lp_format_intrinsic(intrinsic, sizeof intrinsic, "llvm.fabs", vec_type); in lp_build_abs()
1796 return lp_build_intrinsic_unary(builder, intrinsic, vec_type, a); in lp_build_abs()
1803 return lp_build_intrinsic_unary(builder, "llvm.x86.ssse3.pabs.b.128", vec_type, a); in lp_build_abs()
[all …]
Dlp_bld_bitarit.c59 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_or()
85 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_xor()
113 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_and()
143 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_andnot()
164 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_not()
Dlp_bld_const.c227 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); in lp_build_undef() local
228 return LLVMGetUndef(vec_type); in lp_build_undef()
242 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); in lp_build_zero() local
243 return LLVMConstNull(vec_type); in lp_build_zero()
272 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); in lp_build_one() local
273 LLVMValueRef vec = LLVMConstAllOnes(vec_type); in lp_build_one()
Dlp_bld_swizzle.c48 LLVMTypeRef vec_type, in lp_build_broadcast() argument
53 if (LLVMGetTypeKind(vec_type) != LLVMVectorTypeKind) { in lp_build_broadcast()
55 assert(vec_type == LLVMTypeOf(scalar)); in lp_build_broadcast()
59 const unsigned length = LLVMGetVectorSize(vec_type); in lp_build_broadcast()
60 LLVMValueRef undef = LLVMGetUndef(vec_type); in lp_build_broadcast()
65 assert(LLVMGetElementType(vec_type) == LLVMTypeOf(scalar)); in lp_build_broadcast()
84 return lp_build_broadcast(bld->gallivm, bld->vec_type, scalar); in lp_build_broadcast_scalar()
Dlp_bld_tgsi_soa.c1018 res = LLVMBuildBitCast(builder, res, bld_base->dbl_bld.vec_type, ""); in build_gather()
1121 rel = LLVMBuildBitCast(builder, rel, uint_bld->vec_type, ""); in get_indirect_index()
1309 res = LLVMBuildBitCast(builder, res, bld_fetch->vec_type, ""); in emit_fetch_constant()
1345 return LLVMBuildBitCast(builder, res, bld_fetch->vec_type, ""); in emit_fetch_64bit()
1422 res = LLVMBuildBitCast(builder, res, bld_fetch->vec_type, ""); in emit_fetch_immediate()
1499 res = LLVMBuildBitCast(builder, res, bld_fetch->vec_type, ""); in emit_fetch_input()
1528 res = LLVMBuildBitCast(builder, res, bld_base->base.vec_type, ""); in emit_fetch_gs_input()
1571 res = LLVMBuildBitCast(builder, res, bld_base->uint_bld.vec_type, ""); in emit_fetch_gs_input()
1573 res = LLVMBuildBitCast(builder, res, bld_base->int_bld.vec_type, ""); in emit_fetch_gs_input()
1640 res = LLVMBuildBitCast(builder, res, bld_fetch->vec_type, ""); in emit_fetch_temporary()
[all …]
Dlp_bld_logic.c285 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); in lp_build_select_bitwise() local
286 res = LLVMBuildBitCast(builder, res, vec_type, ""); in lp_build_select_bitwise()
398 if (arg_type != bld->vec_type) { in lp_build_select()
410 if (arg_type != bld->vec_type) { in lp_build_select()
411 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_select()
Dlp_bld_format_soa.c170 input = LLVMBuildSIToFP(builder, input, bld->vec_type, ""); in lp_build_extract_soa_chan()
204 input = LLVMBuildSIToFP(builder, input, bld->vec_type, ""); in lp_build_extract_soa_chan()
244 input = LLVMBuildBitCast(builder, input, bld->vec_type, ""); in lp_build_extract_soa_chan()
257 input = LLVMBuildSIToFP(builder, input, bld->vec_type, ""); in lp_build_extract_soa_chan()
618 packed[i] = LLVMBuildFPTrunc(builder, packed[i], bld.vec_type, ""); in lp_build_fetch_rgba_soa()
Dlp_bld_tgsi_action.c110 bld_base->uint_bld.vec_type, ""); in arr_emit()
796 bld_base->base.vec_type, ""); in u2f_emit()
985 bld_base->base.vec_type, ""); in d2f_emit()
1024 bld_base->dbl_bld.vec_type, ""); in f2d_emit()
1037 bld_base->dbl_bld.vec_type, ""); in u2d_emit()
1050 bld_base->dbl_bld.vec_type, ""); in i2d_emit()
1211 bld_base->uint64_bld.vec_type, ""); in f2u64_emit()
1223 bld_base->int64_bld.vec_type, ""); in f2i64_emit()
1235 bld_base->uint64_bld.vec_type, ""); in u2i64_emit()
1247 bld_base->int64_bld.vec_type, ""); in i2i64_emit()
[all …]
Dlp_bld_tgsi_aos.c417 LLVMTypeRef vec_type = lp_build_vec_type(bld->bld_base.base.gallivm, bld->bld_base.base.type); in lp_emit_declaration_aos() local
430 vec_type, array_size, ""); in lp_emit_declaration_aos()
432 bld->temps[idx] = lp_build_alloca(gallivm, vec_type, ""); in lp_emit_declaration_aos()
437 bld->outputs[idx] = lp_build_alloca(gallivm, vec_type, ""); in lp_emit_declaration_aos()
442 bld->addr[idx] = lp_build_alloca(gallivm, vec_type, ""); in lp_emit_declaration_aos()
447 bld->preds[idx] = lp_build_alloca(gallivm, vec_type, ""); in lp_emit_declaration_aos()
Dlp_bld_sample_soa.c829 weight = LLVMBuildBitCast(builder, weight, bld->vec_type, ""); in lp_build_masklerp()
830 weight2 = LLVMBuildBitCast(builder, weight2, bld->vec_type, ""); in lp_build_masklerp()
1025 xs[texel_index] = lp_build_alloca(bld->gallivm, ivec_bld->vec_type, "xs"); in lp_build_sample_image_linear()
1026 ys[texel_index] = lp_build_alloca(bld->gallivm, ivec_bld->vec_type, "ys"); in lp_build_sample_image_linear()
1027 zs[texel_index] = lp_build_alloca(bld->gallivm, ivec_bld->vec_type, "zs"); in lp_build_sample_image_linear()
1243 colorss[0] = lp_build_alloca(bld->gallivm, coord_bld->vec_type, "cs"); in lp_build_sample_image_linear()
1244 colorss[1] = lp_build_alloca(bld->gallivm, coord_bld->vec_type, "cs"); in lp_build_sample_image_linear()
1245 colorss[2] = lp_build_alloca(bld->gallivm, coord_bld->vec_type, "cs"); in lp_build_sample_image_linear()
1246 colorss[3] = lp_build_alloca(bld->gallivm, coord_bld->vec_type, "cs"); in lp_build_sample_image_linear()
1285 c00 = LLVMBuildBitCast(builder, c00, coord_bld->vec_type, ""); in lp_build_sample_image_linear()
[all …]
Dlp_bld_type.h154 LLVMTypeRef vec_type; member
356 lp_check_vec_type(struct lp_type type, LLVMTypeRef vec_type);
Dlp_bld_swizzle.h52 LLVMTypeRef vec_type,
Dlp_bld_gather.c565 LLVMTypeRef vec_type = LLVMVectorType(LLVMTypeOf(values[0]), value_count); in lp_build_gather_values() local
567 LLVMValueRef vec = LLVMGetUndef(vec_type); in lp_build_gather_values()
Dlp_bld_conv.c371 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, dst_type); in lp_build_unsigned_norm_to_float() local
394 res = LLVMBuildSIToFP(builder, src, vec_type, ""); in lp_build_unsigned_norm_to_float()
426 res = LLVMBuildBitCast(builder, res, vec_type, ""); in lp_build_unsigned_norm_to_float()
Dlp_bld_sample.c1133 lf = LLVMBuildBitCast(builder, lf, fbld.vec_type, ""); in lp_build_minify()
1637 LLVMTypeRef coord_vec_type = coord_bld->vec_type; in lp_build_cube_lookup()
1638 LLVMTypeRef cint_vec_type = cint_bld->vec_type; in lp_build_cube_lookup()
/external/mesa3d/src/compiler/
Dglsl_types.cpp1494 const struct glsl_type *vec_type, *array_type; in std140_base_alignment() local
1499 vec_type = get_instance(base_type, c, 1); in std140_base_alignment()
1500 array_type = glsl_type::get_array_instance(vec_type, r); in std140_base_alignment()
1502 vec_type = get_instance(base_type, r, 1); in std140_base_alignment()
1503 array_type = glsl_type::get_array_instance(vec_type, c); in std140_base_alignment()
1583 const struct glsl_type *vec_type; in std140_size() local
1595 vec_type = get_instance(element_type->base_type, in std140_size()
1600 vec_type = get_instance(element_type->base_type, in std140_size()
1604 const glsl_type *array_type = glsl_type::get_array_instance(vec_type, in std140_size()
1740 const struct glsl_type *vec_type, *array_type; in std430_base_alignment() local
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_bld_interp.c198 LLVMPointerType(setup_bld->vec_type, 0), ""); in coeffs_init_simple()
203 LLVMPointerType(setup_bld->vec_type, 0), ""); in coeffs_init_simple()
214 LLVMPointerType(setup_bld->vec_type, 0), ""); in coeffs_init_simple()
410 LLVMPointerType(setup_bld->vec_type, 0), ""); in coeffs_init()
415 LLVMPointerType(setup_bld->vec_type, 0), ""); in coeffs_init()
426 LLVMPointerType(setup_bld->vec_type, 0), ""); in coeffs_init()
Dlp_test_blend.c141 LLVMTypeRef vec_type; in add_blend_test() local
160 vec_type = lp_build_vec_type(gallivm, type); in add_blend_test()
162 args[4] = args[3] = args[2] = args[1] = args[0] = LLVMPointerType(vec_type, 0); in add_blend_test()
Dlp_bld_depth.c732 s_value = LLVMBuildBitCast(builder, s_value, z_bld.vec_type, ""); in lp_build_depth_stencil_write_swizzled()
739 s_fb = LLVMBuildBitCast(builder, s_fb, z_bld.vec_type, ""); in lp_build_depth_stencil_write_swizzled()
990 front_facing = lp_build_broadcast(gallivm, s_bld.vec_type, face); in lp_build_depth_stencil_test()
Dlp_state_setup.c291 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()
498 LLVMTypeRef float_vec_type = args->bld.vec_type; in emit_apply_cyl_wrap()
/external/mesa3d/src/compiler/glsl/
Dlower_instructions.cpp228 const struct glsl_type *vec_type; in int_div_to_mul_rcp() local
230 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, in int_div_to_mul_rcp()
235 op1 = new(ir) ir_expression(ir_unop_i2f, vec_type, ir->operands[1], NULL); in int_div_to_mul_rcp()
237 op1 = new(ir) ir_expression(ir_unop_u2f, vec_type, ir->operands[1], NULL); in int_div_to_mul_rcp()
241 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, in int_div_to_mul_rcp()
246 op0 = new(ir) ir_expression(ir_unop_i2f, vec_type, ir->operands[0], NULL); in int_div_to_mul_rcp()
248 op0 = new(ir) ir_expression(ir_unop_u2f, vec_type, ir->operands[0], NULL); in int_div_to_mul_rcp()
250 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, in int_div_to_mul_rcp()
254 op0 = new(ir) ir_expression(ir_binop_mul, vec_type, op0, op1); in int_div_to_mul_rcp()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUInstructions.td510 class Extract_Element <ValueType sub_type, ValueType vec_type, int sub_idx,
513 (sub_type (extractelt vec_type:$src, sub_idx)),
518 class Insert_Element <ValueType elem_type, ValueType vec_type,
521 (insertelt vec_type:$vec, elem_type:$elem, sub_idx),
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader_tgsi_setup.c843 LLVMArrayType(bld_base->base.vec_type, in emit_declaration()
861 bld_base->base.vec_type, in emit_declaration()
880 bld_base->base.vec_type, "undef"); in emit_declaration()

12