From e5fdceb9b869f010a2a75638fd38aaf1867f3008 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sun, 9 Aug 2026 04:40:17 +0800 Subject: [CodeGen] Complete register allocation infrastructure --- backend/include/rcc/CodeGen/TargetMIRTextInfo.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'backend/include/rcc/CodeGen/TargetMIRTextInfo.h') diff --git a/backend/include/rcc/CodeGen/TargetMIRTextInfo.h b/backend/include/rcc/CodeGen/TargetMIRTextInfo.h index b8eb4ee..3ed6022 100644 --- a/backend/include/rcc/CodeGen/TargetMIRTextInfo.h +++ b/backend/include/rcc/CodeGen/TargetMIRTextInfo.h @@ -68,10 +68,8 @@ struct MIRTargetMappingEntry final { const MIRTargetMappingEntry &Right) = default; }; -using MIRTargetFunctionStateParser = - Expected (*)(const MIRTargetNode &Node); -using MIRTargetFunctionStatePrinter = - Expected (*)(const TargetFunctionState &State); +using MIRTargetFunctionStateParser = Expected (*)(const MIRTargetNode &Node); +using MIRTargetFunctionStatePrinter = Expected (*)(const TargetFunctionState &State); using MIRTargetConstantParser = Expected (*)(std::string_view Text); using MIRTargetConstantPrinter = Expected (*)(const TargetConstant &Constant); @@ -235,13 +233,10 @@ public: return Description.FunctionStateType; } - [[nodiscard]] Expected - parseFunctionState(const MIRTargetNode &Node) const; - [[nodiscard]] Expected - printFunctionState(const TargetFunctionState &State) const; + [[nodiscard]] Expected parseFunctionState(const MIRTargetNode &Node) const; + [[nodiscard]] Expected printFunctionState(const TargetFunctionState &State) const; [[nodiscard]] Expected parseTargetConstant(std::string_view Text) const; - [[nodiscard]] Expected - printTargetConstant(const TargetConstant &Constant) const; + [[nodiscard]] Expected printTargetConstant(const TargetConstant &Constant) const; private: explicit TargetMIRTextInfo(TargetMIRTextInfoDesc Description) -- cgit v1.2.3