Home
last modified time | relevance | path

Searched refs:gallivm (Results 1 – 25 of 86) sorted by relevance

1234

/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_init.c109 create_pass_manager(struct gallivm_state *gallivm) in create_pass_manager() argument
111 assert(!gallivm->passmgr); in create_pass_manager()
112 assert(gallivm->target); in create_pass_manager()
114 gallivm->passmgr = LLVMCreateFunctionPassManagerForModule(gallivm->module); in create_pass_manager()
115 if (!gallivm->passmgr) in create_pass_manager()
125 LLVMAddTargetData(gallivm->target, gallivm->passmgr); in create_pass_manager()
144 td_str = LLVMCopyStringRepOfTargetData(gallivm->target); in create_pass_manager()
145 LLVMSetDataLayout(gallivm->module, td_str); in create_pass_manager()
149 LLVMSetDataLayout(gallivm->module, ""); in create_pass_manager()
157 LLVMAddScalarReplAggregatesPass(gallivm->passmgr); in create_pass_manager()
[all …]
Dlp_bld_flow.c55 lp_build_insert_new_block(struct gallivm_state *gallivm, const char *name) in lp_build_insert_new_block() argument
62 current_block = LLVMGetInsertBlock(gallivm->builder); in lp_build_insert_new_block()
68 new_block = LLVMInsertBasicBlockInContext(gallivm->context, next_block, name); in lp_build_insert_new_block()
73 new_block = LLVMAppendBasicBlockInContext(gallivm->context, function, name); in lp_build_insert_new_block()
86 struct gallivm_state *gallivm) in lp_build_flow_skip_begin() argument
88 skip->gallivm = gallivm; in lp_build_flow_skip_begin()
90 skip->block = lp_build_insert_new_block(gallivm, "skip"); in lp_build_flow_skip_begin()
104 new_block = lp_build_insert_new_block(skip->gallivm, ""); in lp_build_flow_skip_cond_break()
107 LLVMBuildCondBr(skip->gallivm->builder, cond, skip->block, new_block); in lp_build_flow_skip_cond_break()
109 LLVMPositionBuilderAtEnd(skip->gallivm->builder, new_block); in lp_build_flow_skip_cond_break()
[all …]
Dlp_bld_format_yuv.c55 uyvy_to_yuv_soa(struct gallivm_state *gallivm, in uyvy_to_yuv_soa() argument
63 LLVMBuilderRef builder = gallivm->builder; in uyvy_to_yuv_soa()
97 lp_build_context_init(&bld32, gallivm, type); in uyvy_to_yuv_soa()
99 tmp = LLVMBuildLShr(builder, packed, lp_build_const_int_vec(gallivm, type, 8), ""); in uyvy_to_yuv_soa()
100 tmp2 = LLVMBuildLShr(builder, tmp, lp_build_const_int_vec(gallivm, type, 16), ""); in uyvy_to_yuv_soa()
101 …sel = lp_build_compare(gallivm, type, PIPE_FUNC_EQUAL, i, lp_build_const_int_vec(gallivm, type, 0)… in uyvy_to_yuv_soa()
108 shift = LLVMBuildMul(builder, i, lp_build_const_int_vec(gallivm, type, 16), ""); in uyvy_to_yuv_soa()
109 shift = LLVMBuildAdd(builder, shift, lp_build_const_int_vec(gallivm, type, 8), ""); in uyvy_to_yuv_soa()
111 shift = LLVMBuildMul(builder, i, lp_build_const_int_vec(gallivm, type, -16), ""); in uyvy_to_yuv_soa()
112 shift = LLVMBuildAdd(builder, shift, lp_build_const_int_vec(gallivm, type, 16), ""); in uyvy_to_yuv_soa()
[all …]
Dlp_bld_format_cached.c56 update_cache_access(struct gallivm_state *gallivm, in update_cache_access() argument
61 LLVMBuilderRef builder = gallivm->builder; in update_cache_access()
67 member_ptr = lp_build_struct_get_ptr(gallivm, ptr, index, ""); in update_cache_access()
70 LLVMConstInt(LLVMInt64TypeInContext(gallivm->context), in update_cache_access()
78 store_cached_block(struct gallivm_state *gallivm, in store_cached_block() argument
84 LLVMBuilderRef builder = gallivm->builder; in store_cached_block()
89 type_ptr4x32 = LLVMPointerType(LLVMVectorType(LLVMInt32TypeInContext(gallivm->context), 4), 0); in store_cached_block()
90 indices[0] = lp_build_const_int32(gallivm, 0); in store_cached_block()
91 indices[1] = lp_build_const_int32(gallivm, LP_BUILD_FORMAT_CACHE_MEMBER_TAGS); in store_cached_block()
96 indices[1] = lp_build_const_int32(gallivm, LP_BUILD_FORMAT_CACHE_MEMBER_DATA); in store_cached_block()
[all …]
Dlp_bld_gather.c49 lp_build_gather_elem_ptr(struct gallivm_state *gallivm, in lp_build_gather_elem_ptr() argument
58 assert(LLVMTypeOf(base_ptr) == LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0)); in lp_build_gather_elem_ptr()
64 LLVMValueRef index = lp_build_const_int32(gallivm, i); in lp_build_gather_elem_ptr()
65 offset = LLVMBuildExtractElement(gallivm->builder, offsets, index, ""); in lp_build_gather_elem_ptr()
68 ptr = LLVMBuildGEP(gallivm->builder, base_ptr, &offset, 1, ""); in lp_build_gather_elem_ptr()
80 lp_build_gather_elem(struct gallivm_state *gallivm, in lp_build_gather_elem() argument
90 LLVMTypeRef src_type = LLVMIntTypeInContext(gallivm->context, src_width); in lp_build_gather_elem()
92 LLVMTypeRef dst_elem_type = LLVMIntTypeInContext(gallivm->context, dst_width); in lp_build_gather_elem()
96 assert(LLVMTypeOf(base_ptr) == LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0)); in lp_build_gather_elem()
98 ptr = lp_build_gather_elem_ptr(gallivm, length, base_ptr, offsets, i); in lp_build_gather_elem()
[all …]
Dlp_bld_format_float.c72 lp_build_float_to_smallfloat(struct gallivm_state *gallivm, in lp_build_float_to_smallfloat() argument
80 LLVMBuilderRef builder = gallivm->builder; in lp_build_float_to_smallfloat()
87 LLVMValueRef zero = lp_build_const_vec(gallivm, f32_type, 0.0f); in lp_build_float_to_smallfloat()
92 lp_build_context_init(&f32_bld, gallivm, f32_type); in lp_build_float_to_smallfloat()
93 lp_build_context_init(&i32_bld, gallivm, i32_type); in lp_build_float_to_smallfloat()
95 i32_smallexpmask = lp_build_const_int_vec(gallivm, i32_type, in lp_build_float_to_smallfloat()
97 i32_floatexpmask = lp_build_const_int_vec(gallivm, i32_type, 0xff << 23); in lp_build_float_to_smallfloat()
118 i32_roundmask = lp_build_const_int_vec(gallivm, i32_type, in lp_build_float_to_smallfloat()
130 magic = lp_build_const_int_vec(gallivm, i32_type, in lp_build_float_to_smallfloat()
136 small_max = lp_build_const_int_vec(gallivm, i32_type, in lp_build_float_to_smallfloat()
[all …]
Dlp_bld_pack.c87 lp_build_const_unpack_shuffle(struct gallivm_state *gallivm, in lp_build_const_unpack_shuffle() argument
99 elems[i + 0] = lp_build_const_int32(gallivm, 0 + j); in lp_build_const_unpack_shuffle()
100 elems[i + 1] = lp_build_const_int32(gallivm, n + j); in lp_build_const_unpack_shuffle()
111 lp_build_const_unpack_shuffle_half(struct gallivm_state *gallivm, in lp_build_const_unpack_shuffle_half() argument
124 elems[i + 0] = lp_build_const_int32(gallivm, 0 + j); in lp_build_const_unpack_shuffle_half()
125 elems[i + 1] = lp_build_const_int32(gallivm, n + j); in lp_build_const_unpack_shuffle_half()
136 lp_build_const_pack_shuffle(struct gallivm_state *gallivm, unsigned n) in lp_build_const_pack_shuffle() argument
145 elems[i] = lp_build_const_int32(gallivm, 2*i); in lp_build_const_pack_shuffle()
147 elems[i] = lp_build_const_int32(gallivm, 2*i+1); in lp_build_const_pack_shuffle()
159 lp_build_extract_range(struct gallivm_state *gallivm, in lp_build_extract_range() argument
[all …]
Dlp_bld_swizzle.c47 lp_build_broadcast(struct gallivm_state *gallivm, in lp_build_broadcast() argument
58 LLVMBuilderRef builder = gallivm->builder; in lp_build_broadcast()
62 LLVMTypeRef i32_type = LLVMInt32TypeInContext(gallivm->context); in lp_build_broadcast()
84 return lp_build_broadcast(bld->gallivm, bld->vec_type, scalar); in lp_build_broadcast_scalar()
92 lp_build_extract_broadcast(struct gallivm_state *gallivm, in lp_build_extract_broadcast() argument
98 LLVMTypeRef i32t = LLVMInt32TypeInContext(gallivm->context); in lp_build_extract_broadcast()
120 res = lp_build_broadcast(gallivm, in lp_build_extract_broadcast()
121 lp_build_vec_type(gallivm, dst_type), in lp_build_extract_broadcast()
132 shuffle = lp_build_broadcast(gallivm, in lp_build_extract_broadcast()
135 res = LLVMBuildShuffleVector(gallivm->builder, vector, in lp_build_extract_broadcast()
[all …]
Dlp_bld_format_aos.c151 scale_bits_up(struct gallivm_state *gallivm, in scale_bits_up() argument
157 LLVMBuilderRef builder = gallivm->builder; in scale_bits_up()
166 lp_build_context_init(&bld, gallivm, src_type); in scale_bits_up()
167 dst_mask = lp_build_const_int_vec(gallivm, src_type, in scale_bits_up()
170 lp_build_const_int_vec(gallivm, src_type, 0)); in scale_bits_up()
180 lp_build_const_int_vec(gallivm, src_type, db), in scale_bits_up()
187 lp_build_const_int_vec(gallivm, src_type, in scale_bits_up()
197 LLVMValueRef shuv = lp_build_const_int_vec(gallivm, src_type, n); in scale_bits_up()
221 lp_build_unpack_arith_rgba_aos(struct gallivm_state *gallivm, in lp_build_unpack_arith_rgba_aos() argument
225 LLVMBuilderRef builder = gallivm->builder; in lp_build_unpack_arith_rgba_aos()
[all …]
Dlp_bld_const.h77 lp_build_undef(struct gallivm_state *gallivm, struct lp_type type);
81 lp_build_zero(struct gallivm_state *gallivm, struct lp_type type);
85 lp_build_one(struct gallivm_state *gallivm, struct lp_type type);
89 lp_build_const_elem(struct gallivm_state *gallivm, struct lp_type type,
93 lp_build_const_vec(struct gallivm_state *gallivm, struct lp_type type,
98 lp_build_const_int_vec(struct gallivm_state *gallivm,
103 lp_build_const_aos(struct gallivm_state *gallivm, struct lp_type type,
109 lp_build_const_mask_aos(struct gallivm_state *gallivm,
116 lp_build_const_mask_aos_swizzled(struct gallivm_state *gallivm,
124 lp_build_const_int32(struct gallivm_state *gallivm, int i) in lp_build_const_int32() argument
[all …]
Dlp_bld_conv.c91 lp_build_half_to_float(struct gallivm_state *gallivm, in lp_build_half_to_float() argument
94 LLVMBuilderRef builder = gallivm->builder; in lp_build_half_to_float()
101 LLVMTypeRef int_vec_type = lp_build_vec_type(gallivm, i32_type); in lp_build_half_to_float()
108 src = lp_build_pad_vector(gallivm, src, 8); in lp_build_half_to_float()
115 lp_build_vec_type(gallivm, f32_type), src); in lp_build_half_to_float()
120 return lp_build_smallfloat_to_float(gallivm, f32_type, h, 10, 5, 0, true); in lp_build_half_to_float()
136 lp_build_float_to_half(struct gallivm_state *gallivm, in lp_build_float_to_half() argument
139 LLVMBuilderRef builder = gallivm->builder; in lp_build_float_to_half()
160 LLVMTypeRef i32t = LLVMInt32TypeInContext(gallivm->context); in lp_build_float_to_half()
169 lp_build_vec_type(gallivm, i168_type), in lp_build_float_to_half()
[all …]
Dlp_bld_format_srgb.c94 lp_build_srgb_to_linear(struct gallivm_state *gallivm, in lp_build_srgb_to_linear() argument
112 lp_build_context_init(&f32_bld, gallivm, f32_type); in lp_build_srgb_to_linear()
132 LLVMValueRef rescale_const = lp_build_const_vec(gallivm, f32_type, in lp_build_srgb_to_linear()
136 lin_const = lp_build_const_vec(gallivm, f32_type, 1.0f / (12.6f * 255.0f)); in lp_build_srgb_to_linear()
141 lin_thresh = lp_build_const_vec(gallivm, f32_type, 15.0f); in lp_build_srgb_to_linear()
142 is_linear = lp_build_compare(gallivm, f32_type, PIPE_FUNC_LEQUAL, srcf, lin_thresh); in lp_build_srgb_to_linear()
160 lp_build_linear_to_srgb(struct gallivm_state *gallivm, in lp_build_linear_to_srgb() argument
165 LLVMBuilderRef builder = gallivm->builder; in lp_build_linear_to_srgb()
169 lp_build_context_init(&f32_bld, gallivm, src_type); in lp_build_linear_to_srgb()
192 exponent = lp_build_const_vec(gallivm, src_type, exp_f); in lp_build_linear_to_srgb()
[all …]
Dlp_bld_const.c225 lp_build_undef(struct gallivm_state *gallivm, struct lp_type type) in lp_build_undef() argument
227 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); in lp_build_undef()
233 lp_build_zero(struct gallivm_state *gallivm, struct lp_type type) in lp_build_zero() argument
237 return lp_build_const_float(gallivm, 0.0); in lp_build_zero()
239 return LLVMConstInt(LLVMIntTypeInContext(gallivm->context, type.width), 0, 0); in lp_build_zero()
242 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); in lp_build_zero()
249 lp_build_one(struct gallivm_state *gallivm, struct lp_type type) in lp_build_one() argument
257 elem_type = lp_build_elem_type(gallivm, type); in lp_build_one()
272 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, type); in lp_build_one()
299 lp_build_const_elem(struct gallivm_state *gallivm, in lp_build_const_elem() argument
[all …]
Dlp_bld_format_soa.c48 convert_to_soa(struct gallivm_state *gallivm, in convert_to_soa() argument
72 aos_channels[j] = lp_build_concat(gallivm, channel, aos_channel_type, pixels_per_channel); in convert_to_soa()
75 lp_build_transpose_aos(gallivm, soa_type, aos_channels, dst_soa); in convert_to_soa()
125 struct gallivm_state *gallivm = bld->gallivm; in lp_build_extract_soa_chan() local
126 LLVMBuilderRef builder = gallivm->builder; in lp_build_extract_soa_chan()
146 lp_build_const_int_vec(gallivm, type, start), ""); in lp_build_extract_soa_chan()
155 lp_build_const_int_vec(gallivm, type, mask), ""); in lp_build_extract_soa_chan()
164 input = lp_build_srgb_to_linear(gallivm, conv_type, width, input); in lp_build_extract_soa_chan()
168 input = lp_build_unsigned_norm_to_float(gallivm, width, type, input); in lp_build_extract_soa_chan()
187 LLVMValueRef bits_val = lp_build_const_int_vec(gallivm, type, bits); in lp_build_extract_soa_chan()
[all …]
Dlp_bld_pack.h48 lp_build_interleave2_half(struct gallivm_state *gallivm,
55 lp_build_interleave2(struct gallivm_state *gallivm,
62 lp_build_uninterleave1(struct gallivm_state *gallivm,
68 lp_build_unpack2(struct gallivm_state *gallivm,
77 lp_build_unpack2_native(struct gallivm_state *gallivm,
85 lp_build_unpack(struct gallivm_state *gallivm,
92 lp_build_extract_range(struct gallivm_state *gallivm,
98 lp_build_concat(struct gallivm_state *gallivm,
104 lp_build_concat_n(struct gallivm_state *gallivm,
113 lp_build_packs2(struct gallivm_state *gallivm,
[all …]
Dlp_bld_quad.c91 struct gallivm_state *gallivm = bld->gallivm; in lp_build_packed_ddx_ddy_onecoord() local
92 LLVMBuilderRef builder = gallivm->builder; in lp_build_packed_ddx_ddy_onecoord()
126 struct gallivm_state *gallivm = bld->gallivm; in lp_build_packed_ddx_ddy_twocoord() local
127 LLVMBuilderRef builder = gallivm->builder; in lp_build_packed_ddx_ddy_twocoord()
139 shuffles1[4*i + 0] = lp_build_const_int32(gallivm, LP_BLD_QUAD_TOP_LEFT + s1); in lp_build_packed_ddx_ddy_twocoord()
140 shuffles1[4*i + 1] = lp_build_const_int32(gallivm, LP_BLD_QUAD_TOP_LEFT + s1); in lp_build_packed_ddx_ddy_twocoord()
141 shuffles1[4*i + 2] = lp_build_const_int32(gallivm, LP_BLD_QUAD_TOP_LEFT + s2); in lp_build_packed_ddx_ddy_twocoord()
142 shuffles1[4*i + 3] = lp_build_const_int32(gallivm, LP_BLD_QUAD_TOP_LEFT + s2); in lp_build_packed_ddx_ddy_twocoord()
143 shuffles2[4*i + 0] = lp_build_const_int32(gallivm, LP_BLD_QUAD_TOP_RIGHT + s1); in lp_build_packed_ddx_ddy_twocoord()
144 shuffles2[4*i + 1] = lp_build_const_int32(gallivm, LP_BLD_QUAD_BOTTOM_LEFT + s1); in lp_build_packed_ddx_ddy_twocoord()
[all …]
Dlp_bld_arit.c223 min = lp_build_intrinsic_binary_anylength(bld->gallivm, intrinsic, in lp_build_min_simple()
235 return lp_build_intrinsic_binary_anylength(bld->gallivm, intrinsic, in lp_build_min_simple()
246 cond = LLVMBuildXor(bld->gallivm->builder, cond, isnan, ""); in lp_build_min_simple()
253 cond = LLVMBuildXor(bld->gallivm->builder, cond, isnan, ""); in lp_build_min_simple()
436 max = lp_build_intrinsic_binary_anylength(bld->gallivm, intrinsic, in lp_build_max_simple()
448 return lp_build_intrinsic_binary_anylength(bld->gallivm, intrinsic, in lp_build_max_simple()
459 cond = LLVMBuildXor(bld->gallivm->builder, cond, isnan, ""); in lp_build_max_simple()
466 cond = LLVMBuildXor(bld->gallivm->builder, cond, isnan, ""); in lp_build_max_simple()
499 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_comp()
537 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_add()
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_jit.c47 struct gallivm_state *gallivm = lp->gallivm; in lp_jit_create_types() local
48 LLVMContextRef lc = gallivm->context; in lp_jit_create_types()
62 gallivm->target, viewport_type, in lp_jit_create_types()
65 gallivm->target, viewport_type, in lp_jit_create_types()
68 gallivm->target, viewport_type); in lp_jit_create_types()
90 gallivm->target, texture_type, in lp_jit_create_types()
93 gallivm->target, texture_type, in lp_jit_create_types()
96 gallivm->target, texture_type, in lp_jit_create_types()
99 gallivm->target, texture_type, in lp_jit_create_types()
102 gallivm->target, texture_type, in lp_jit_create_types()
[all …]
Dlp_test_printf.c61 add_printf_test(struct gallivm_state *gallivm) in add_printf_test() argument
63 LLVMModuleRef module = gallivm->module; in add_printf_test()
64 LLVMTypeRef args[1] = { LLVMIntTypeInContext(gallivm->context, 32) }; in add_printf_test()
65 …ddFunction(module, "test_printf", LLVMFunctionType(LLVMVoidTypeInContext(gallivm->context), args, … in add_printf_test()
66 LLVMBuilderRef builder = gallivm->builder; in add_printf_test()
67 LLVMBasicBlockRef block = LLVMAppendBasicBlockInContext(gallivm->context, func, "entry"); in add_printf_test()
72 lp_build_printf(gallivm, "hello, world\n"); in add_printf_test()
73 …lp_build_printf(gallivm, "print 5 6: %d %d\n", LLVMConstInt(LLVMInt32TypeInContext(gallivm->contex… in add_printf_test()
74 LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), 6, 0)); in add_printf_test()
77 …lp_build_assert(gallivm, LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), 1, 0), "assert(1)"… in add_printf_test()
[all …]
Dlp_state_setup.c88 store_coef(struct gallivm_state *gallivm, in store_coef() argument
95 LLVMBuilderRef builder = gallivm->builder; in store_coef()
96 LLVMValueRef idx = lp_build_const_int32(gallivm, slot); in store_coef()
114 emit_constant_coef4(struct gallivm_state *gallivm, in emit_constant_coef4() argument
119 store_coef(gallivm, args, slot, vert, args->bld.zero, args->bld.zero); in emit_constant_coef4()
129 emit_facing_coef(struct gallivm_state *gallivm, in emit_facing_coef() argument
133 LLVMBuilderRef builder = gallivm->builder; in emit_facing_coef()
134 LLVMTypeRef float_type = LLVMFloatTypeInContext(gallivm->context); in emit_facing_coef()
147 lp_build_const_float(gallivm, 2.0), in emit_facing_coef()
149 lp_build_const_float(gallivm, -1.0), in emit_facing_coef()
[all …]
Dlp_state_fs.c121 generate_quad_mask(struct gallivm_state *gallivm, in generate_quad_mask() argument
126 LLVMBuilderRef builder = gallivm->builder; in generate_quad_mask()
128 LLVMTypeRef i32t = LLVMInt32TypeInContext(gallivm->context); in generate_quad_mask()
171 mask = lp_build_broadcast(gallivm, in generate_quad_mask()
172 lp_build_vec_type(gallivm, mask_type), in generate_quad_mask()
188 mask = lp_build_compare(gallivm, in generate_quad_mask()
222 struct gallivm_state *gallivm, in lp_llvm_viewport() argument
225 LLVMBuilderRef builder = gallivm->builder; in lp_llvm_viewport()
231 ptr = lp_jit_context_viewports(gallivm, context_ptr); in lp_llvm_viewport()
233 LLVMPointerType(lp_build_vec_type(gallivm, viewport_type), 0), ""); in lp_llvm_viewport()
[all …]
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm.c86 create_jit_dvbuffer_type(struct gallivm_state *gallivm, in create_jit_dvbuffer_type() argument
89 LLVMTargetDataRef target = gallivm->target; in create_jit_dvbuffer_type()
92 LLVMTypeRef int32_type = LLVMInt32TypeInContext(gallivm->context); in create_jit_dvbuffer_type()
95 LLVMPointerType(LLVMIntTypeInContext(gallivm->context, 8), 0); in create_jit_dvbuffer_type()
98 dvbuffer_type = LLVMStructTypeInContext(gallivm->context, elem_types, in create_jit_dvbuffer_type()
116 create_jit_texture_type(struct gallivm_state *gallivm, const char *struct_name) in create_jit_texture_type() argument
118 LLVMTargetDataRef target = gallivm->target; in create_jit_texture_type()
121 LLVMTypeRef int32_type = LLVMInt32TypeInContext(gallivm->context); in create_jit_texture_type()
129 LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0); in create_jit_texture_type()
135 texture_type = LLVMStructTypeInContext(gallivm->context, elem_types, in create_jit_texture_type()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader_tgsi_setup.c265 LLVMContextRef ctx = bld_base->base.gallivm->context; in tgsi2llvmtype()
287 LLVMBuilderRef builder = bld_base->base.gallivm->builder; in bitcast()
304 struct gallivm_state *gallivm = &ctx->gallivm; in si_llvm_bound_index() local
305 LLVMBuilderRef builder = gallivm->builder; in si_llvm_bound_index()
306 LLVMValueRef c_max = lp_build_const_int32(gallivm, num - 1); in si_llvm_bound_index()
373 LLVMInt32TypeInContext(bld_base->base.gallivm->context); in emit_swizzle()
380 return LLVMBuildShuffleVector(bld_base->base.gallivm->builder, in emit_swizzle()
436 struct gallivm_state *gallivm = ctx->bld_base.base.gallivm; in emit_array_index() local
439 return lp_build_const_int32(gallivm, offset); in emit_array_index()
441 LLVMValueRef addr = LLVMBuildLoad(gallivm->builder, ctx->addrs[reg->Index][reg->Swizzle], ""); in emit_array_index()
[all …]
Dsi_shader.c174 struct gallivm_state *gallivm = &ctx->gallivm; in unpack_param() local
183 value = LLVMBuildLShr(gallivm->builder, value, in unpack_param()
184 lp_build_const_int32(gallivm, rshift), ""); in unpack_param()
188 value = LLVMBuildAnd(gallivm->builder, value, in unpack_param()
189 lp_build_const_int32(gallivm, mask), ""); in unpack_param()
274 struct gallivm_state *gallivm = &ctx->gallivm; in get_tcs_in_current_patch_offset() local
278 return LLVMBuildMul(gallivm->builder, patch_stride, rel_patch_id, ""); in get_tcs_in_current_patch_offset()
284 struct gallivm_state *gallivm = &ctx->gallivm; in get_tcs_out_current_patch_offset() local
289 return LLVMBuildAdd(gallivm->builder, patch0_offset, in get_tcs_out_current_patch_offset()
290 LLVMBuildMul(gallivm->builder, patch_stride, in get_tcs_out_current_patch_offset()
[all …]
/external/mesa3d/src/gallium/auxiliary/
DMakefile.sources372 gallivm/lp_bld_arit.c \
373 gallivm/lp_bld_arit.h \
374 gallivm/lp_bld_arit_overflow.c \
375 gallivm/lp_bld_arit_overflow.h \
376 gallivm/lp_bld_assert.c \
377 gallivm/lp_bld_assert.h \
378 gallivm/lp_bld_bitarit.c \
379 gallivm/lp_bld_bitarit.h \
380 gallivm/lp_bld_const.c \
381 gallivm/lp_bld_const.h \
[all …]

1234