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/CodeGen/InlineAsm.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'backend/include/rcc/CodeGen/InlineAsm.h') diff --git a/backend/include/rcc/CodeGen/InlineAsm.h b/backend/include/rcc/CodeGen/InlineAsm.h index 492161f..15c0de6 100644 --- a/backend/include/rcc/CodeGen/InlineAsm.h +++ b/backend/include/rcc/CodeGen/InlineAsm.h @@ -28,8 +28,7 @@ enum class InlineAsmExtraInfoFlag : std::uint32_t { class InlineAsmExtraInfo final { public: - explicit constexpr InlineAsmExtraInfo(std::uint32_t RawValue = 0) noexcept - : Value(RawValue) {} + explicit constexpr InlineAsmExtraInfo(std::uint32_t RawValue = 0) noexcept : Value(RawValue) {} [[nodiscard]] constexpr std::uint32_t rawValue() const noexcept { return Value; @@ -193,8 +192,7 @@ public: } [[nodiscard]] constexpr std::optional matchingOperand() const noexcept { - return isMatched() ? std::optional((Value >> PayloadShift) & MatchedOperandMask) - : std::nullopt; + return isMatched() ? std::optional((Value >> PayloadShift) & MatchedOperandMask) : std::nullopt; } [[nodiscard]] constexpr std::optional registerClass() const noexcept { @@ -226,8 +224,7 @@ public: return true; } - [[nodiscard]] constexpr bool - setMemoryConstraint(InlineAsmMemoryConstraint Constraint) noexcept { + [[nodiscard]] constexpr bool setMemoryConstraint(InlineAsmMemoryConstraint Constraint) noexcept { const std::uint32_t Encoded = static_cast(Constraint); if (Encoded == 0 || Encoded > MatchedOperandMask || isMatched()) return false; @@ -253,8 +250,7 @@ public: return std::nullopt; } - [[nodiscard]] static constexpr std::string_view - kindName(InlineAsmOperandKind Kind) noexcept { + [[nodiscard]] static constexpr std::string_view kindName(InlineAsmOperandKind Kind) noexcept { switch (Kind) { case InlineAsmOperandKind::RegisterUse: return "reguse"; -- cgit v1.2.3