aboutsummaryrefslogtreecommitdiff
path: root/backend/include
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-13 19:38:37 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-13 19:38:37 +0800
commit98cae0e8835a1eb8fcb0e43870c04ed934cc51ac (patch)
tree3c5b198778900ed13e2bb429b32ae91bff540548 /backend/include
parent9d1485c0dd4d071e590c18fb8aa02095de3cc830 (diff)
downloadrcc-project-98cae0e8835a1eb8fcb0e43870c04ed934cc51ac.tar.gz
rcc-project-98cae0e8835a1eb8fcb0e43870c04ed934cc51ac.tar.xz
[CodeGen] Match LLVM branch relaxation semantics
Diffstat (limited to 'backend/include')
-rw-r--r--backend/include/rcc/CodeGen/InstructionDescriptor.h1
-rw-r--r--backend/include/rcc/TableGen/Record.h1
2 files changed, 2 insertions, 0 deletions
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<std::string> Flags;
std::string SchedulingClassSymbol;
std::string EncodingCategorySymbol;
+ std::uint32_t SizeInBytes = 0;
std::string AssemblyFormatSymbol;
bool RequiresMemoryOperands = false;
std::string Owner = "none";