From 3341938bb644e6fc39afa6a8fcb1306604999e42 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Wed, 12 Aug 2026 22:37:49 +0800 Subject: [RISCV] Split the GlobalISel target components --- backend/include/rcc/Target/RISCV/RISCVFunctionInfo.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'backend/include/rcc/Target/RISCV/RISCVFunctionInfo.h') diff --git a/backend/include/rcc/Target/RISCV/RISCVFunctionInfo.h b/backend/include/rcc/Target/RISCV/RISCVFunctionInfo.h index 2720830..6a05096 100644 --- a/backend/include/rcc/Target/RISCV/RISCVFunctionInfo.h +++ b/backend/include/rcc/Target/RISCV/RISCVFunctionInfo.h @@ -19,8 +19,7 @@ namespace riscv { class RISCVFunctionInfo final { public: - RISCVFunctionInfo(std::int32_t VarArgsFrameIndex = 0, - std::int32_t VarArgsSaveSize = 0) noexcept + RISCVFunctionInfo(std::int32_t VarArgsFrameIndex = 0, std::int32_t VarArgsSaveSize = 0) noexcept : VarArgsFrameIndex(VarArgsFrameIndex), VarArgsSaveSize(VarArgsSaveSize) {} [[nodiscard]] static constexpr TargetFunctionStateTypeID stableTypeID() noexcept { @@ -32,12 +31,11 @@ public: } [[nodiscard]] Expected verify() const; - [[nodiscard]] Expected - clone(const MachineFunctionCloneContext &Context) const; + [[nodiscard]] Expected clone(const MachineFunctionCloneContext &Context) const; [[nodiscard]] std::string print() const; [[nodiscard]] Expected> encode() const; - [[nodiscard]] static Expected - decode(std::uint32_t Version, std::span Payload); + [[nodiscard]] static Expected decode(std::uint32_t Version, + std::span Payload); [[nodiscard]] std::int32_t varArgsFrameIndex() const noexcept { return VarArgsFrameIndex; @@ -47,8 +45,7 @@ public: return VarArgsSaveSize; } - friend bool operator==(const RISCVFunctionInfo &Left, - const RISCVFunctionInfo &Right) = default; + friend bool operator==(const RISCVFunctionInfo &Left, const RISCVFunctionInfo &Right) = default; private: std::int32_t VarArgsFrameIndex = 0; -- cgit v1.2.3