/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_type.c | 121 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 …]
|
D | lp_bld_bitarit.c | 59 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 …]
|
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_arit.c | 471 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 …]
|
D | lp_bld_nir.c | 52 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 …]
|
D | lp_bld_format_s3tc.c | 477 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 …]
|
D | lp_bld_const.c | 227 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()
|
D | lp_bld_swizzle.c | 48 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()
|
D | lp_bld_logic.c | 288 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()
|
D | lp_bld_tgsi_soa.c | 609 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 …]
|
D | lp_bld_format_soa.c | 172 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()
|
D | lp_bld_nir_soa.c | 98 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 …]
|
D | lp_bld_tgsi_action.c | 110 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 …]
|
D | lp_bld_type.h | 154 LLVMTypeRef vec_type; member 356 lp_check_vec_type(struct lp_type type, LLVMTypeRef vec_type);
|
D | lp_bld_swizzle.h | 52 LLVMTypeRef vec_type,
|
D | lp_bld_tgsi_aos.c | 376 LLVMTypeRef vec_type = lp_build_vec_type(bld->bld_base.base.gallivm, bld->bld_base.base.type); in lp_emit_declaration_aos() local 389 vec_type, array_size, ""); in lp_emit_declaration_aos() 391 bld->temps[idx] = lp_build_alloca(gallivm, vec_type, ""); in lp_emit_declaration_aos() 396 bld->outputs[idx] = lp_build_alloca(gallivm, vec_type, ""); in lp_emit_declaration_aos() 401 bld->addr[idx] = lp_build_alloca(gallivm, vec_type, ""); in lp_emit_declaration_aos()
|
D | lp_bld_sample_soa.c | 973 weight = LLVMBuildBitCast(builder, weight, bld->vec_type, ""); in lp_build_masklerp() 974 weight2 = LLVMBuildBitCast(builder, weight2, bld->vec_type, ""); in lp_build_masklerp() 1189 xs[texel_index] = lp_build_alloca(bld->gallivm, ivec_bld->vec_type, "xs"); in lp_build_sample_image_linear() 1190 ys[texel_index] = lp_build_alloca(bld->gallivm, ivec_bld->vec_type, "ys"); in lp_build_sample_image_linear() 1191 zs[texel_index] = lp_build_alloca(bld->gallivm, ivec_bld->vec_type, "zs"); in lp_build_sample_image_linear() 1406 colorss[0] = lp_build_alloca(bld->gallivm, coord_bld->vec_type, "cs0"); in lp_build_sample_image_linear() 1407 colorss[1] = lp_build_alloca(bld->gallivm, coord_bld->vec_type, "cs1"); in lp_build_sample_image_linear() 1408 colorss[2] = lp_build_alloca(bld->gallivm, coord_bld->vec_type, "cs2"); in lp_build_sample_image_linear() 1409 colorss[3] = lp_build_alloca(bld->gallivm, coord_bld->vec_type, "cs3"); in lp_build_sample_image_linear() 1420 c00f = LLVMBuildBitCast(builder, c00, coord_bld->vec_type, ""); in lp_build_sample_image_linear() [all …]
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | type_manager.h | 164 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()
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/ |
D | type_manager.h | 164 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()
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | type_manager.h | 164 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()
|
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/transforms/ |
D | map_lmhlo_to_scalar_op.h | 142 if (VectorType vec_type = args.front().getType().dyn_cast<VectorType>()) { 143 zero_intval = b->create<::mlir::SplatOp>(loc, vec_type, zero_intval); 329 if (VectorType vec_type = args.front().getType().dyn_cast<VectorType>()) { 330 zero_intval = b->create<::mlir::SplatOp>(loc, vec_type, zero_intval); 336 if (VectorType vec_type = args.front().getType().dyn_cast<VectorType>()) { 337 zero = b->create<::mlir::SplatOp>(loc, vec_type, zero); 484 if (VectorType vec_type = args[0].getType().dyn_cast<VectorType>()) { 485 nan = b->create<::mlir::SplatOp>(loc, vec_type, nan); 576 if (VectorType vec_type = args.front().getType().dyn_cast<VectorType>()) { 577 zero_intval = b->create<::mlir::SplatOp>(loc, vec_type, zero_intval); [all …]
|
/external/mesa3d/src/compiler/ |
D | glsl_types.cpp | 1872 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/ |
D | idl_gen_text.cpp | 197 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/mesa3d/src/compiler/nir/ |
D | nir_split_vars.c | 1371 const struct glsl_type *vec_type = var->type; in shrink_vec_var_list() local 1381 assert(usage->levels[i].array_len <= glsl_get_length(vec_type)); in shrink_vec_var_list() 1382 if (usage->levels[i].array_len < glsl_get_length(vec_type)) in shrink_vec_var_list() 1384 vec_type = glsl_get_array_element(vec_type); in shrink_vec_var_list() 1386 assert(glsl_type_is_vector_or_scalar(vec_type)); in shrink_vec_var_list() 1410 glsl_vector_type(glsl_get_base_type(vec_type), new_num_comps); in shrink_vec_var_list()
|
/external/mesa3d/src/compiler/glsl/ |
D | lower_instructions.cpp | 239 const struct glsl_type *vec_type; in int_div_to_mul_rcp() local 241 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, in int_div_to_mul_rcp() 246 op1 = new(ir) ir_expression(ir_unop_i2f, vec_type, ir->operands[1], NULL); in int_div_to_mul_rcp() 248 op1 = new(ir) ir_expression(ir_unop_u2f, vec_type, ir->operands[1], NULL); in int_div_to_mul_rcp() 252 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, in int_div_to_mul_rcp() 257 op0 = new(ir) ir_expression(ir_unop_i2f, vec_type, ir->operands[0], NULL); in int_div_to_mul_rcp() 259 op0 = new(ir) ir_expression(ir_unop_u2f, vec_type, ir->operands[0], NULL); in int_div_to_mul_rcp() 261 vec_type = glsl_type::get_instance(GLSL_TYPE_FLOAT, in int_div_to_mul_rcp() 265 op0 = new(ir) ir_expression(ir_binop_mul, vec_type, op0, op1); in int_div_to_mul_rcp()
|