aco: add src/def count and size for all ALU opcodes

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26163>
This commit is contained in:
Georg Lehmann 2023-11-10 13:09:12 +01:00 committed by Marge Bot
parent d9c3ba3b90
commit 91539713bb
3 changed files with 657 additions and 629 deletions

View file

@ -2298,6 +2298,8 @@ typedef struct {
/* sizes used for input/output modifiers and constants */
const unsigned operand_size[static_cast<int>(aco_opcode::num_opcodes)];
const instr_class classes[static_cast<int>(aco_opcode::num_opcodes)];
const uint32_t definitions[static_cast<int>(aco_opcode::num_opcodes)];
const uint32_t operands[static_cast<int>(aco_opcode::num_opcodes)];
} Info;
extern const Info instr_info;

File diff suppressed because it is too large Load diff

View file

@ -80,6 +80,16 @@ extern const aco::Info instr_info = {
instr_class::${opcodes[name].cls.value},
% endfor
},
{
% for name in opcode_names:
${hex(opcodes[name].definitions)},
% endfor
},
{
% for name in opcode_names:
${hex(opcodes[name].operands)},
% endfor
},
};
}