From 98cae0e8835a1eb8fcb0e43870c04ed934cc51ac Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Thu, 13 Aug 2026 19:38:37 +0800 Subject: [CodeGen] Match LLVM branch relaxation semantics --- backend/include/rcc/CodeGen/InstructionDescriptor.h | 1 + backend/include/rcc/TableGen/Record.h | 1 + 2 files changed, 2 insertions(+) (limited to 'backend/include') diff --git a/backend/include/rcc/CodeGen/InstructionDescriptor.h b/backend/include/rcc/CodeGen/InstructionDescriptor.h index ad71213..15d2162 100644 --- a/backend/include/rcc/CodeGen/InstructionDescriptor.h +++ b/backend/include/rcc/CodeGen/InstructionDescriptor.h @@ -256,6 +256,7 @@ struct InstructionDescriptor final { InstructionFlags Flags; SchedulingClassID SchedulingClass; EncodingCategoryID EncodingCategory; + std::uint32_t SizeInBytes = 0; AssemblyFormatID AssemblyFormat; bool RequiresMemoryOperands = false; PseudoOwner Owner = PseudoOwner::None; diff --git a/backend/include/rcc/TableGen/Record.h b/backend/include/rcc/TableGen/Record.h index a3f8a5c..b085098 100644 --- a/backend/include/rcc/TableGen/Record.h +++ b/backend/include/rcc/TableGen/Record.h @@ -196,6 +196,7 @@ struct SourceInstruction final { std::vector Flags; std::string SchedulingClassSymbol; std::string EncodingCategorySymbol; + std::uint32_t SizeInBytes = 0; std::string AssemblyFormatSymbol; bool RequiresMemoryOperands = false; std::string Owner = "none"; -- cgit v1.2.3