Lines Matching refs:opc
234 opc_t opc;
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) <= 3);
872 return (opc_cat(instr->opc) == 4);
878 return (opc_cat(instr->opc) == 5);
884 return is_tex(instr) || (instr->opc == OPC_META_TEX_PREFETCH);
890 return (opc_cat(instr->opc) == 6);
896 return (opc_cat(instr->opc) == 7);
917 switch (instr->opc) {
936 switch (instr->opc) {
961 switch (instr->opc) {
973 switch (instr->opc) {
984 cat3_half_opc(opc_t opc)
986 switch (opc) {
998 return opc;
1003 cat3_full_opc(opc_t opc)
1005 switch (opc) {
1017 return opc;
1022 cat4_half_opc(opc_t opc)
1024 switch (opc) {
1032 return opc;
1037 cat4_full_opc(opc_t opc)
1039 switch (opc) {
1047 return opc;
1054 return (opc_cat(instr->opc) == -1);
1231 ir3_cat2_int(opc_t opc)
1233 switch (opc) {
1273 ir3_cat2_absneg(opc_t opc)
1275 switch (opc) {
1334 ir3_cat3_absneg(opc_t opc)
1336 switch (opc) {
1376 switch (instr->opc) {
1434 switch (instr->opc) {
1475 ir3_try_swap_signedness(opc_t opc, bool *can_swap)
1477 switch (opc) {
1492 return opc;
1683 switch (instr->opc) {
1856 #define __INSTR0(flag, name, opc) \
1859 struct ir3_instruction *instr = ir3_instr_create(block, opc, 1, 0); \
1868 #define __INSTR1(flag, dst_count, name, opc) \
1873 ir3_instr_create(block, opc, dst_count, 1); \
1886 #define __INSTR2(flag, name, opc) \
1891 struct ir3_instruction *instr = ir3_instr_create(block, opc, 1, 2); \
1903 #define __INSTR3(flag, dst_count, name, opc) \
1910 ir3_instr_create(block, opc, dst_count, 3); \
1925 #define __INSTR4(flag, dst_count, name, opc) \
1932 ir3_instr_create(block, opc, dst_count, 4); \
1948 #define __INSTR5(flag, name, opc) \
1955 struct ir3_instruction *instr = ir3_instr_create(block, opc, 1, 5); \
1970 #define __INSTR6(flag, dst_count, name, opc) \
1978 struct ir3_instruction *instr = ir3_instr_create(block, opc, 1, 6); \
2112 ir3_SAM(struct ir3_block *block, opc_t opc, type_t type, unsigned wrmask,
2129 sam = ir3_instr_create(block, opc, 1, nreg);