Home
last modified time | relevance | path

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

123

/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_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()
251 lp_format_intrinsic(intr_str, sizeof(intr_str), "llvm.ctpop", bld->vec_type); in lp_build_popcount()
252 result = lp_build_intrinsic_unary(builder, intr_str, bld->vec_type, a); in lp_build_popcount()
263 lp_format_intrinsic(intr_str, sizeof(intr_str), "llvm.bitreverse", bld->vec_type); in lp_build_bitfield_reverse()
264 result = lp_build_intrinsic_unary(builder, intr_str, bld->vec_type, a); in lp_build_bitfield_reverse()
275 lp_format_intrinsic(intr_str, sizeof(intr_str), "llvm.cttz", bld->vec_type); in lp_build_cttz()
[all …]
Dlp_bld_arit.c471 lp_format_intrinsic(intrin, sizeof intrin, intrinsic, bld->vec_type); in lp_build_add()
472 return lp_build_intrinsic_binary(builder, intrin, bld->vec_type, a, b); in lp_build_add()
795 lp_format_intrinsic(intrin, sizeof intrin, intrinsic, bld->vec_type); in lp_build_sub()
796 return lp_build_intrinsic_binary(builder, intrin, bld->vec_type, a, b); in lp_build_sub()
1157 muleven = LLVMBuildBitCast(builder, muleven, bld->vec_type, ""); in lp_build_mul_32_lohi_cpu()
1158 mulodd = LLVMBuildBitCast(builder, mulodd, bld->vec_type, ""); in lp_build_mul_32_lohi_cpu()
1422 res = LLVMBuildBitCast(builder, res, narrow_bld.vec_type, ""); in lp_build_lerp_simple()
1423 v0 = LLVMBuildBitCast(builder, v0, narrow_bld.vec_type, ""); in lp_build_lerp_simple()
1425 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_lerp_simple()
1735 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); in lp_build_abs() local
[all …]
Dlp_bld_nir.c52 return LLVMBuildBitCast(builder, val, bld_base->base.vec_type, ""); in cast_type()
54 return LLVMBuildBitCast(builder, val, bld_base->dbl_bld.vec_type, ""); in cast_type()
63 return LLVMBuildBitCast(builder, val, bld_base->int8_bld.vec_type, ""); in cast_type()
65 return LLVMBuildBitCast(builder, val, bld_base->int16_bld.vec_type, ""); in cast_type()
67 return LLVMBuildBitCast(builder, val, bld_base->int_bld.vec_type, ""); in cast_type()
69 return LLVMBuildBitCast(builder, val, bld_base->int64_bld.vec_type, ""); in cast_type()
78 return LLVMBuildBitCast(builder, val, bld_base->uint8_bld.vec_type, ""); in cast_type()
80 return LLVMBuildBitCast(builder, val, bld_base->uint16_bld.vec_type, ""); in cast_type()
82 return LLVMBuildBitCast(builder, val, bld_base->uint_bld.vec_type, ""); in cast_type()
84 return LLVMBuildBitCast(builder, val, bld_base->uint64_bld.vec_type, ""); in cast_type()
[all …]
Dlp_bld_format_s3tc.c477 bld8->vec_type, intrargs, 2, 0); in lp_build_pavgb()
497 res = LLVMBuildTrunc(builder, res, bld8->vec_type, ""); in lp_build_pavgb()
625 colors0 = LLVMBuildBitCast(builder, color0, bld8.vec_type, ""); in s3tc_dxt1_full_to_rgba_aos()
626 colors1 = LLVMBuildBitCast(builder, color1, bld8.vec_type, ""); in s3tc_dxt1_full_to_rgba_aos()
629 color2 = LLVMBuildBitCast(builder, color2, bld32.vec_type, ""); in s3tc_dxt1_full_to_rgba_aos()
630 color3 = LLVMBuildBitCast(builder, color3, bld32.vec_type, ""); in s3tc_dxt1_full_to_rgba_aos()
648 color2_2 = LLVMBuildBitCast(builder, color2_2, bld32.vec_type, ""); in s3tc_dxt1_full_to_rgba_aos()
675 color2_2 = LLVMBuildBitCast(builder, color2_2, bld32.vec_type, ""); in s3tc_dxt1_full_to_rgba_aos()
731 return LLVMBuildBitCast(builder, rgba, bld8.vec_type, ""); in s3tc_dxt1_full_to_rgba_aos()
790 rgba = LLVMBuildBitCast(builder, rgba, bld.vec_type, ""); in s3tc_dxt3_to_rgba_aos()
[all …]
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_logic.c288 LLVMTypeRef vec_type = lp_build_vec_type(bld->gallivm, type); in lp_build_select_bitwise() local
289 res = LLVMBuildBitCast(builder, res, vec_type, ""); in lp_build_select_bitwise()
404 if (arg_type != bld->vec_type) { in lp_build_select()
416 if (arg_type != bld->vec_type) { in lp_build_select()
417 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_select()
Dlp_bld_tgsi_soa.c609 res = LLVMBuildBitCast(builder, res, bld_base->dbl_bld.vec_type, ""); in build_gather()
703 rel = LLVMBuildBitCast(builder, rel, uint_bld->vec_type, ""); in get_indirect_index()
914 res = LLVMBuildBitCast(builder, res, bld_fetch->vec_type, ""); in emit_fetch_constant()
950 return LLVMBuildBitCast(builder, res, bld_fetch->vec_type, ""); in emit_fetch_64bit()
1028 res = LLVMBuildBitCast(builder, res, bld_fetch->vec_type, ""); in emit_fetch_immediate()
1107 res = LLVMBuildBitCast(builder, res, bld_fetch->vec_type, ""); in emit_fetch_input()
1137 res = LLVMBuildBitCast(builder, res, bld_base->base.vec_type, ""); in emit_fetch_gs_input()
1194 res = LLVMBuildBitCast(builder, res, bld_base->uint_bld.vec_type, ""); in emit_fetch_gs_input()
1196 res = LLVMBuildBitCast(builder, res, bld_base->int_bld.vec_type, ""); in emit_fetch_gs_input()
1225 res = LLVMBuildBitCast(builder, res, bld_base->base.vec_type, ""); in emit_fetch_tcs_input()
[all …]
Dlp_bld_format_soa.c172 input = LLVMBuildUIToFP(builder, input, bld->vec_type, ""); in lp_build_extract_soa_chan()
206 input = LLVMBuildSIToFP(builder, input, bld->vec_type, ""); in lp_build_extract_soa_chan()
246 input = LLVMBuildBitCast(builder, input, bld->vec_type, ""); in lp_build_extract_soa_chan()
259 input = LLVMBuildSIToFP(builder, input, bld->vec_type, ""); in lp_build_extract_soa_chan()
619 packed[i] = LLVMBuildFPTrunc(builder, packed[i], bld.vec_type, ""); in lp_build_fetch_rgba_soa()
909 chan = LLVMBuildFPToSI(builder, rgba, bld->vec_type, ""); in lp_build_insert_soa_chan()
930 lp_format_intrinsic(intrin, sizeof intrin, "llvm.rint", bld->vec_type); in lp_build_insert_soa_chan()
931 rgba = lp_build_intrinsic_unary(builder, intrin, bld->vec_type, rgba); in lp_build_insert_soa_chan()
Dlp_bld_nir_soa.c98 return LLVMBuildBitCast(builder, res, bld_base->dbl_bld.vec_type, ""); in emit_fetch_64bit()
258 res = LLVMBuildBitCast(builder, res, bld_base->dbl_bld.vec_type, ""); in build_gather()
531 dst = LLVMBuildBitCast(builder, dst, float_bld->vec_type, ""); in emit_store_chan()
591 chan_val = LLVMBuildBitCast(builder, chan_val, bld_base->base.vec_type, ""); in emit_store_tcs_chan()
707 dst[i] = LLVMBuildBitCast(builder, dst[i], reg_bld->vec_type, ""); in emit_store_reg()
716 dst[i] = LLVMBuildBitCast(builder, dst[i], reg_bld->vec_type, ""); in emit_store_reg()
790 LLVMValueRef result = lp_build_alloca(gallivm, res_bld->vec_type, ""); in emit_load_global()
882 uint_bld->vec_type, ""); in emit_atomic_global()
1045 LLVMValueRef result = lp_build_alloca(gallivm, load_bld->vec_type, ""); in emit_load_mem()
1175 uint_bld->vec_type, ""); in emit_atomic_mem()
[all …]
Dlp_bld_tgsi_action.c110 bld_base->uint_bld.vec_type, ""); in arr_emit()
712 bld_base->base.vec_type, ""); in u2f_emit()
846 bld_base->base.vec_type, ""); in d2f_emit()
885 bld_base->dbl_bld.vec_type, ""); in f2d_emit()
898 bld_base->dbl_bld.vec_type, ""); in u2d_emit()
911 bld_base->dbl_bld.vec_type, ""); in i2d_emit()
1072 bld_base->uint64_bld.vec_type, ""); in f2u64_emit()
1084 bld_base->int64_bld.vec_type, ""); in f2i64_emit()
1096 bld_base->uint64_bld.vec_type, ""); in u2i64_emit()
1108 bld_base->int64_bld.vec_type, ""); in i2i64_emit()
[all …]
Dlp_bld_type.h154 LLVMTypeRef vec_type; member
356 lp_check_vec_type(struct lp_type type, LLVMTypeRef vec_type);
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/
Dliveness.cpp110 auto vec_type = type->AsVector(); in GetLocSize() local
111 if (vec_type) { in GetLocSize()
112 auto comp_type = vec_type->element_type(); in GetLocSize()
119 auto comp_cnt = vec_type->element_count(); in GetLocSize()
134 auto vec_type = agg_type->AsVector(); in GetComponentType() local
135 assert(vec_type && "unexpected non-aggregate type"); in GetComponentType()
136 return vec_type->element_type(); in GetComponentType()
156 auto vec_type = agg_type->AsVector(); in GetLocOffset() local
157 assert(vec_type && "unexpected non-aggregate type"); in GetLocOffset()
158 auto comp_type = vec_type->element_type(); in GetLocOffset()
Dtype_manager.h175 Vector vec_type(GetUIntType(), size); in GetUIntVectorType()
176 return GetRegisteredType(&vec_type); in GetUIntVectorType()
184 Vector vec_type(GetSIntType(), size); in GetSIntVectorType()
185 return GetRegisteredType(&vec_type); in GetSIntVectorType()
193 Vector vec_type(GetFloatType(), size); in GetFloatVectorType()
194 return GetRegisteredType(&vec_type); in GetFloatVectorType()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dliveness.cpp110 auto vec_type = type->AsVector(); in GetLocSize() local
111 if (vec_type) { in GetLocSize()
112 auto comp_type = vec_type->element_type(); in GetLocSize()
119 auto comp_cnt = vec_type->element_count(); in GetLocSize()
134 auto vec_type = agg_type->AsVector(); in GetComponentType() local
135 assert(vec_type && "unexpected non-aggregate type"); in GetComponentType()
136 return vec_type->element_type(); in GetComponentType()
156 auto vec_type = agg_type->AsVector(); in GetLocOffset() local
157 assert(vec_type && "unexpected non-aggregate type"); in GetLocOffset()
158 auto comp_type = vec_type->element_type(); in GetLocOffset()
Dtype_manager.h176 Vector vec_type(GetUIntType(), size); in GetUIntVectorType()
177 return GetRegisteredType(&vec_type); in GetUIntVectorType()
185 Vector vec_type(GetSIntType(), size); in GetSIntVectorType()
186 return GetRegisteredType(&vec_type); in GetSIntVectorType()
194 Vector vec_type(GetFloatType(), size); in GetFloatVectorType()
195 return GetRegisteredType(&vec_type); in GetFloatVectorType()
/external/ComputeLibrary/src/core/NEON/kernels/arm_conv/depthwise/interleaves/
D8b_mla.cpp28 const VLType vec_type, in generic_get_packed_size() argument
35 const auto per_iter = acc_depth * arm_gemm::utils::get_vector_length<int32_t>(vec_type); in generic_get_packed_size()
40 const VLType vec_type, in generic_pack() argument
59 const auto per_iter = acc_depth * arm_gemm::utils::get_vector_length<int32_t>(vec_type); in generic_pack()
D8b_mla.hpp34 const VLType vec_type,
42 const VLType vec_type,
/external/deqp-deps/SPIRV-Tools/source/opt/
Dtype_manager.h171 Vector vec_type(GetUIntType(), size); in GetUIntVectorType()
172 return GetRegisteredType(&vec_type); in GetUIntVectorType()
180 Vector vec_type(GetSIntType(), size); in GetSIntVectorType()
181 return GetRegisteredType(&vec_type); in GetSIntVectorType()
189 Vector vec_type(GetFloatType(), size); in GetFloatVectorType()
190 return GetRegisteredType(&vec_type); in GetFloatVectorType()
/external/linux-kselftest/tools/testing/selftests/arm64/fp/
Dsve-ptrace.c31 struct vec_type { struct
39 static const struct vec_type vec_types[] = { argument
83 static struct user_sve_header *get_sve(pid_t pid, const struct vec_type *type, in get_sve()
121 static int set_sve(pid_t pid, const struct vec_type *type, in set_sve()
132 static void ptrace_set_get_inherit(pid_t child, const struct vec_type *type) in ptrace_set_get_inherit()
186 static void ptrace_set_get_vl(pid_t child, const struct vec_type *type, in ptrace_set_get_vl()
243 static void ptrace_sve_fpsimd(pid_t child, const struct vec_type *type) in ptrace_sve_fpsimd()
304 const struct vec_type *type, in ptrace_set_sve_get_sve_data()
402 const struct vec_type *type, in ptrace_set_sve_get_fpsimd_data()
/external/mesa3d/src/compiler/
Dglsl_types.cpp1872 const struct glsl_type *vec_type, *array_type; in std140_base_alignment() local
1877 vec_type = get_instance(base_type, c, 1); in std140_base_alignment()
1878 array_type = glsl_type::get_array_instance(vec_type, r); in std140_base_alignment()
1880 vec_type = get_instance(base_type, r, 1); in std140_base_alignment()
1881 array_type = glsl_type::get_array_instance(vec_type, c); in std140_base_alignment()
1962 const struct glsl_type *vec_type; in std140_size() local
1974 vec_type = get_instance(element_type->base_type, in std140_size()
1979 vec_type = get_instance(element_type->base_type, in std140_size()
1983 const glsl_type *array_type = glsl_type::get_array_instance(vec_type, in std140_size()
2070 const glsl_type *vec_type; in get_explicit_std140_type() local
[all …]
/external/flatbuffers/src/
Didl_gen_text.cpp197 const auto vec_type = type.VectorType(); in PrintOffset() local
200 switch (vec_type.base_type) { in PrintOffset()
204 val, vec_type, indent, prev_val)) { \ in PrintOffset()
215 const auto vec_type = type.VectorType(); in PrintOffset() local
218 switch (vec_type.base_type) { in PrintOffset()
222 val, type.fixed_length, vec_type, indent)) { \ in PrintOffset()
/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Ddata_type.cc28 const std::string& vec_type, int vec_size) { in ToGlslType() argument
29 return vec_size == 1 ? scalar_type : absl::StrCat(vec_type, vec_size); in ToGlslType()

123