Home
last modified time | relevance | path

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

12

/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_nir_soa.c279 index = LLVMBuildExtractElement(builder, in build_gather()
282 index = LLVMBuildExtractElement(builder, in build_gather()
326 LLVMValueRef index = LLVMBuildExtractElement(builder, indexes, ii, ""); in emit_mask_scatter()
327 LLVMValueRef val = LLVMBuildExtractElement(builder, values, ii, "scatter_val"); in emit_mask_scatter()
330 LLVMBuildExtractElement(builder, pred, ii, "scatter_pred") : NULL; in emit_mask_scatter()
785 offset = LLVMBuildExtractElement(builder, offset, lp_build_const_int32(gallivm, 0), ""); in emit_load_kernel_arg()
837 LLVMValueRef addr_ptr = LLVMBuildExtractElement(gallivm->builder, addr, in emit_load_global()
855 cond = LLVMBuildExtractElement(gallivm->builder, cond, loop_state.counter, ""); in emit_load_global()
858 LLVMValueRef addr_ptr = LLVMBuildExtractElement(gallivm->builder, addr, in emit_load_global()
894 LLVMValueRef value_ptr = LLVMBuildExtractElement(gallivm->builder, val, in emit_store_global()
[all …]
Dlp_bld_format_soa.c550 offsetr = LLVMBuildExtractElement(builder, offsetr, zero, ""); in lp_build_fetch_rgba_soa()
847 …rgba_out[k] = LLVMBuildExtractElement(gallivm->builder, fetch, lp_build_const_int32(gallivm, k), "… in lp_build_fetch_rgba_soa()
864 offset_elem = LLVMBuildExtractElement(builder, offset, in lp_build_fetch_rgba_soa()
867 i_elem = LLVMBuildExtractElement(builder, i, index, ""); in lp_build_fetch_rgba_soa()
868 j_elem = LLVMBuildExtractElement(builder, j, index, ""); in lp_build_fetch_rgba_soa()
1107 …LLVMValueRef cond = LLVMBuildExtractElement(gallivm->builder, should_store_mask, loop_state.counte… in lp_build_store_rgba_soa()
1110 … LLVMValueRef data = LLVMBuildExtractElement(gallivm->builder, packed[i], loop_state.counter, ""); in lp_build_store_rgba_soa()
1111 …LLVMValueRef this_offset = LLVMBuildExtractElement(gallivm->builder, store_offset, loop_state.coun… in lp_build_store_rgba_soa()
Dlp_bld_format_aos.c438 LLVMValueRef component = LLVMBuildExtractElement(builder, shifted, in lp_build_pack_rgba_aos()
871 args[2] = LLVMBuildExtractElement(builder, i, index, ""); in lp_build_fetch_rgba_aos()
872 args[3] = LLVMBuildExtractElement(builder, j, index, ""); in lp_build_fetch_rgba_aos()
972 args[2] = LLVMBuildExtractElement(builder, i, index, ""); in lp_build_fetch_rgba_aos()
973 args[3] = LLVMBuildExtractElement(builder, j, index, ""); in lp_build_fetch_rgba_aos()
Dlp_bld_intr.c361 return LLVMBuildExtractElement(builder, tmp, elems[0], ""); in lp_build_intrinsic_binary_anylength()
420 arg_elems[j] = LLVMBuildExtractElement(builder, args[j], index, ""); in lp_build_intrinsic_map()
Dlp_bld_nir_aos.c70 LLVMBuildExtractElement(gallivm->builder, constval, in lp_nir_aos_conv_const()
233 offset = LLVMBuildExtractElement(builder, offset, in emit_load_ubo()
Dlp_bld_format_s3tc.c255 *alpha_lo = LLVMBuildExtractElement(builder, elem, in lp_build_gather_s3tc()
257 *alpha_hi = LLVMBuildExtractElement(builder, elem, in lp_build_gather_s3tc()
259 *colors = LLVMBuildExtractElement(builder, elem, in lp_build_gather_s3tc()
261 *codewords = LLVMBuildExtractElement(builder, elem, in lp_build_gather_s3tc()
267 *colors = LLVMBuildExtractElement(builder, elem, in lp_build_gather_s3tc()
269 *codewords = LLVMBuildExtractElement(builder, elem, in lp_build_gather_s3tc()
2106 offsetx = LLVMBuildExtractElement(builder, offset, index, ""); in compressed_fetch_cached()
2109 block_indexx = LLVMBuildExtractElement(builder, block_index, index, ""); in compressed_fetch_cached()
2355 *red_lo = LLVMBuildExtractElement(builder, elem, in lp_build_gather_rgtc()
2357 *red_hi = LLVMBuildExtractElement(builder, elem, in lp_build_gather_rgtc()
[all …]
Dlp_bld_sample.c632 rho_vec = LLVMBuildExtractElement(builder, rho_vec, index0, ""); in lp_build_rho()
643 rho_s = LLVMBuildExtractElement(builder, rho_vec, index0, ""); in lp_build_rho()
644 rho_t = LLVMBuildExtractElement(builder, rho_vec, index1, ""); in lp_build_rho()
649 rho_r = LLVMBuildExtractElement(builder, rho_vec, index2, ""); in lp_build_rho()
1216 …offset1 = load_mip(bld->gallivm, bld->mip_offsets, LLVMBuildExtractElement(builder, level, indexi,… in lp_build_get_mip_offsets()
1230 …offset1 = load_mip(bld->gallivm, bld->mip_offsets, LLVMBuildExtractElement(builder, level, indexi,… in lp_build_get_mip_offsets()
1327 …stride1 = load_mip(bld->gallivm, stride_array, LLVMBuildExtractElement(builder, level, indexi, "")… in lp_build_get_level_stride_vec()
1342 …stride1 = load_mip(bld->gallivm, stride_array, LLVMBuildExtractElement(builder, level, indexi, "")… in lp_build_get_level_stride_vec()
Dlp_bld_printf.c139 param = LLVMBuildExtractElement(builder, value, lp_build_const_int32(gallivm, i), ""); in lp_build_print_value()
Dlp_bld_tgsi_soa.c594 index = LLVMBuildExtractElement(builder, in build_gather()
597 index = LLVMBuildExtractElement(builder, in build_gather()
642 LLVMValueRef index = LLVMBuildExtractElement(builder, indexes, ii, ""); in emit_mask_scatter()
644 LLVMValueRef val = LLVMBuildExtractElement(builder, values, ii, "scatter_val"); in emit_mask_scatter()
646 LLVMBuildExtractElement(builder, pred, ii, "scatter_pred") : NULL; in emit_mask_scatter()
3535 loop_index = LLVMBuildExtractElement(gallivm->builder, loop_index, in load_emit()
3539 cond = LLVMBuildExtractElement(gallivm->builder, cond, loop_state.counter, ""); in load_emit()
3652 LLVMValueRef value_ptr = LLVMBuildExtractElement(gallivm->builder, value, in store_emit()
3659 loop_index = LLVMBuildExtractElement(gallivm->builder, loop_index, in store_emit()
3663 cond = LLVMBuildExtractElement(gallivm->builder, cond, loop_state.counter, ""); in store_emit()
[all …]
Dlp_bld_swizzle.c138 res = LLVMBuildExtractElement(gallivm->builder, vector, index, ""); in lp_build_extract_broadcast()
761 return LLVMBuildExtractElement(gallivm->builder, src, shuffles[0], ""); in lp_build_pack_aos_scalars()
Dlp_bld_pack.c198 return LLVMBuildExtractElement(gallivm->builder, src, elems[0], ""); in lp_build_extract_range()
995 LLVMValueRef val = LLVMBuildExtractElement(builder, src[0], srcindex, ""); in lp_build_resize()
Dlp_bld_gather.c66 offset = LLVMBuildExtractElement(gallivm->builder, offsets, index, ""); in lp_build_gather_elem_ptr()
Dlp_bld_conv.c223 LLVMValueRef f32 = LLVMBuildExtractElement(builder, src, index, ""); in lp_build_float_to_half()
Dlp_bld_sample_soa.c4428 lod = LLVMBuildExtractElement(gallivm->builder, params->explicit_lod, in lp_build_size_query_soa()
4601 cond = LLVMBuildExtractElement(gallivm->builder, cond, in lp_build_do_atomic_soa()
4606 LLVMBuildExtractElement(gallivm->builder, packed, loop_state.counter, ""); in lp_build_do_atomic_soa()
4608 LLVMBuildExtractElement(gallivm->builder, offset, loop_state.counter, ""); in lp_build_do_atomic_soa()
4616 LLVMBuildExtractElement(gallivm->builder, packed2, in lp_build_do_atomic_soa()
/third_party/mesa3d/src/amd/llvm/
Dac_nir_to_llvm.c136 value = LLVMBuildExtractElement(ctx->ac.builder, value, masks[0], ""); in get_alu_src()
428 comp[0] = LLVMBuildExtractElement(ctx->builder, src0, ctx->i32_0, ""); in emit_pack_2x16()
429 comp[1] = LLVMBuildExtractElement(ctx->builder, src0, ctx->i32_1, ""); in emit_pack_2x16()
1048 result = LLVMBuildExtractElement(ctx->ac.builder, result, ctx->ac.i32_0, ""); in visit_alu()
1165 comp[0] = LLVMBuildExtractElement(ctx->ac.builder, src[0], ctx->ac.i32_0, ""); in visit_alu()
1166 comp[1] = LLVMBuildExtractElement(ctx->ac.builder, src[0], ctx->ac.i32_1, ""); in visit_alu()
1174 comp[0] = LLVMBuildExtractElement(ctx->ac.builder, src[0], ctx->ac.i32_0, ""); in visit_alu()
1175 comp[1] = LLVMBuildExtractElement(ctx->ac.builder, src[0], ctx->ac.i32_1, ""); in visit_alu()
1186 result = LLVMBuildExtractElement(ctx->ac.builder, tmp, ctx->ac.i32_0, ""); in visit_alu()
1192 result = LLVMBuildExtractElement(ctx->ac.builder, tmp, ctx->ac.i32_1, ""); in visit_alu()
[all …]
Dac_llvm_build.c155 return LLVMBuildExtractElement(ac->builder, value, LLVMConstInt(ac->i32, index, false), ""); in ac_llvm_extract_elem()
465 vgpr0 = LLVMBuildExtractElement(builder, vgpr, ctx->i32_0, ""); in ac_build_optimization_barrier()
1249 v[i] = LLVMBuildExtractElement(ctx->builder, vdata, LLVMConstInt(ctx->i32, i, 0), ""); in ac_build_buffer_store_dword()
1597 loads[i] = LLVMBuildExtractElement(ctx->builder, loaded, tmp, ""); in ac_build_opencoded_load_format()
2337 samples = LLVMBuildExtractElement(ctx->builder, rsrc, LLVMConstInt(ctx->i32, 3, 0), ""); in ac_build_image_get_sample_count()
3057 return LLVMBuildExtractElement(ctx->builder, value, masks[0], ""); in ac_trim_vector()
3112 fmask_value = LLVMBuildExtractElement(ac->builder, fmask_value, ac->i32_0, ""); in ac_apply_fmask_to_sample()
3119 tmp = LLVMBuildExtractElement(ac->builder, tmp, ac->i32_1, ""); in ac_apply_fmask_to_sample()
3175 src = LLVMBuildExtractElement(ctx->builder, src_vector, LLVMConstInt(ctx->i32, i, 0), ""); in ac_build_readlane_common()
3230 LLVMValueRef mask_lo = LLVMBuildExtractElement(ctx->builder, mask_vec, ctx->i32_0, ""); in ac_build_mbcnt_add()
[all …]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_setup.c252 dzdx = LLVMBuildExtractElement(b, dzdxdzdy, zeroi, ""); in lp_do_offset_tri()
253 dzdy = LLVMBuildExtractElement(b, dzdxdzdy, onei, ""); in lp_do_offset_tri()
282 LLVMBuildExtractElement(b, attribv[0], twoi, "")), in lp_do_offset_tri()
284 LLVMBuildExtractElement(b, attribv[1], twoi, ""))); in lp_do_offset_tri()
288 LLVMBuildExtractElement(b, attribv[2], twoi, "")), in lp_do_offset_tri()
581 e = LLVMBuildExtractElement(b, ef, zeroi, ""); in init_args()
582 f = LLVMBuildExtractElement(b, ef, onei, ""); in init_args()
Dlp_state_fs_linear_llvm.c507 elem = LLVMBuildExtractElement(builder, result, in llvmpipe_fs_variant_linear_llvm()
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm.c1279 val = LLVMBuildExtractElement(builder, cliptmp, linear_inds[i], ""); in store_aos_array()
1756 vert_chan_index = LLVMBuildExtractElement(builder, in draw_gs_llvm_fetch_input()
1760 attr_chan_index = LLVMBuildExtractElement(builder, in draw_gs_llvm_fetch_input()
1770 value = LLVMBuildExtractElement(builder, channel_vec, idx, ""); in draw_gs_llvm_fetch_input()
1811 LLVMBuildExtractElement(builder, emitted_vertices_vec, ind, ""); in draw_gs_llvm_emit_vertex()
1814 … indices[i] = LLVMBuildSelect(builder, LLVMBuildExtractElement(builder, cond, ind, ""), indices[i], in draw_gs_llvm_emit_vertex()
1818 …LLVMValueRef stream_idx = LLVMBuildExtractElement(builder, stream_id, lp_build_const_int32(gallivm… in draw_gs_llvm_emit_vertex()
1822 …io = lp_build_pointer_get(builder, io, LLVMBuildExtractElement(builder, stream_id, lp_build_const_… in draw_gs_llvm_emit_vertex()
1856 LLVMBuildExtractElement(builder, emitted_prims_vec, ind, ""); in draw_gs_llvm_end_primitive()
1859 LLVMBuildExtractElement(builder, verts_per_prim_vec, ind, ""); in draw_gs_llvm_end_primitive()
[all …]
/third_party/flutter/skia/src/sksl/
DSkSLJIT.cpp407 LLVMValueRef element = LLVMBuildExtractElement( in getLValue()
421 return LLVMBuildExtractElement(builder, base, in getLValue()
432 LLVMValueRef element = LLVMBuildExtractElement(builder, value, in getLValue()
947 LLVMValueRef column = LLVMBuildExtractElement(builder, in compileConstructor()
977 LLVMValueRef element = LLVMBuildExtractElement( in compileSwizzle()
991 return LLVMBuildExtractElement(builder, base, in compileSwizzle()
1302 LLVMBuildExtractElement(builder, in compileStageFunctionLoop()
1316 LLVMBuildExtractElement(builder, colorLoad, in compileStageFunctionLoop()
1324 LLVMBuildExtractElement(builder, colorLoad, in compileStageFunctionLoop()
1332 LLVMBuildExtractElement(builder, colorLoad, in compileStageFunctionLoop()
[all …]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader_llvm_gs.c270 LLVMValueRef desc1 = LLVMBuildExtractElement(builder, ctx->esgs_ring, ctx->ac.i32_1, ""); in si_preload_esgs_ring()
271 LLVMValueRef desc3 = LLVMBuildExtractElement(builder, ctx->esgs_ring, in si_preload_esgs_ring()
342 tmp = LLVMBuildExtractElement(builder, ring, ctx->ac.i32_0, ""); in si_preload_gs_rings()
348 tmp = LLVMBuildExtractElement(builder, ring, ctx->ac.i32_1, ""); in si_preload_gs_rings()
Dsi_shader_llvm_resources.c148 tmp = LLVMBuildExtractElement(ctx->ac.builder, rsrc, i32_6, ""); in force_dcc_off()
160 tmp = LLVMBuildExtractElement(ctx->ac.builder, rsrc, i32_6, ""); in force_write_compress_off()
Dsi_shader_llvm_ps.c167 i = LLVMBuildExtractElement(ctx->ac.builder, interp_param, ctx->ac.i32_0, ""); in interp_fs_color()
168 j = LLVMBuildExtractElement(ctx->ac.builder, interp_param, ctx->ac.i32_1, ""); in interp_fs_color()
Dsi_shader_llvm_vs.c144 LLVMBuildExtractElement(ctx->ac.builder, tmp, LLVMConstInt(ctx->ac.i32, i, false), ""); in load_input_vs()
195 fetches[i] = LLVMBuildExtractElement(ctx->ac.builder, fetch, tmp, ""); in load_input_vs()
/third_party/mesa3d/src/amd/vulkan/
Dradv_nir_to_llvm.c491 out[chan] = LLVMBuildExtractElement(ctx->ac.builder, input, llvm_chan, ""); in load_vs_input()
1262 tmp = LLVMBuildExtractElement(ctx->ac.builder, ring, ctx->ac.i32_0, ""); in ac_setup_rings()
1270 tmp = LLVMBuildExtractElement(ctx->ac.builder, ring, ctx->ac.i32_1, ""); in ac_setup_rings()

12