Home
last modified time | relevance | path

Searched refs:new_instr (Results 1 – 11 of 11) sorted by relevance

/third_party/mesa3d/src/freedreno/afuc/
Dparser.y56 new_instr(int tok) in new_instr() function
196 alu_msb_instr: T_OP_MSB reg ',' reg { new_instr($1); dst($2); src2($4); }
198 alu_not_instr: T_OP_NOT reg ',' reg { new_instr($1); dst($2); src2($4); }
199 | T_OP_NOT reg ',' immediate { new_instr($1); dst($2); immed($4); }
201 alu_mov_instr: T_OP_MOV reg ',' reg { new_instr($1); dst($2); src1($4); }
203 new_instr($1); dst($2); immed($4); shift($6);
205 | T_OP_MOV reg ',' immediate { new_instr($1); dst($2); immed($4); }
207 new_instr($1); dst($2); label($4); shift($6);
209 | T_OP_MOV reg ',' T_LABEL_REF { new_instr($1); dst($2); label($4); }
211 alu_2src_op: T_OP_ADD { new_instr($1); }
[all …]
/third_party/mesa3d/src/freedreno/ir3/
Dir3_parser.y94 static struct ir3_instruction * new_instr(opc_t opc) in new_instr() function
773 cat0_instr: T_OP_NOP { new_instr(OPC_NOP); }
774 | T_OP_BR { new_instr(OPC_B)->cat0.brtype = BRANCH_PLAIN; } cat0_src1 ',' …
775 | T_OP_BRAO { new_instr(OPC_B)->cat0.brtype = BRANCH_OR; } cat0_src1 ',' …
776 | T_OP_BRAA { new_instr(OPC_B)->cat0.brtype = BRANCH_AND; } cat0_src1 ','…
777 | T_OP_BRAC '.' integer { new_instr(OPC_B)->cat0.brtype = BRANCH_CONST; instr->cat…
778 | T_OP_BANY { new_instr(OPC_B)->cat0.brtype = BRANCH_ANY; } cat0_src1 ',' ca…
779 | T_OP_BALL { new_instr(OPC_B)->cat0.brtype = BRANCH_ALL; } cat0_src1 ',' ca…
780 | T_OP_BRAX { new_instr(OPC_B)->cat0.brtype = BRANCH_X; } cat0_immed
781 | T_OP_JUMP { new_instr(OPC_JUMP); } cat0_immed
[all …]
Dir3.c465 struct ir3_instruction *new_instr = instr_create( in ir3_instr_clone() local
469 dsts = new_instr->dsts; in ir3_instr_clone()
470 srcs = new_instr->srcs; in ir3_instr_clone()
471 *new_instr = *instr; in ir3_instr_clone()
472 new_instr->dsts = dsts; in ir3_instr_clone()
473 new_instr->srcs = srcs; in ir3_instr_clone()
475 insert_instr(instr->block, new_instr); in ir3_instr_clone()
478 new_instr->dsts_count = 0; in ir3_instr_clone()
479 new_instr->srcs_count = 0; in ir3_instr_clone()
482 ir3_dst_create(new_instr, reg->num, reg->flags); in ir3_instr_clone()
[all …]
Dir3_sched.c847 struct ir3_instruction *new_instr = ir3_instr_clone(orig_instr); in split_instr() local
848 di(new_instr, "split instruction"); in split_instr()
849 sched_node_init(ctx, new_instr); in split_instr()
850 return new_instr; in split_instr()
1194 struct ir3_instruction *new_instr = NULL; in sched_block() local
1203 new_instr = in sched_block()
1206 new_instr = in sched_block()
1209 new_instr = split_pred(ctx); in sched_block()
1219 if (new_instr) { in sched_block()
1220 list_delinit(&new_instr->node); in sched_block()
[all …]
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_atomics_to_ssbo.c91 nir_intrinsic_instr *new_instr = in lower_instr() local
101 new_instr->src[0] = nir_src_for_ssa(buffer); in lower_instr()
102 nir_src_copy(&new_instr->src[1], &instr->src[0]); in lower_instr()
103 new_instr->src[2] = nir_src_for_ssa(temp); in lower_instr()
110 new_instr->src[0] = nir_src_for_ssa(buffer); in lower_instr()
111 nir_src_copy(&new_instr->src[1], &instr->src[0]); in lower_instr()
112 new_instr->src[2] = nir_src_for_ssa(temp); in lower_instr()
116 new_instr->src[0] = nir_src_for_ssa(buffer); in lower_instr()
117 nir_src_copy(&new_instr->src[1], &instr->src[0]); in lower_instr()
121 new_instr->src[0] = nir_src_for_ssa(buffer); in lower_instr()
[all …]
Dnir_opt_cse.c36 dominates(const nir_instr *old_instr, const nir_instr *new_instr) in dominates() argument
38 return nir_block_dominates(old_instr->block, new_instr->block); in dominates()
Dnir_opt_vectorize.c372 nir_instr *new_instr = instr_try_combine(nir, instr_set, in vec_instr_set_add_or_rewrite() local
374 if (new_instr) { in vec_instr_set_add_or_rewrite()
375 if (instr_can_rewrite(new_instr, nir->options->vectorize_vec2_16bit) && in vec_instr_set_add_or_rewrite()
376 (!filter || filter(new_instr, data))) in vec_instr_set_add_or_rewrite()
377 _mesa_set_add(instr_set, new_instr); in vec_instr_set_add_or_rewrite()
Dnir_opt_constant_folding.c206 nir_intrinsic_instr *new_instr = in try_fold_intrinsic() local
208 nir_builder_instr_insert(b, &new_instr->instr); in try_fold_intrinsic()
Dnir_search.c664 nir_algebraic_update_automaton(nir_instr *new_instr, in nir_algebraic_update_automaton() argument
675 add_uses_to_worklist(new_instr, automaton_worklist, states, pass_op_table); in nir_algebraic_update_automaton()
/third_party/mesa3d/src/gallium/drivers/zink/
Dnir_lower_dynamic_bo_access.c48 nir_intrinsic_instr *new_instr = nir_intrinsic_instr_create(b->shader, instr->intrinsic); in recursive_generate_bo_ssa_def() local
49 new_instr->src[0] = nir_src_for_ssa(nir_imm_int(b, start)); in recursive_generate_bo_ssa_def()
52 nir_src_copy(&new_instr->src[i], &instr->src[i]); in recursive_generate_bo_ssa_def()
55 …nir_intrinsic_set_align(new_instr, nir_intrinsic_align_mul(instr), nir_intrinsic_align_offset(inst… in recursive_generate_bo_ssa_def()
57 nir_intrinsic_set_range(new_instr, nir_intrinsic_range(instr)); in recursive_generate_bo_ssa_def()
59 new_instr->num_components = instr->num_components; in recursive_generate_bo_ssa_def()
60 nir_ssa_dest_init(&new_instr->instr, &new_instr->dest, in recursive_generate_bo_ssa_def()
63 nir_builder_instr_insert(b, &new_instr->instr); in recursive_generate_bo_ssa_def()
64 return &new_instr->dest.ssa; in recursive_generate_bo_ssa_def()
79 …nir_intrinsic_instr *new_instr = nir_instr_as_intrinsic(nir_instr_clone(b->shader, &instr->instr)); in generate_store_ssbo_ssa_def() local
[all …]
/third_party/mesa3d/src/amd/compiler/
Daco_optimizer.cpp1202 SMEM_instruction* new_instr = create_instruction<SMEM_instruction>( in label_instruction() local
1204 new_instr->operands[0] = smem.operands[0]; in label_instruction()
1205 new_instr->operands[1] = Operand::c32(offset); in label_instruction()
1207 new_instr->operands[2] = smem.operands[2]; in label_instruction()
1208 new_instr->operands.back() = Operand(base); in label_instruction()
1210 new_instr->definitions[0] = smem.definitions[0]; in label_instruction()
1211 new_instr->sync = smem.sync; in label_instruction()
1212 new_instr->glc = smem.glc; in label_instruction()
1213 new_instr->dlc = smem.dlc; in label_instruction()
1214 new_instr->nv = smem.nv; in label_instruction()
[all …]