Home
last modified time | relevance | path

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

123

/third_party/boost/libs/stl_interfaces/test/
Dstatic_vec.cpp17 using vec_type = static_vector<int, 10>; typedef
22 vec_type v; in test_default_ctor()
35 vec_type const & cv = v; in test_default_ctor()
53 vec_type v(3); in test_other_ctors_assign_ctor()
57 vec_type v2(std::initializer_list<int>{0, 0, 0}); in test_other_ctors_assign_ctor()
63 vec_type v(il); in test_other_ctors_assign_ctor()
67 static_assert(std::is_same<decltype(v = il), vec_type &>::value, ""); in test_other_ctors_assign_ctor()
69 vec_type v2; in test_other_ctors_assign_ctor()
76 vec_type v; in test_other_ctors_assign_ctor()
83 vec_type v2; in test_other_ctors_assign_ctor()
[all …]
Dstatic_vec_noncopyable.cpp48 using vec_type = std::vector<noncopyable_int>; typedef
50 using vec_type = static_vector<noncopyable_int, 10>; typedef
56 vec_type v; in test_default_ctor()
71 vec_type const & cv = v; in test_default_ctor()
91 vec_type v(3); in test_other_ctors_assign_ctor()
97 vec_type v2(std::initializer_list<noncopyable_int>{0, 0, 0}); in test_other_ctors_assign_ctor()
102 vec_type v(il); in test_other_ctors_assign_ctor()
106 static_assert(std::is_same<decltype(v = il), vec_type &>::value, ""); in test_other_ctors_assign_ctor()
108 vec_type v2; in test_other_ctors_assign_ctor()
115 vec_type v; in test_other_ctors_assign_ctor()
[all …]
/third_party/boost/boost/qvm/
Dvec_traits_defaults.hpp60 typedef VecType vec_type; typedef
68 read_element( vec_type const & x ) in read_element()
70 return vec_traits<vec_type>::template write_element<I>(const_cast<vec_type &>(x)); in read_element()
76 read_element_idx( int i, vec_type const & x ) in read_element_idx()
78 return vec_traits<vec_type>::write_element_idx(i,const_cast<vec_type &>(x)); in read_element_idx()
86 write_element_idx( int i, vec_type & m ) in write_element_idx()
88 return qvm_detail::vector_w<0,vec_traits<vec_type>::dim>::write_element_idx(i,m); in write_element_idx()
/third_party/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_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_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_nir.c53 return LLVMBuildBitCast(builder, val, bld_base->half_bld.vec_type, ""); in cast_type()
55 return LLVMBuildBitCast(builder, val, bld_base->base.vec_type, ""); in cast_type()
57 return LLVMBuildBitCast(builder, val, bld_base->dbl_bld.vec_type, ""); in cast_type()
66 return LLVMBuildBitCast(builder, val, bld_base->int8_bld.vec_type, ""); in cast_type()
68 return LLVMBuildBitCast(builder, val, bld_base->int16_bld.vec_type, ""); in cast_type()
70 return LLVMBuildBitCast(builder, val, bld_base->int_bld.vec_type, ""); in cast_type()
72 return LLVMBuildBitCast(builder, val, bld_base->int64_bld.vec_type, ""); in cast_type()
81 return LLVMBuildBitCast(builder, val, bld_base->uint8_bld.vec_type, ""); in cast_type()
83 return LLVMBuildBitCast(builder, val, bld_base->uint16_bld.vec_type, ""); in cast_type()
86 return LLVMBuildBitCast(builder, val, bld_base->uint_bld.vec_type, ""); in cast_type()
[all …]
Dlp_bld_arit.c439 lp_format_intrinsic(intrin, sizeof intrin, intrinsic, bld->vec_type); in lp_build_add()
440 return lp_build_intrinsic_binary(builder, intrin, bld->vec_type, a, b); in lp_build_add()
763 lp_format_intrinsic(intrin, sizeof intrin, intrinsic, bld->vec_type); in lp_build_sub()
764 return lp_build_intrinsic_binary(builder, intrin, bld->vec_type, a, b); in lp_build_sub()
1125 muleven = LLVMBuildBitCast(builder, muleven, bld->vec_type, ""); in lp_build_mul_32_lohi_cpu()
1126 mulodd = LLVMBuildBitCast(builder, mulodd, bld->vec_type, ""); in lp_build_mul_32_lohi_cpu()
1366 …res = lp_build_intrinsic_binary(builder, "llvm.x86.ssse3.pmul.hr.sw.128", bld->vec_type, x, lp_bui… in lp_build_lerp_simple()
1369 …res = lp_build_intrinsic_binary(builder, "llvm.x86.avx2.pmul.hr.sw", bld->vec_type, x, lp_build_sh… in lp_build_lerp_simple()
1403 res = LLVMBuildBitCast(builder, res, narrow_bld.vec_type, ""); in lp_build_lerp_simple()
1404 v0 = LLVMBuildBitCast(builder, v0, narrow_bld.vec_type, ""); in lp_build_lerp_simple()
[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.c49 LLVMTypeRef vec_type, in lp_build_broadcast() argument
54 if (LLVMGetTypeKind(vec_type) != LLVMVectorTypeKind) { in lp_build_broadcast()
56 assert(vec_type == LLVMTypeOf(scalar)); in lp_build_broadcast()
60 const unsigned length = LLVMGetVectorSize(vec_type); in lp_build_broadcast()
61 LLVMValueRef undef = LLVMGetUndef(vec_type); in lp_build_broadcast()
66 assert(LLVMGetElementType(vec_type) == LLVMTypeOf(scalar)); in lp_build_broadcast()
85 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()
938 lp_format_intrinsic(intrin, sizeof intrin, "llvm.rint", bld->vec_type); in lp_build_insert_soa_chan()
939 rgba = lp_build_intrinsic_unary(builder, intrin, bld->vec_type, rgba); in lp_build_insert_soa_chan()
Dlp_bld_sample_soa.c974 weight = LLVMBuildBitCast(builder, weight, bld->vec_type, ""); in lp_build_masklerp()
975 weight2 = LLVMBuildBitCast(builder, weight2, bld->vec_type, ""); in lp_build_masklerp()
1190 xs[texel_index] = lp_build_alloca(bld->gallivm, ivec_bld->vec_type, "xs"); in lp_build_sample_image_linear()
1191 ys[texel_index] = lp_build_alloca(bld->gallivm, ivec_bld->vec_type, "ys"); in lp_build_sample_image_linear()
1192 zs[texel_index] = lp_build_alloca(bld->gallivm, ivec_bld->vec_type, "zs"); in lp_build_sample_image_linear()
1409 colorss[0] = lp_build_alloca(bld->gallivm, coord_bld->vec_type, "cs0"); in lp_build_sample_image_linear()
1410 colorss[1] = lp_build_alloca(bld->gallivm, coord_bld->vec_type, "cs1"); in lp_build_sample_image_linear()
1411 colorss[2] = lp_build_alloca(bld->gallivm, coord_bld->vec_type, "cs2"); in lp_build_sample_image_linear()
1412 colorss[3] = lp_build_alloca(bld->gallivm, coord_bld->vec_type, "cs3"); in lp_build_sample_image_linear()
1423 c00f = LLVMBuildBitCast(builder, c00, coord_bld->vec_type, ""); in lp_build_sample_image_linear()
[all …]
/third_party/skia/third_party/externals/tint/src/transform/
Dvectorize_scalar_matrix_constructors_test.cc35 std::string vec_type = "vec" + std::to_string(rows) + "<f32>"; in TEST_P() local
43 vector_values += vec_type + "("; in TEST_P()
76 std::string vec_type = "vec" + std::to_string(rows) + "<f32>"; in TEST_P() local
82 columns += vec_type + "()"; in TEST_P()
/third_party/spirv-tools/source/opt/
Dtype_manager.h164 Vector vec_type(GetUIntType(), size); in GetUIntVectorType()
165 return GetRegisteredType(&vec_type); in GetUIntVectorType()
173 Vector vec_type(GetSIntType(), size); in GetSIntVectorType()
174 return GetRegisteredType(&vec_type); in GetSIntVectorType()
182 Vector vec_type(GetFloatType(), size); in GetFloatVectorType()
183 return GetRegisteredType(&vec_type); in GetFloatVectorType()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dtype_manager.h164 Vector vec_type(GetUIntType(), size); in GetUIntVectorType()
165 return GetRegisteredType(&vec_type); in GetUIntVectorType()
173 Vector vec_type(GetSIntType(), size); in GetSIntVectorType()
174 return GetRegisteredType(&vec_type); in GetSIntVectorType()
182 Vector vec_type(GetFloatType(), size); in GetFloatVectorType()
183 return GetRegisteredType(&vec_type); in GetFloatVectorType()
/third_party/skia/third_party/externals/swiftshader/third_party/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()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_fs_linear_llvm.c115 assert(LLVMTypeOf(texel) == bld->vec_type); in emit_fetch_texel_linear()
171 assert(LLVMTypeOf(input) == bld->vec_type); in llvm_fragment_body()
218 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, fs_type); in llvm_fragment_body() local
219 LLVMValueRef broadcast_alpha = lp_build_broadcast(gallivm, vec_type, alpha_ref); in llvm_fragment_body()
364 color0_ptr = LLVMBuildBitCast(builder, color0_ptr, LLVMPointerType(bld.vec_type, 0), ""); in llvmpipe_fs_variant_linear_llvm()
498 buf = LLVMBuildBitCast(builder, buf, bld.vec_type, ""); in llvmpipe_fs_variant_linear_llvm()
/third_party/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()
/third_party/cef/tools/
Dmake_ctocpp_impl.py263 vec_type = arg.get_type().get_result_vector_type_root()
275 '\n '+vec_type+'* '+arg_name+'List = NULL;'\
277 '\n '+arg_name+'List = new '+vec_type+'['+arg_name+'Count];'\
280 '\n memset('+arg_name+'List, 0, sizeof('+vec_type+')*'+arg_name+'Count);'\
294 vec_type = arg.get_type().get_result_vector_type_root()
309 '\n '+vec_type+'* '+arg_name+'List = NULL;'\
311 '\n '+arg_name+'List = new '+vec_type+'['+arg_name+'Count];'\
430 vec_type = arg.get_type().get_result_vector_type_root()
Dmake_cpptoc_impl.py255 vec_type = arg.get_type().get_vector_type()
267 '\n std::vector<'+vec_type+' > '+arg_name+'List;'\
277 vec_type = arg.get_type().get_vector_type()
293 '\n std::vector<'+vec_type+' > '+arg_name+'List;'\
296 '\n '+vec_type+' '+arg_name+'Val = '+assign+';'\
/third_party/mesa3d/src/compiler/
Dglsl_types.cpp1949 const struct glsl_type *vec_type, *array_type; in std140_base_alignment() local
1954 vec_type = get_instance(base_type, c, 1); in std140_base_alignment()
1955 array_type = glsl_type::get_array_instance(vec_type, r); in std140_base_alignment()
1957 vec_type = get_instance(base_type, r, 1); in std140_base_alignment()
1958 array_type = glsl_type::get_array_instance(vec_type, c); in std140_base_alignment()
2039 const struct glsl_type *vec_type; in std140_size() local
2051 vec_type = get_instance(element_type->base_type, in std140_size()
2056 vec_type = get_instance(element_type->base_type, in std140_size()
2060 const glsl_type *array_type = glsl_type::get_array_instance(vec_type, in std140_size()
2147 const glsl_type *vec_type; in get_explicit_std140_type() local
[all …]
/third_party/skia/third_party/externals/tint/src/resolver/
Dtype_constructor_validation_test.cc1774 auto* vec_type = ty.vec(ty.Of(f32_alias), 2); in TEST_F() local
1776 Construct(Source{{12, 34}}, vec_type, 1.0f, Expr(Source{{12, 40}}, 1u)); in TEST_F()
1790 auto* vec_type = ty.vec(ty.Of(f32_alias), 2); in TEST_F() local
1791 auto* tc = Construct(Source{{12, 34}}, vec_type, 1.0f, 1.0f); in TEST_F()
1802 auto* vec_type = ty.vec(ty.Of(f32_alias), 2); in TEST_F() local
1803 auto* tc = vec3<u32>(Construct(Source{{12, 34}}, vec_type), 1.0f); in TEST_F()
1817 auto* vec_type = ty.vec(ty.Of(f32_alias), 2); in TEST_F() local
1818 auto* tc = vec3<f32>(Construct(Source{{12, 34}}, vec_type), 1.0f); in TEST_F()
1846 auto* vec_type = ty.vec<f32>(param.rows); in TEST_P() local
1847 args.push_back(Construct(Source{{12, i}}, vec_type)); in TEST_P()
[all …]

123