aboutsummaryrefslogtreecommitdiff
path: root/backend/include/rcc/CodeGen/TargetMIRTextInfo.h
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-09 04:40:17 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-09 04:40:17 +0800
commite5fdceb9b869f010a2a75638fd38aaf1867f3008 (patch)
tree023d3e18960956f5ce369739c68aaa2a3e8400e7 /backend/include/rcc/CodeGen/TargetMIRTextInfo.h
parent6c7cecc81a4c7e06e26027e21edd2cfd95a37a0b (diff)
downloadrcc-project-e5fdceb9b869f010a2a75638fd38aaf1867f3008.tar.gz
rcc-project-e5fdceb9b869f010a2a75638fd38aaf1867f3008.tar.xz
[CodeGen] Complete register allocation infrastructure
Diffstat (limited to 'backend/include/rcc/CodeGen/TargetMIRTextInfo.h')
-rw-r--r--backend/include/rcc/CodeGen/TargetMIRTextInfo.h15
1 files changed, 5 insertions, 10 deletions
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<TargetFunctionState> (*)(const MIRTargetNode &Node);
-using MIRTargetFunctionStatePrinter =
- Expected<MIRTargetNode> (*)(const TargetFunctionState &State);
+using MIRTargetFunctionStateParser = Expected<TargetFunctionState> (*)(const MIRTargetNode &Node);
+using MIRTargetFunctionStatePrinter = Expected<MIRTargetNode> (*)(const TargetFunctionState &State);
using MIRTargetConstantParser = Expected<TargetConstant> (*)(std::string_view Text);
using MIRTargetConstantPrinter = Expected<std::string> (*)(const TargetConstant &Constant);
@@ -235,13 +233,10 @@ public:
return Description.FunctionStateType;
}
- [[nodiscard]] Expected<TargetFunctionState>
- parseFunctionState(const MIRTargetNode &Node) const;
- [[nodiscard]] Expected<MIRTargetNode>
- printFunctionState(const TargetFunctionState &State) const;
+ [[nodiscard]] Expected<TargetFunctionState> parseFunctionState(const MIRTargetNode &Node) const;
+ [[nodiscard]] Expected<MIRTargetNode> printFunctionState(const TargetFunctionState &State) const;
[[nodiscard]] Expected<TargetConstant> parseTargetConstant(std::string_view Text) const;
- [[nodiscard]] Expected<std::string>
- printTargetConstant(const TargetConstant &Constant) const;
+ [[nodiscard]] Expected<std::string> printTargetConstant(const TargetConstant &Constant) const;
private:
explicit TargetMIRTextInfo(TargetMIRTextInfoDesc Description)