Home
last modified time | relevance | path

Searched refs:instr (Results 451 - 475 of 1221) sorted by relevance

1...<<11121314151617181920>>...49

/third_party/mesa3d/src/compiler/nir/
H A Dnir_lower_array_deref_of_vec.c72 nir_foreach_instr_safe(instr, block) { in nir_lower_array_deref_of_vec_impl()
73 if (instr->type != nir_instr_type_intrinsic) in nir_lower_array_deref_of_vec_impl()
76 nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr); in nir_lower_array_deref_of_vec_impl()
107 b.cursor = nir_after_instr(&intrin->instr); in nir_lower_array_deref_of_vec_impl()
131 nir_instr_remove(&intrin->instr); in nir_lower_array_deref_of_vec_impl()
144 nir_instr_rewrite_src(&intrin->instr, &intrin->src[0], in nir_lower_array_deref_of_vec_impl()
155 nir_instr_remove(&intrin->instr); in nir_lower_array_deref_of_vec_impl()
H A Dnir_lower_bool_to_int32.c139 nir_foreach_instr_safe(instr, block) { in nir_lower_bool_to_int32_impl()
140 switch (instr->type) { in nir_lower_bool_to_int32_impl()
142 progress |= lower_alu_instr(nir_instr_as_alu(instr)); in nir_lower_bool_to_int32_impl()
146 nir_load_const_instr *load = nir_instr_as_load_const(instr); in nir_lower_bool_to_int32_impl()
160 nir_foreach_ssa_def(instr, rewrite_1bit_ssa_def_to_32bit, in nir_lower_bool_to_int32_impl()
165 progress |= lower_tex_instr(nir_instr_as_tex(instr)); in nir_lower_bool_to_int32_impl()
169 nir_foreach_ssa_def(instr, assert_ssa_def_is_not_1bit, NULL); in nir_lower_bool_to_int32_impl()
H A Dnir_lower_point_smooth.c35 lower_point_smooth(nir_builder *b, nir_instr *instr, UNUSED void *_state) in lower_point_smooth() argument
37 if (instr->type != nir_instr_type_intrinsic) in lower_point_smooth()
40 nir_intrinsic_instr *intr = nir_instr_as_intrinsic(instr); in lower_point_smooth()
53 b->cursor = nir_before_instr(&intr->instr); in lower_point_smooth()
81 nir_instr_rewrite_src(instr, &intr->src[0], nir_src_for_ssa(new_val)); in lower_point_smooth()
H A Dnir_lower_viewport_transform.c52 nir_foreach_instr_safe(instr, block) { in nir_lower_viewport_transform()
53 if (instr->type != nir_instr_type_intrinsic) in nir_lower_viewport_transform()
56 nir_intrinsic_instr *intr = nir_instr_as_intrinsic(instr); in nir_lower_viewport_transform()
67 b.cursor = nir_before_instr(instr); in nir_lower_viewport_transform()
97 nir_instr_rewrite_src(instr, &intr->src[1], in nir_lower_viewport_transform()
H A Dnir_normalize_cubemap_coords.c41 nir_foreach_instr(instr, block) { in normalize_cubemap_coords_block()
42 if (instr->type != nir_instr_type_tex) in normalize_cubemap_coords_block()
45 nir_tex_instr *tex = nir_instr_as_tex(instr); in normalize_cubemap_coords_block()
49 b->cursor = nir_before_instr(&tex->instr); in normalize_cubemap_coords_block()
77 nir_instr_rewrite_src(&tex->instr, in normalize_cubemap_coords_block()
H A Dnir_lower_ubo_vec4.c67 nir_lower_ubo_vec4_filter(const nir_instr *instr, const void *data) in nir_lower_ubo_vec4_filter() argument
69 if (instr->type != nir_instr_type_intrinsic) in nir_lower_ubo_vec4_filter()
72 return nir_instr_as_intrinsic(instr)->intrinsic == nir_intrinsic_load_ubo; in nir_lower_ubo_vec4_filter()
84 nir_lower_ubo_vec4_lower(nir_builder *b, nir_instr *instr, void *data) in nir_lower_ubo_vec4_lower() argument
86 b->cursor = nir_before_instr(instr); in nir_lower_ubo_vec4_lower()
88 nir_intrinsic_instr *intr = nir_instr_as_intrinsic(instr); in nir_lower_ubo_vec4_lower()
H A Dnir_lower_var_copies.c111 b->cursor = nir_before_instr(&copy->instr); in nir_lower_deref_copy_instr()
130 nir_foreach_instr_safe(instr, block) { in lower_var_copies_impl()
131 if (instr->type != nir_instr_type_intrinsic) in lower_var_copies_impl()
134 nir_intrinsic_instr *copy = nir_instr_as_intrinsic(instr); in lower_var_copies_impl()
140 nir_instr_remove(&copy->instr); in lower_var_copies_impl()
145 nir_instr_free(&copy->instr); in lower_var_copies_impl()
H A Dnir_opt_barriers.c35 nir_foreach_instr_safe(instr, block) { in nir_opt_combine_memory_barriers_impl()
36 if (instr->type != nir_instr_type_intrinsic) { in nir_opt_combine_memory_barriers_impl()
41 nir_intrinsic_instr *current = nir_instr_as_intrinsic(instr); in nir_opt_combine_memory_barriers_impl()
49 nir_instr_remove(&current->instr); in nir_opt_combine_memory_barriers_impl()
H A Dnir_serialize.c762 read_dest(read_ctx *ctx, nir_dest *dst, nir_instr *instr, in read_dest() argument
775 nir_ssa_dest_init(instr, dst, num_components, bit_size, NULL); in read_dest()
783 read_src(ctx, dst->reg.indirect, instr); in read_dest()
833 header.alu.instr_type = alu->instr.type; in write_alu()
852 write_dest(ctx, &alu->dest.dest, header, alu->instr.type); in write_alu()
912 read_dest(ctx, &alu->dest.dest, &alu->instr, header); in read_alu()
939 union packed_src src = read_src(ctx, &alu->src[i].src, &alu->instr); in read_alu()
1027 header.deref.instr_type = deref->instr.type; in write_deref()
1051 write_dest(ctx, &deref->dest, header, deref->instr.type); in write_deref()
1103 read_dest(ctx, &deref->dest, &deref->instr, heade in read_deref()
1734 write_instr(write_ctx *ctx, const nir_instr *instr) write_instr() argument
1782 nir_instr *instr; read_instr() local
[all...]
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_nir_lower_txf_ms.c39 vc4_nir_lower_txf_ms_instr(nir_builder *b, nir_instr *instr, void *data) in vc4_nir_lower_txf_ms_instr() argument
41 nir_tex_instr *txf_ms = nir_instr_as_tex(instr); in vc4_nir_lower_txf_ms_instr()
122 nir_ssa_dest_init(&txf->instr, &txf->dest, 4, 32, NULL); in vc4_nir_lower_txf_ms_instr()
123 nir_builder_instr_insert(b, &txf->instr); in vc4_nir_lower_txf_ms_instr()
129 vc4_nir_lower_txf_ms_filter(const nir_instr *instr, const void *data) in vc4_nir_lower_txf_ms_filter() argument
131 return (instr->type == nir_instr_type_tex && in vc4_nir_lower_txf_ms_filter()
132 nir_instr_as_tex(instr)->op == nir_texop_txf_ms); in vc4_nir_lower_txf_ms_filter()
/third_party/mesa3d/src/freedreno/ir3/
H A Dir3_nir_lower_load_barycentric_at_offset.c33 ir3_nir_lower_load_barycentric_at_offset_instr(nir_builder *b, nir_instr *instr, in ir3_nir_lower_load_barycentric_at_offset_instr() argument
36 nir_intrinsic_instr *intr = nir_instr_as_intrinsic(instr); in ir3_nir_lower_load_barycentric_at_offset_instr()
82 ir3_nir_lower_load_barycentric_at_offset_filter(const nir_instr *instr, in ir3_nir_lower_load_barycentric_at_offset_filter() argument
85 return (instr->type == nir_instr_type_intrinsic && in ir3_nir_lower_load_barycentric_at_offset_filter()
86 nir_instr_as_intrinsic(instr)->intrinsic == in ir3_nir_lower_load_barycentric_at_offset_filter()
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
H A Dsfn_nir.h46 static bool filter_instr(const nir_instr *instr, const void *data);
47 static nir_ssa_def *lower_instr(nir_builder *b, nir_instr *instr, void *data);
51 virtual bool filter(const nir_instr *instr) const = 0;
52 virtual nir_ssa_def *lower(nir_instr *instr) = 0;
113 bool r600_lower_to_scalar_instr_filter(const nir_instr *instr, const void *);
H A Dsfn_instr_alugroup.h45 bool add_instruction(AluInstr *instr);
46 bool add_trans_instructions(AluInstr *instr);
47 bool add_vec_instructions(AluInstr *instr);
97 bool update_indirect_access(AluInstr *instr);
98 bool try_readport(AluInstr *instr, AluBankSwizzle cycle);
/third_party/mesa3d/src/gallium/frontends/lavapipe/
H A Dlvp_lower_input_attachments.c65 b.cursor = nir_before_instr(&load->instr); in try_lower_input_load()
77 nir_instr_rewrite_src(&load->instr, &load->src[1], nir_src_for_ssa(coord)); in try_lower_input_load()
93 nir_foreach_instr_safe(instr, block) { in lvp_lower_input_attachments()
94 if (instr->type != nir_instr_type_intrinsic) in lvp_lower_input_attachments()
97 nir_intrinsic_instr *load = nir_instr_as_intrinsic(instr); in lvp_lower_input_attachments()
/kernel/linux/linux-5.10/arch/arm64/kernel/
H A Darmv8_deprecated.c172 static int swp_handler(struct pt_regs *regs, u32 instr) in swp_handler() argument
180 type = instr & TYPE_SWPB; in swp_handler()
182 switch (aarch32_check_condition(instr, regs->pstate)) { in swp_handler()
195 rn = aarch32_insn_extract_reg_num(instr, A32_RN_OFFSET); in swp_handler()
196 rt2 = aarch32_insn_extract_reg_num(instr, A32_RT2_OFFSET); in swp_handler()
200 destreg = aarch32_insn_extract_reg_num(instr, A32_RT_OFFSET); in swp_handler()
204 aarch32_insn_extract_reg_num(instr, A32_RT2_OFFSET), data); in swp_handler()
260 static int cp15barrier_handler(struct pt_regs *regs, u32 instr) in cp15barrier_handler() argument
264 switch (aarch32_check_condition(instr, regs->pstate)) { in cp15barrier_handler()
277 switch (aarch32_insn_mcr_extract_crm(instr)) { in cp15barrier_handler()
378 a32_setend_handler(struct pt_regs *regs, u32 instr) a32_setend_handler() argument
385 t16_setend_handler(struct pt_regs *regs, u32 instr) t16_setend_handler() argument
[all...]
/kernel/linux/linux-6.6/arch/arm64/kernel/
H A Darmv8_deprecated.c166 static int swp_handler(struct pt_regs *regs, u32 instr) in swp_handler() argument
174 type = instr & TYPE_SWPB; in swp_handler()
176 switch (aarch32_check_condition(instr, regs->pstate)) { in swp_handler()
189 rn = aarch32_insn_extract_reg_num(instr, A32_RN_OFFSET); in swp_handler()
190 rt2 = aarch32_insn_extract_reg_num(instr, A32_RT2_OFFSET); in swp_handler()
194 destreg = aarch32_insn_extract_reg_num(instr, A32_RT_OFFSET); in swp_handler()
198 aarch32_insn_extract_reg_num(instr, A32_RT2_OFFSET), data); in swp_handler()
254 static int cp15barrier_handler(struct pt_regs *regs, u32 instr) in cp15barrier_handler() argument
258 switch (aarch32_check_condition(instr, regs->pstate)) { in cp15barrier_handler()
271 switch (aarch32_insn_mcr_extract_crm(instr)) { in cp15barrier_handler()
372 a32_setend_handler(struct pt_regs *regs, u32 instr) a32_setend_handler() argument
379 t16_setend_handler(struct pt_regs *regs, u32 instr) t16_setend_handler() argument
[all...]
/third_party/mesa3d/src/amd/compiler/
H A Daco_ssa_elimination.cpp144 for (aco_ptr<Instruction>& instr : block->instructions) { in is_empty_block()
145 switch (instr->opcode) { in is_empty_block()
152 for (unsigned i = 0; i < instr->definitions.size(); i++) { in is_empty_block()
153 if (ignore_exec_writes && instr->definitions[i].physReg() == exec) in is_empty_block()
155 if (instr->definitions[i].physReg() != instr->operands[i].physReg()) in is_empty_block()
161 if (ignore_exec_writes && instr->definitions[0].physReg() == exec) in is_empty_block()
290 instr_writes_exec(Instruction* instr) in instr_writes_exec() argument
292 for (Definition& def : instr->definitions) in instr_writes_exec()
331 aco_ptr<Instruction>& instr in eliminate_useless_exec_writes_in_block() local
[all...]
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Dsstep.h19 #define IS_MTMSRD(instr) ((ppc_inst_val(instr) & 0xfc0007be) == 0x7c000124)
20 #define IS_RFID(instr) ((ppc_inst_val(instr) & 0xfc0007be) == 0x4c000024)
148 ppc_inst_t instr);
165 int emulate_step(struct pt_regs *regs, ppc_inst_t instr);
/third_party/libunwind/libunwind/src/arm/
H A DGstep.c149 unw_word_t instr, i; in unw_step() local
164 if (dwarf_get(&c->dwarf, DWARF_LOC(frame, 0), &instr) < 0) in unw_step()
168 instr -= 8; in unw_step()
169 if (dwarf_get(&c->dwarf, DWARF_LOC(instr, 0), &instr) < 0) in unw_step()
173 if ((instr & 0xFFFFD800) == 0xE92DD800) in unw_step()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Dpropagator.h154 // const auto visit_fn = [&ctx, &values](Instruction* instr,
156 // if (instr->opcode() == SpvOpStore) {
157 // uint32_t rhs_id = instr->GetSingleWordOperand(1);
223 // Simulate the execution of |instr| by replacing all the known values in
226 // the value computed by |instr|.
227 bool Simulate(Instruction* instr);
229 // Returns true if |instr| should be simulated again.
230 bool ShouldSimulateAgain(Instruction* instr) const { in ShouldSimulateAgain()
231 return do_not_simulate_.find(instr) == do_not_simulate_.end(); in ShouldSimulateAgain()
234 // Add |instr| t
235 DontSimulateAgain(Instruction* instr) DontSimulateAgain() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Dpropagator.h154 // const auto visit_fn = [&ctx, &values](Instruction* instr,
156 // if (instr->opcode() == SpvOpStore) {
157 // uint32_t rhs_id = instr->GetSingleWordOperand(1);
223 // Simulate the execution of |instr| by replacing all the known values in
226 // the value computed by |instr|.
227 bool Simulate(Instruction* instr);
229 // Returns true if |instr| should be simulated again.
230 bool ShouldSimulateAgain(Instruction* instr) const { in ShouldSimulateAgain()
231 return do_not_simulate_.find(instr) == do_not_simulate_.end(); in ShouldSimulateAgain()
234 // Add |instr| t
235 DontSimulateAgain(Instruction* instr) DontSimulateAgain() argument
[all...]
/third_party/spirv-tools/source/opt/
H A Dpropagator.h154 // const auto visit_fn = [&ctx, &values](Instruction* instr,
156 // if (instr->opcode() == spv::Op::OpStore) {
157 // uint32_t rhs_id = instr->GetSingleWordOperand(1);
223 // Simulate the execution of |instr| by replacing all the known values in
226 // the value computed by |instr|.
227 bool Simulate(Instruction* instr);
229 // Returns true if |instr| should be simulated again.
230 bool ShouldSimulateAgain(Instruction* instr) const { in ShouldSimulateAgain()
231 return do_not_simulate_.find(instr) == do_not_simulate_.end(); in ShouldSimulateAgain()
234 // Add |instr| t
235 DontSimulateAgain(Instruction* instr) DontSimulateAgain() argument
[all...]
/third_party/mesa3d/src/panfrost/util/
H A Dpan_lower_sample_position.c37 nir_instr *instr, UNUSED void *data) in pan_lower_sample_pos_impl()
39 if (instr->type != nir_instr_type_intrinsic) in pan_lower_sample_pos_impl()
42 nir_intrinsic_instr *intr = nir_instr_as_intrinsic(instr); in pan_lower_sample_pos_impl()
46 b->cursor = nir_before_instr(instr); in pan_lower_sample_pos_impl()
36 pan_lower_sample_pos_impl(struct nir_builder *b, nir_instr *instr, UNUSED void *data) pan_lower_sample_pos_impl() argument
/third_party/mesa3d/src/microsoft/clc/
H A Dclc_compiler.c154 b->cursor = nir_before_instr(&intrinsic->instr); in clc_lower_input_image_deref()
215 b->cursor = nir_after_instr(&context->deref->instr); in clc_lower_input_image_deref()
221 nir_instr_remove(&intrinsic->instr); in clc_lower_input_image_deref()
253 nir_instr_remove(&context->deref->instr); in clc_lower_input_image_deref()
269 nir_foreach_instr_safe(instr, block) { in clc_lower_images()
270 if (instr->type == nir_instr_type_deref) { in clc_lower_images()
271 context->deref = nir_instr_as_deref(instr); in clc_lower_images()
291 nir_foreach_instr_safe(instr, block) { in clc_lower_64bit_semantics()
292 if (instr->type == nir_instr_type_intrinsic) { in clc_lower_64bit_semantics()
293 nir_intrinsic_instr *intrinsic = nir_instr_as_intrinsic(instr); in clc_lower_64bit_semantics()
[all...]
/third_party/skia/third_party/externals/spirv-tools/test/val/
H A Dval_id_test.cpp3606 bool AccessChainRequiresElemId(const std::string& instr) { in AccessChainRequiresElemId() argument
3607 return (instr == "OpPtrAccessChain" || instr == "OpInBoundsPtrAccessChain"); in AccessChainRequiresElemId()
3612 const std::string instr = GetParam(); in TEST_P() local
3613 const std::string elem = AccessChainRequiresElemId(instr) ? "%int_0 " : ""; in TEST_P()
3615 "%float_entry = " + instr + in TEST_P()
3627 const std::string instr = GetParam(); in TEST_P() local
3628 const std::string elem = AccessChainRequiresElemId(instr) ? "%int_0 " : ""; in TEST_P()
3631 instr + in TEST_P()
3638 const std::string expected_err = "The Result Type of " + instr in TEST_P()
3648 const std::string instr = GetParam(); TEST_P() local
3665 const std::string instr = GetParam(); TEST_P() local
3684 const std::string instr = GetParam(); TEST_P() local
3705 const std::string instr = GetParam(); TEST_P() local
3725 const std::string instr = GetParam(); TEST_P() local
3741 const std::string instr = GetParam(); TEST_P() local
3760 const std::string instr = GetParam(); TEST_P() local
3802 const std::string instr = GetParam(); TEST_P() local
3823 const std::string instr = GetParam(); TEST_P() local
3868 const std::string instr = GetParam(); TEST_P() local
3892 const std::string instr = GetParam(); TEST_P() local
3911 const std::string instr = GetParam(); TEST_P() local
3931 const std::string instr = GetParam(); TEST_P() local
3951 const std::string instr = GetParam(); TEST_P() local
3970 const std::string instr = GetParam(); TEST_P() local
3996 const std::string instr = GetParam(); TEST_P() local
4020 const std::string instr = GetParam(); TEST_P() local
4035 const std::string instr = GetParam(); TEST_P() local
4055 const std::string instr = GetParam(); TEST_P() local
4075 const std::string instr = GetParam(); TEST_P() local
[all...]

Completed in 18 milliseconds

1...<<11121314151617181920>>...49