diff --git a/src/amd/compiler/aco_ir.h b/src/amd/compiler/aco_ir.h index ca9c2efac5b..25ee17c44dd 100644 --- a/src/amd/compiler/aco_ir.h +++ b/src/amd/compiler/aco_ir.h @@ -68,7 +68,7 @@ enum { * * (*) The same is applicable for VOP1 and VOPC instructions. */ -enum class Format : std::uint16_t { +enum class Format : uint16_t { /* Pseudo Instruction Format */ PSEUDO = 0, /* Scalar ALU & Control Formats */ diff --git a/src/amd/compiler/aco_opcodes_h.py b/src/amd/compiler/aco_opcodes_h.py index 2bd77768acf..18b98a134c0 100644 --- a/src/amd/compiler/aco_opcodes_h.py +++ b/src/amd/compiler/aco_opcodes_h.py @@ -28,11 +28,11 @@ template = """\ #ifndef _ACO_OPCODES_ #define _ACO_OPCODES_ -#include +#include <% opcode_names = sorted(opcodes.keys()) %> -enum class aco_opcode : std::uint16_t { +enum class aco_opcode : uint16_t { % for name in opcode_names: ${name}, % endfor