From 1b9a3b74661f0637d52f98d2275aa5387c6dc1b6 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Sat, 28 Oct 2023 14:29:23 +0200 Subject: [PATCH] aco: stop using cstdint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We use stdint.h everywhere else. Reviewed-by: Daniel Schürmann --- src/amd/compiler/aco_ir.h | 2 +- src/amd/compiler/aco_opcodes_h.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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