Searched refs:opc (Results 1 - 25 of 86) sorted by relevance

1234

/xsrc/external/mit/MesaLib/dist/src/freedreno/ir3/
H A Dir3_cf.c31 if (instr->opc != OPC_MOV)
89 opc_t opc = conv_src->opc; local in function:all_uses_safe_conv
92 opc_t new_opc = opc;
97 if (!first && opc != new_opc)
100 opc = new_opc;
102 conv_src->opc = opc;
115 assert(use->opc == OPC_MOV);
132 if (conv->opc !
[all...]
H A Dir3_lower_spill.c118 if ((instr->opc == OPC_SPILL_MACRO || instr->opc == OPC_RELOAD_MACRO) &&
123 if (instr->opc == OPC_SPILL_MACRO)
131 if ((instr->opc == OPC_SPILL_MACRO || instr->opc == OPC_RELOAD_MACRO) &&
136 if (instr->opc == OPC_SPILL_MACRO)
146 if (instr->opc == OPC_SPILL_MACRO)
148 else if (instr->opc == OPC_RELOAD_MACRO)
155 if (instr->opc == OPC_SPILL_MACRO)
156 instr->opc
[all...]
H A Dir3_validate.c112 if (phi->opc != OPC_META_PHI)
194 } else if (opc_cat(instr->opc) == 1 || opc_cat(instr->opc) == 6) {
196 } else if (opc_cat(instr->opc) == 0) {
198 } else if (instr->opc == OPC_META_PARALLEL_COPY) {
222 switch (opc_cat(instr->opc)) {
224 if (instr->opc == OPC_MOVMSK || instr->opc == OPC_BALLOT_MACRO) {
230 } else if (instr->opc == OPC_ANY_MACRO || instr->opc
[all...]
H A Dinstr-a3xx.h56 #define _OPC(cat, opc) (((cat) << NOPC_BITS) | opc)
209 /* NOTE that these are 8+opc from their highp equivs, so it's possible
210 * that the high order bit in the opc field has been repurposed for
212 * still use the same opc as highp
247 /* cat5 meta instructions, placed above the cat5 opc field's size */
348 #define opc_cat(opc) ((int)((opc) >> NOPC_BITS))
349 #define opc_op(opc) ((unsigned)((opc)
518 is_sat_compatible(opc_t opc) argument
541 is_mad(opc_t opc) argument
557 is_madsh(opc_t opc) argument
569 is_atomic(opc_t opc) argument
590 is_ssbo(opc_t opc) argument
605 is_isam(opc_t opc) argument
618 is_cat2_float(opc_t opc) argument
642 is_cat3_float(opc_t opc) argument
[all...]
H A Dir3_delay.c87 if (consumer->opc == OPC_END || consumer->opc == OPC_CHMASK)
102 if ((is_mad(consumer->opc) || is_madsh(consumer->opc)) && (n == 2)) {
119 (is_flow(n) && (n->opc != OPC_JUMP) && (n->opc != OPC_B));
147 if (assigner->opc == OPC_META_PHI)
250 if (assigner->opc == OPC_MOVMSK)
274 if (consumer->opc == OPC_SWZ || consumer->opc
[all...]
H A Dir3.c264 if ((instr->opc == OPC_STP || instr->opc == OPC_LDP)) {
270 if (instr->opc == OPC_STP)
276 if ((instr->opc == OPC_BARY_F) && (instr->dsts[0]->flags & IR3_REG_EI))
282 if (instr->opc == OPC_NOP) {
286 info->instrs_per_cat[opc_cat(instr->opc)] += 1 + instr->repeat;
290 if (instr->opc == OPC_MOV) {
429 instr_create(struct ir3_block *block, opc_t opc, int ndst, int nsrc) argument
432 if (1 <= opc_cat(opc))
453 ir3_instr_create(struct ir3_block *block, opc_t opc, in argument
[all...]
H A Dir3_legalize.c144 if (is_meta(n) && (n->opc != OPC_META_TEX_PREFETCH))
161 if (last_n && (last_n->opc == OPC_PREDT)) {
226 if ((n->flags & IR3_INSTR_SS) && (opc_cat(n->opc) >= 5)) {
234 if (list_is_empty(&block->instr_list) && (opc_cat(n->opc) >= 5))
239 ctx->type != MESA_SHADER_COMPUTE && n->opc == OPC_SAMGQ) {
246 samgp->opc = OPC_SAMGP0 + i;
260 if (n->opc == OPC_META_TEX_PREFETCH)
262 } else if (n->opc == OPC_RESINFO) {
270 if ((n->opc == OPC_LDLV) || (n->opc
[all...]
H A Dir3_cp.c178 (is_cat2_float(instr->opc) || is_cat3_float(instr->opc)) ? true : false;
276 if (!is_mad(instr->opc))
363 opc_cat(instr->opc) != 0) {
415 if ((opc_cat(instr->opc) == 3) && (n == 2) &&
429 if (instr->opc == OPC_MOV && !type_float(instr->cat1.src_type))
431 if (!is_cat2_float(instr->opc) && !is_cat3_float(instr->opc))
438 if (is_cat2_float(instr->opc) || is_cat3_float(instr->opc))
[all...]
H A Dir3_dce.c72 if (instr->opc == OPC_END || instr->opc == OPC_CHSH ||
73 instr->opc == OPC_CHMASK)
76 if (instr->opc == OPC_META_SPLIT) {
115 if (so->num_sampler_prefetch && (instr->opc == OPC_META_INPUT) &&
150 if (instr->opc != OPC_META_SPLIT)
H A Dir3_cse.c43 hash = HASH(hash, instr->opc);
60 if (i1->opc != i2->opc)
96 if (instr->opc != OPC_META_COLLECT)
H A Dir3_print.c104 switch (instr->opc) {
126 mesa_log_stream_printf(stream, "_meta:%d", instr->opc);
129 } else if (opc_cat(instr->opc) == 1) {
130 if (instr->opc == OPC_MOV) {
137 disasm_a3xx_instr_name(instr->opc));
140 if (instr->opc != OPC_MOVMSK) {
145 } else if (instr->opc == OPC_B) {
159 mesa_log_stream_printf(stream, "%s", disasm_a3xx_instr_name(instr->opc));
172 if (instr->opc == OPC_LDC)
186 switch (instr->opc) {
[all...]
H A Dir3.h234 opc_t opc; member in struct:ir3_instruction
653 struct ir3_instruction *ir3_instr_create(struct ir3_block *block, opc_t opc,
763 return (opc_cat(instr->opc) == 0);
769 return instr->opc == OPC_KILL || instr->opc == OPC_DEMOTE;
775 return instr->opc == OPC_NOP;
803 switch (instr->opc) {
849 if (instr->opc != OPC_MOV)
866 return (1 <= opc_cat(instr->opc)) && (opc_cat(instr->opc) <
984 cat3_half_opc(opc_t opc) argument
1003 cat3_full_opc(opc_t opc) argument
1022 cat4_half_opc(opc_t opc) argument
1037 cat4_full_opc(opc_t opc) argument
1231 ir3_cat2_int(opc_t opc) argument
1273 ir3_cat2_absneg(opc_t opc) argument
1334 ir3_cat3_absneg(opc_t opc) argument
1475 ir3_try_swap_signedness(opc_t opc,bool * can_swap) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/panfrost/bifrost/valhall/
H A Ddisasm.py221 opc = ins.opcode variable
222 OPCODE_BUCKETS[opc] = OPCODE_BUCKETS.get(opc, []) + [ins]
/xsrc/external/mit/MesaLib/dist/src/freedreno/afuc/
H A Dasm.c146 afuc_opc opc; local in function:emit_instructions
164 opc = OPC_NOP;
193 opc = tok2alu(ai->tok);
198 opc = OPC_ALU;
215 opc = OPC_MOVI;
224 opc = OPC_MOVI;
230 opc = OPC_ALU;
244 opc = OPC_CWRITE6;
246 opc = OPC_CREAD6;
248 opc
[all...]
H A Dafuc.h211 afuc_get_opc(afuc_instr *ai, afuc_opc *opc, bool *rep) argument
214 *opc = ai->opc_r >> 1;
217 *opc = ai->opc_r;
223 afuc_set_opc(afuc_instr *ai, afuc_opc opc, bool rep) argument
225 if (opc < 0x30) {
226 ai->opc_r = opc << 1;
229 ai->opc_r = opc;
H A Ddisasm.c102 print_alu_name(afuc_opc opc, uint32_t instr) argument
104 if (opc == OPC_ADD) {
106 } else if (opc == OPC_ADDHI) {
108 } else if (opc == OPC_SUB) {
110 } else if (opc == OPC_SUBHI) {
112 } else if (opc == OPC_AND) {
114 } else if (opc == OPC_OR) {
116 } else if (opc == OPC_XOR) {
118 } else if (opc == OPC_NOT) {
120 } else if (opc
294 afuc_opc opc; local in function:disasm_instr
420 unsigned opc, p; local in function:disasm_instr
726 afuc_opc opc; local in function:setup_labels
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/freedreno/ir3/
H A Dinstr-a3xx.h37 #define _OPC(cat, opc) (((cat) << NOPC_BITS) | opc)
217 #define opc_cat(opc) ((int)((opc) >> NOPC_BITS))
218 #define opc_op(opc) ((unsigned)((opc) & ((1 << NOPC_BITS) - 1)))
317 uint32_t opc : 4; member in struct:PACKED
424 uint32_t opc : 6; member in struct:PACKED
485 uint32_t opc : 4; member in struct:PACKED
493 switch (_OPC(3, cat3->opc)) {
543 uint32_t opc : 6; member in struct:PACKED
592 uint32_t opc : 5; member in struct:PACKED
723 uint32_t opc : 5; member in struct:PACKED::PACKED
757 uint32_t opc : 5; member in struct:PACKED
784 uint32_t opc : 4; /* presumed, but only a couple known OPCs */ member in struct:PACKED
878 is_mad(opc_t opc) argument
893 is_madsh(opc_t opc) argument
904 is_atomic(opc_t opc) argument
924 is_ssbo(opc_t opc) argument
938 is_isam(opc_t opc) argument
[all...]
H A Dir3_legalize.c185 if ((n->flags & IR3_INSTR_SS) && (opc_cat(n->opc) >= 5)) {
193 if (list_empty(&block->instr_list) && (opc_cat(n->opc) >= 5))
210 ((opc_cat(last->opc) == 2) || (opc_cat(last->opc) == 3))) {
217 ctx->type == MESA_SHADER_VERTEX && n->opc == OPC_SAMGQ) {
222 samgp->opc = OPC_SAMGP0 + i;
237 } else if (n->opc == OPC_RESINFO) {
244 if ((n->opc == OPC_LDLV) || (n->opc == OPC_LDL))
248 } else if (is_atomic(n->opc)) {
[all...]
H A Dir3_cp.c70 if (src_instr->opc == OPC_META_FO)
94 (opc_cat(instr->opc) > 1) &&
116 switch (opc_cat(instr->opc)) {
123 valid_flags = ir3_cat2_absneg(instr->opc) |
126 if (ir3_cat2_int(instr->opc))
151 valid_flags = ir3_cat3_absneg(instr->opc) |
199 if ((instr->opc == OPC_LDL) && (n != 1))
202 if ((instr->opc == OPC_STL) && (n != 2))
208 if (is_atomic(instr->opc) && (n != 0))
211 if (is_atomic(instr->opc)
[all...]
H A Dir3.h161 opc_t opc; member in struct:ir3_instruction
535 struct ir3_instruction * ir3_instr_create(struct ir3_block *block, opc_t opc);
537 opc_t opc, int nreg);
599 return (opc_cat(instr->opc) == 0);
604 return instr->opc == OPC_KILL;
609 return instr->opc == OPC_NOP;
620 switch (instr->opc) {
650 return (1 <= opc_cat(instr->opc)) && (opc_cat(instr->opc) <= 3);
655 return (opc_cat(instr->opc)
819 ir3_cat2_int(opc_t opc) argument
861 ir3_cat2_absneg(opc_t opc) argument
921 ir3_cat3_absneg(opc_t opc) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/freedreno/isa/
H A Dencode.c28 #include "ir3/instr-a3xx.h" // TODO move opc's and other useful things to ir3-instr.h or so
76 * encoding, so there are some cases where we need to fixup the opc
82 if (instr->opc == OPC_B) {
99 } else if (instr->opc == OPC_MOV) {
114 } else if (instr->opc == OPC_DEMOTE) {
117 is_atomic(instr->opc) && (instr->flags & IR3_INSTR_G)) {
118 return instr->opc - OPC_ATOMIC_ADD + OPC_ATOMIC_B_ADD;
120 if (instr->opc == OPC_RESINFO) {
122 } else if (instr->opc == OPC_LDIB) {
124 } else if (instr->opc
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a2xx/
H A Ddisasm-a2xx.c129 #define INSTR(opc, num_srcs) [opc] = { num_srcs, #opc }
439 #define INSTR(opc, name, fxn) [opc] = { name, fxn }
464 printf("%s", fetch_instructions[fetch->opc].name);
465 fetch_instructions[fetch->opc].fxn(fetch);
477 return (cf->opc == EXEC) ||
478 (cf->opc == EXEC_END) ||
479 (cf->opc
[all...]
/xsrc/external/mit/MesaLib/dist/src/freedreno/ir2/
H A Ddisasm-a2xx.c144 #define INSTR(opc, num_srcs) [opc] = {num_srcs, #opc}
460 #define INSTR(opc, name, fxn) [opc] = {name, fxn}
486 printf("%s", fetch_instructions[fetch->opc].name);
487 fetch_instructions[fetch->opc].fxn(fetch);
500 return (cf->opc == EXEC) || (cf->opc == EXEC_END) ||
501 (cf->opc
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/etnaviv/
H A Detnaviv_disasm.c38 uint32_t opc : 6; member in struct:instr
459 #define OPC(opc) [INST_OPCODE_##opc] = {#opc, print_opc_default}
460 #define OPC_MOV(opc) [INST_OPCODE_##opc] = {#opc, print_opc_mov}
461 #define OPC_TEX(opc) [INST_OPCODE_##opc] = {#opc, print_opc_te
523 const unsigned opc = instr->opc | (instr->opcode_bit6 << 6); local in function:print_instr
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/etnaviv/
H A Detnaviv_disasm.c41 uint32_t opc : 6; member in struct:instr
458 #define OPC(opc) [INST_OPCODE_##opc] = {#opc, print_opc_default}
459 #define OPC_MOV(opc) [INST_OPCODE_##opc] = {#opc, print_opc_mov}
460 #define OPC_TEX(opc) [INST_OPCODE_##opc] = {#opc, print_opc_te
530 const unsigned opc = instr->opc | (instr->opcode_bit6 << 6); local in function:print_instr
[all...]

Completed in 25 milliseconds

1234