/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_nir_soa.c | 850 struct lp_build_loop_state loop_state; in emit_load_global() local 851 lp_build_loop_begin(&loop_state, gallivm, lp_build_const_int32(gallivm, 0)); in emit_load_global() 855 cond = LLVMBuildExtractElement(gallivm->builder, cond, loop_state.counter, ""); in emit_load_global() 859 loop_state.counter, ""); in emit_load_global() 866 temp_res = LLVMBuildInsertElement(builder, temp_res, value_ptr, loop_state.counter, ""); in emit_load_global() 869 lp_build_loop_end_cond(&loop_state, lp_build_const_int32(gallivm, uint_bld->type.length), in emit_load_global() 892 struct lp_build_loop_state loop_state; in emit_store_global() local 893 lp_build_loop_begin(&loop_state, gallivm, lp_build_const_int32(gallivm, 0)); in emit_store_global() 895 loop_state.counter, ""); in emit_store_global() 898 loop_state in emit_store_global() 943 struct lp_build_loop_state loop_state; emit_atomic_global() local 1255 struct lp_build_loop_state loop_state; emit_load_mem() local 1358 struct lp_build_loop_state loop_state; emit_store_mem() local 1420 struct lp_build_loop_state loop_state; emit_atomic_mem() local 1685 struct lp_build_loop_state loop_state; emit_tex() local 2079 struct lp_build_loop_state loop_state; emit_vote() local 2144 struct lp_build_loop_state loop_state; emit_ballot() local 2168 struct lp_build_loop_state loop_state; emit_elect() local 2223 struct lp_build_loop_state loop_state; emit_shuffle() local 2254 struct lp_build_loop_state loop_state; emit_reduce() local 2479 struct lp_build_loop_state loop_state; emit_read_invocation() local 2563 struct lp_build_loop_state loop_state; emit_load_scratch() local 2619 struct lp_build_loop_state loop_state; emit_store_scratch() local [all...] |
H A D | lp_bld_format_soa.c | 1099 struct lp_build_loop_state loop_state; in lp_build_store_rgba_soa() local 1104 lp_build_loop_begin(&loop_state, gallivm, lp_build_const_int32(gallivm, 0)); in lp_build_store_rgba_soa() 1107 LLVMValueRef cond = LLVMBuildExtractElement(gallivm->builder, should_store_mask, loop_state.counter, ""); 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.counter, ""); in lp_build_store_rgba_soa() 1123 lp_build_loop_end_cond(&loop_state, lp_build_const_int32(gallivm, type.length), in lp_build_store_rgba_soa()
|
H A D | lp_bld_tgsi_soa.c | 3529 struct lp_build_loop_state loop_state; in load_emit() local 3530 lp_build_loop_begin(&loop_state, gallivm, lp_build_const_int32(gallivm, 0)); in load_emit() 3536 loop_state.counter, ""); in load_emit() 3539 cond = LLVMBuildExtractElement(gallivm->builder, cond, loop_state.counter, ""); in load_emit() 3545 temp_res = LLVMBuildInsertElement(builder, temp_res, scalar, loop_state.counter, ""); in load_emit() 3549 temp_res = LLVMBuildInsertElement(builder, temp_res, lp_build_const_int32(gallivm, 0), loop_state.counter, ""); in load_emit() 3552 lp_build_loop_end_cond(&loop_state, lp_build_const_int32(gallivm, uint_bld->type.length), in load_emit() 3649 struct lp_build_loop_state loop_state; in store_emit() local 3650 lp_build_loop_begin(&loop_state, gallivm, lp_build_const_int32(gallivm, 0)); in store_emit() 3653 loop_state in store_emit() 3843 struct lp_build_loop_state loop_state; atomic_emit() local [all...] |
H A D | lp_bld_sample_soa.c | 4587 struct lp_build_loop_state loop_state; in lp_build_do_atomic_soa() local 4588 lp_build_loop_begin(&loop_state, gallivm, lp_build_const_int32(gallivm, 0)); in lp_build_do_atomic_soa() 4602 loop_state.counter, ""); 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() 4617 loop_state.counter, ""); in lp_build_do_atomic_soa() 4637 loop_state.counter, ""); in lp_build_do_atomic_soa() 4641 lp_build_loop_end_cond(&loop_state, in lp_build_do_atomic_soa()
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_opt_dce.c | 104 struct loop_state { struct 110 dce_block(nir_block *block, BITSET_WORD *defs_live, struct loop_state *loop) in dce_block() 149 struct loop_state *parent_loop) in dce_cf_list() 169 struct loop_state inner_state; in dce_cf_list() 225 struct loop_state loop; in nir_opt_dce_impl()
|
H A D | nir_divergence_analysis.c | 1004 struct divergence_state loop_state = *state; in visit_loop() local 1005 loop_state.divergent_loop_cf = false; in visit_loop() 1006 loop_state.divergent_loop_continue = false; in visit_loop() 1007 loop_state.divergent_loop_break = false; in visit_loop() 1012 progress |= visit_cf_list(&loop->body, &loop_state); in visit_loop() 1022 loop_state.divergent_loop_continue); in visit_loop() 1025 loop_state.divergent_loop_cf = false; in visit_loop() 1026 loop_state.first_visit = false; in visit_loop() 1037 loop_state.divergent_loop_break); in visit_loop() 1040 loop->divergent = (loop_state in visit_loop() [all...] |
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_state_cs.c | 186 struct lp_build_loop_state loop_state[4]; in generate_compute() local 212 lp_build_loop_begin(&loop_state[3], gallivm, in generate_compute() 214 lp_build_loop_begin(&loop_state[2], gallivm, in generate_compute() 216 lp_build_loop_begin(&loop_state[1], gallivm, in generate_compute() 218 lp_build_loop_begin(&loop_state[0], gallivm, in generate_compute() 223 args[1] = loop_state[0].counter; in generate_compute() 224 args[2] = loop_state[1].counter; in generate_compute() 225 args[3] = loop_state[2].counter; in generate_compute() 241 LLVMValueRef coro_hdl_idx = LLVMBuildMul(gallivm->builder, loop_state[2].counter, in generate_compute() 244 LLVMBuildMul(gallivm->builder, loop_state[ in generate_compute() [all...] |
H A D | lp_state_fs.c | 432 struct lp_build_for_loop_state *loop_state; member 461 return lp_build_interp_soa(interp, bld->gallivm, fs_iface->loop_state->counter, in fs_interp() 554 LLVMValueRef counter = fs_iface->loop_state->counter; in fs_fb_fetch() 558 LLVMBuildAnd(builder, fs_iface->loop_state->counter, lp_build_const_int32(gallivm, 1), ""), in fs_fb_fetch() 560 counter = LLVMBuildLShr(builder, fs_iface->loop_state->counter, lp_build_const_int32(gallivm, 1), ""); in fs_fb_fetch() 648 struct lp_build_for_loop_state loop_state, sample_loop_state = {0}; in generate_fs_loop() local 774 lp_build_for_loop_begin(&loop_state, gallivm, in generate_fs_loop() 786 s_mask_idx = LLVMBuildAdd(builder, s_mask_idx, loop_state.counter, ""); in generate_fs_loop() 799 &loop_state.counter, 1, "mask_ptr"); in generate_fs_loop() 858 s_mask_idx = LLVMBuildAdd(builder, s_mask_idx, loop_state in generate_fs_loop() [all...] |
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
H A D | draw_llvm.c | 3427 struct lp_build_loop_state loop_state[2]; in draw_tcs_llvm_generate() local 3434 lp_build_loop_begin(&loop_state[1], gallivm, in draw_tcs_llvm_generate() 3436 lp_build_loop_begin(&loop_state[0], gallivm, in draw_tcs_llvm_generate() 3446 args[6] = loop_state[0].counter; in draw_tcs_llvm_generate() 3447 LLVMValueRef coro_entry = LLVMBuildGEP2(builder, hdl_ptr_type, coro_hdls, &loop_state[0].counter, 1, ""); in draw_tcs_llvm_generate() 3451 LLVMValueRef cmp = LLVMBuildICmp(builder, LLVMIntEQ, loop_state[1].counter, in draw_tcs_llvm_generate() 3464 lp_build_loop_force_set_counter(&loop_state[1], lp_build_const_int32(gallivm, end_coroutine - 1)); in draw_tcs_llvm_generate() 3470 lp_build_loop_force_reload_counter(&loop_state[1]); in draw_tcs_llvm_generate() 3472 lp_build_loop_end_cond(&loop_state[0], in draw_tcs_llvm_generate() 3475 lp_build_loop_end_cond(&loop_state[ in draw_tcs_llvm_generate() [all...] |