From 924dcd36ebed84f04729de05ec08b311a36a04c1 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sat, 1 Aug 2026 16:07:24 +0800 Subject: [CodeGen] Add target register descriptions Introduce an immutable register topology for units, subregisters, classes, banks, and preserved masks. Bind instruction descriptors to this topology through TargetDescription so builders, cloning, and verification share one target-aware contract. Add the test-only TestTarget model and positive and negative target fact coverage. --- backend/include/rcc/CodeGen/MachineFunctionCloner.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backend/include/rcc/CodeGen/MachineFunctionCloner.h') diff --git a/backend/include/rcc/CodeGen/MachineFunctionCloner.h b/backend/include/rcc/CodeGen/MachineFunctionCloner.h index 658614f..09877d2 100644 --- a/backend/include/rcc/CodeGen/MachineFunctionCloner.h +++ b/backend/include/rcc/CodeGen/MachineFunctionCloner.h @@ -15,10 +15,10 @@ namespace rcc { -class InstructionSet; class MachineBasicBlock; class MachineFunction; class MachineInstr; +class TargetDescription; struct MachineFunctionCloneOptions final { MachineFunctionStableID NewStableID; @@ -81,12 +81,12 @@ private: const std::unordered_map &Instructions; friend Expected - cloneMachineFunction(const MachineFunction &Source, const InstructionSet &Instructions, + cloneMachineFunction(const MachineFunction &Source, const TargetDescription &Target, MachineFunctionCloneOptions Options); }; [[nodiscard]] Expected -cloneMachineFunction(const MachineFunction &Source, const InstructionSet &Instructions, +cloneMachineFunction(const MachineFunction &Source, const TargetDescription &Target, MachineFunctionCloneOptions Options); } // namespace rcc -- cgit v1.2.3