diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-12 22:37:49 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-12 22:37:49 +0800 |
| commit | 3341938bb644e6fc39afa6a8fcb1306604999e42 (patch) | |
| tree | a7586c0a8a9d3e7e9dbc8709daf4dd76ca51be5f /backend/include/rcc/CodeGen/InlineAsm.h | |
| parent | 0bb35fa2306a66f1f0baf118619b5c1640ed9c01 (diff) | |
| download | rcc-project-3341938bb644e6fc39afa6a8fcb1306604999e42.tar.gz rcc-project-3341938bb644e6fc39afa6a8fcb1306604999e42.tar.xz | |
[RISCV] Split the GlobalISel target components
Diffstat (limited to 'backend/include/rcc/CodeGen/InlineAsm.h')
| -rw-r--r-- | backend/include/rcc/CodeGen/InlineAsm.h | 12 |
1 files changed, 4 insertions, 8 deletions
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<std::uint32_t> 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<std::uint32_t> 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<std::uint32_t>(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"; |
