Home
last modified time | relevance | path

Searched refs:LLVMTypeOf (Results 1 – 25 of 33) sorted by relevance

12

/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_struct.c53 assert(LLVMGetTypeKind(LLVMTypeOf(ptr)) == LLVMPointerTypeKind); in lp_build_struct_get_ptr()
54 assert(LLVMGetTypeKind(LLVMGetElementType(LLVMTypeOf(ptr))) == LLVMStructTypeKind); in lp_build_struct_get_ptr()
71 assert(LLVMGetTypeKind(LLVMTypeOf(ptr)) == LLVMPointerTypeKind); in lp_build_struct_get()
72 assert(LLVMGetTypeKind(LLVMGetElementType(LLVMTypeOf(ptr))) == LLVMStructTypeKind); in lp_build_struct_get()
87 assert(LLVMGetTypeKind(LLVMTypeOf(ptr)) == LLVMPointerTypeKind); in lp_build_array_get_ptr()
88 assert(LLVMGetTypeKind(LLVMGetElementType(LLVMTypeOf(ptr))) == LLVMArrayTypeKind); in lp_build_array_get_ptr()
107 assert(LLVMGetTypeKind(LLVMTypeOf(ptr)) == LLVMPointerTypeKind); in lp_build_array_get()
108 assert(LLVMGetTypeKind(LLVMGetElementType(LLVMTypeOf(ptr))) == LLVMArrayTypeKind); in lp_build_array_get()
125 assert(LLVMGetTypeKind(LLVMTypeOf(ptr)) == LLVMPointerTypeKind); in lp_build_array_set()
126 assert(LLVMGetTypeKind(LLVMGetElementType(LLVMTypeOf(ptr))) == LLVMArrayTypeKind); in lp_build_array_set()
[all …]
Dlp_bld_flow.c226 state->counter_var = lp_build_alloca(gallivm, LLVMTypeOf(start), "loop_counter"); in lp_build_loop_begin()
251 step = LLVMConstInt(LLVMTypeOf(end), 1, 0); in lp_build_loop_end_cond()
298 assert(LLVMTypeOf(start) == LLVMTypeOf(end)); in lp_build_for_loop_begin()
299 assert(LLVMTypeOf(start) == LLVMTypeOf(step)); in lp_build_for_loop_begin()
303 state->counter_var = lp_build_alloca(gallivm, LLVMTypeOf(start), "loop_counter"); in lp_build_for_loop_begin()
Dlp_bld_arit_overflow.c74 debug_assert(LLVMTypeOf(a) == LLVMTypeOf(b)); in build_binary_int_overflow()
75 type_ref = LLVMTypeOf(a); in build_binary_int_overflow()
Dlp_bld_assert.c88 assert(LLVMTypeOf(args[0]) == arg_types[0]); in lp_build_assert()
89 assert(LLVMTypeOf(args[1]) == arg_types[1]); in lp_build_assert()
Dlp_bld_gather.c58 assert(LLVMTypeOf(base_ptr) == LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0)); in lp_build_gather_elem_ptr()
96 assert(LLVMTypeOf(base_ptr) == LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0)); in lp_build_gather_elem()
177 assert(LLVMTypeOf(base_ptr) == LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0)); in lp_build_gather_elem_vec()
275 assert(LLVMTypeOf(base_ptr) == LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0)); in lp_build_gather_avx2()
298 assert(LLVMTypeOf(offsets) == i32_vec_type); in lp_build_gather_avx2()
565 LLVMTypeRef vec_type = LLVMVectorType(LLVMTypeOf(values[0]), value_count); in lp_build_gather_values()
Dlp_bld_printf.c57 assert(LLVMTypeOf(args[0]) == LLVMPointerType(LLVMInt8TypeInContext(context), 0)); in lp_build_print_args()
61 LLVMTypeRef type = LLVMTypeOf(args[i]); in lp_build_print_args()
92 type_ref = LLVMTypeOf(value); in lp_build_print_value()
Dlp_bld_swizzle.c55 assert(vec_type == LLVMTypeOf(scalar)); in lp_build_broadcast()
65 assert(LLVMGetElementType(vec_type) == LLVMTypeOf(scalar)); in lp_build_broadcast()
82 assert(lp_check_elem_type(bld->type, LLVMTypeOf(scalar))); in lp_build_broadcast_scalar()
105 assert(LLVMTypeOf(index) == i32t); in lp_build_extract_broadcast()
350 …return LLVMBuildShuffleVector(builder, src, LLVMGetUndef(LLVMTypeOf(src)), LLVMConstVector(shuffle… in lp_build_swizzle_aos_n()
Dlp_bld_format_float.c242 LLVMTypeRef src_type = LLVMTypeOf(*src); in lp_build_float_to_r11g11b10()
408 LLVMTypeRef src_type = LLVMTypeOf(src); in lp_build_r11g11b10_to_float()
465 LLVMTypeRef src_type = LLVMTypeOf(src); in lp_build_rgb9e5_to_float()
Dlp_bld_sample_soa.c3278 arg_types[num_param++] = LLVMTypeOf(params->context_ptr); in lp_build_sample_soa_func()
3280 arg_types[num_param++] = LLVMTypeOf(params->thread_data_ptr); in lp_build_sample_soa_func()
3283 arg_types[num_param++] = LLVMTypeOf(coords[0]); in lp_build_sample_soa_func()
3284 assert(LLVMTypeOf(coords[0]) == LLVMTypeOf(coords[i])); in lp_build_sample_soa_func()
3287 arg_types[num_param++] = LLVMTypeOf(coords[layer]); in lp_build_sample_soa_func()
3288 assert(LLVMTypeOf(coords[0]) == LLVMTypeOf(coords[layer])); in lp_build_sample_soa_func()
3291 arg_types[num_param++] = LLVMTypeOf(coords[0]); in lp_build_sample_soa_func()
3295 arg_types[num_param++] = LLVMTypeOf(offsets[0]); in lp_build_sample_soa_func()
3296 assert(LLVMTypeOf(offsets[0]) == LLVMTypeOf(offsets[i])); in lp_build_sample_soa_func()
3301 arg_types[num_param++] = LLVMTypeOf(params->lod); in lp_build_sample_soa_func()
[all …]
Dlp_bld_type.c153 vec_type = LLVMTypeOf(val); in lp_check_value()
Dlp_bld_intr.c204 arg_types[i] = LLVMTypeOf(args[i]); in lp_build_intrinsic()
Dlp_bld_conv.c95 LLVMTypeRef src_type = LLVMTypeOf(src); in lp_build_half_to_float()
140 LLVMTypeRef f32_vec_type = LLVMTypeOf(src); in lp_build_float_to_half()
Dlp_bld_tgsi_soa.c280 assert(LLVMTypeOf(val) == mask->int_vec_type); in lp_exec_mask_cond_push()
763 assert(LLVMGetTypeKind(LLVMTypeOf(dst_ptr)) == LLVMPointerTypeKind); in lp_exec_mask_store()
764 assert(LLVMGetElementType(LLVMTypeOf(dst_ptr)) == LLVMTypeOf(val)); in lp_exec_mask_store()
1834 LLVMGetUndef(LLVMTypeOf(value)), in emit_store_64bit_chan()
1839 LLVMGetUndef(LLVMTypeOf(value)), in emit_store_64bit_chan()
1978 assert(LLVMTypeOf(value) == int_bld->vec_type); in emit_store_chan()
1985 assert(LLVMTypeOf(value) == float_bld->vec_type); in emit_store_chan()
Dlp_bld_tgsi.c94 emit_data->dst_type = LLVMTypeOf(emit_data->args[0]); in lp_build_action_set_dst_type()
Dlp_bld_arit.c285 LLVMTypeRef type = LLVMTypeOf(a); in lp_build_fmuladd()
286 assert(type == LLVMTypeOf(b)); in lp_build_fmuladd()
287 assert(type == LLVMTypeOf(c)); in lp_build_fmuladd()
3787 LLVMConstInt(LLVMTypeOf(mxcsr), daz_ftz, 0), ""); in lp_build_fpstate_set_denorms_zero()
3790 LLVMConstInt(LLVMTypeOf(mxcsr), ~daz_ftz, 0), ""); in lp_build_fpstate_set_denorms_zero()
Dlp_bld_format_aos.c244 assert (LLVMTypeOf(packed) == LLVMInt32TypeInContext(gallivm->context)); in lp_build_unpack_arith_rgba_aos()
/external/mesa3d/src/amd/common/
Dac_llvm_util.c245 param_types[i] = LLVMTypeOf(params[i]); in ac_emit_llvm_intrinsic()
288 vec = LLVMGetUndef( LLVMVectorType(LLVMTypeOf(value), value_count)); in ac_build_gather_values_extended()
348 LLVMGetUndef(LLVMTypeOf(in[0])) in build_cube_intrinsic()
354 LLVMTypeOf(vec), &vec, 1, in build_cube_intrinsic()
383 LLVMTypeRef f32 = LLVMTypeOf(coords[0]); in build_cube_select()
Dac_nir_to_llvm.c271 addr_space = LLVMGetPointerAddressSpace(LLVMTypeOf(ptr)); in get_shared_memory_ptr()
278 LLVMTypeRef type = LLVMTypeOf(v); in to_integer()
293 LLVMTypeRef type = LLVMTypeOf(v); in to_float()
589 LLVMTypeRef type = LLVMTypeOf(value); in get_llvm_num_components()
685 LLVMTypeRef type = LLVMTypeOf(value); in get_alu_src()
1048 LLVMTypeRef type = LLVMTypeOf(value); in set_range_metadata()
1545 int addr_space = LLVMGetPointerAddressSpace(LLVMTypeOf(ptr)); in cast_ptr()
1701 build_int_type_name(LLVMTypeOf(tinfo->args[0]), type, sizeof(type)); in build_tex_intrinsic()
2419 LLVMTypeOf(params[0]), /* coords */ in visit_image_load()
2420 LLVMTypeOf(params[1]), /* rsrc */ in visit_image_load()
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_bld_blend_logicop.c52 type = LLVMTypeOf(src); in lp_build_logicop()
Dlp_bld_interp.c542 LLVMTypeOf(a), ""); in coeffs_init()
/external/llvm/tools/llvm-c-test/
Dmodule.c124 LLVMTypeRef T = LLVMTypeOf(g); in llvm_module_list_globals()
/external/swiftshader/third_party/LLVM/bindings/ocaml/llvm/
Dllvm_ocaml.c406 return LLVMTypeOf(Val); in llvm_type_of()
620 LLVMGetIntTypeWidth(LLVMTypeOf(Const)) <= 64) { in llvm_int64_of_const()
863 if (LLVMGetElementType(LLVMTypeOf(GlobalVar)) != Ty) in DEFINE_ITERATORS()
876 if (LLVMGetElementType(LLVMTypeOf(GlobalVar)) != Ty) in llvm_declare_qualified_global()
899 LLVMValueRef GlobalVar = LLVMAddGlobal(M, LLVMTypeOf(Initializer), in llvm_define_global()
911 LLVMTypeOf(Initializer), in llvm_define_qualified_global()
977 if (LLVMGetElementType(LLVMTypeOf(Fn)) != Ty) in DEFINE_ITERATORS()
1873 PhiNode = LLVMBuildPhi(Builder_val(B), LLVMTypeOf(FirstValue), in llvm_build_phi()
/external/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c515 return LLVMTypeOf(Val); in llvm_type_of()
782 LLVMGetIntTypeWidth(LLVMTypeOf(Const)) <= 64) { in llvm_int64_of_const()
1100 if (LLVMGetElementType(LLVMTypeOf(GlobalVar)) != Ty) in DEFINE_ITERATORS()
1113 if (LLVMGetElementType(LLVMTypeOf(GlobalVar)) != Ty) in llvm_declare_qualified_global()
1137 LLVMValueRef GlobalVar = LLVMAddGlobal(M, LLVMTypeOf(Initializer), in llvm_define_global()
1149 LLVMTypeOf(Initializer), in llvm_define_qualified_global()
1239 if (LLVMGetElementType(LLVMTypeOf(Fn)) != Ty) in DEFINE_ITERATORS()
2249 PhiNode = LLVMBuildPhi(Builder_val(B), LLVMTypeOf(FirstValue), in llvm_build_phi()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader.c178 if (LLVMGetTypeKind(LLVMTypeOf(value)) == LLVMFloatTypeKind) in unpack_param()
1127 (dst[0] && LLVMGetTypeKind(LLVMTypeOf(dst[0])) == LLVMVectorTypeKind)) { in store_output_tcs()
1557 LLVMTypeRef type = LLVMTypeOf(value); in set_range_metadata()
3737 addr_space = LLVMGetPointerAddressSpace(LLVMTypeOf(ptr)); in get_memory_ptr()
3829 LLVMTypeOf(emit_data->args[0]), /* coords */ in load_emit()
3830 LLVMTypeOf(emit_data->args[1]), /* rsrc */ in load_emit()
4036 LLVMTypeOf(emit_data->args[0]), /* vdata */ in store_emit()
4037 LLVMTypeOf(emit_data->args[1]), /* coords */ in store_emit()
4038 LLVMTypeOf(emit_data->args[2]), /* rsrc */ in store_emit()
4205 build_type_name_for_intr(LLVMTypeOf(coords), coords_type, sizeof(coords_type)); in atomic_emit()
[all …]
Dsi_shader_tgsi_setup.c382 LLVMGetUndef(LLVMTypeOf(value)), in emit_swizzle()
774 if (LLVMGetTypeKind(LLVMTypeOf(cval)) == LLVMVectorTypeKind) { in fetch_system_value()
991 LLVMTypeKind k = LLVMGetTypeKind(LLVMTypeOf(dst[0])); in si_llvm_emit_store()

12