aboutsummaryrefslogtreecommitdiff
path: root/backend/include/rcc/MIR/MIDebugSyntax.h
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-11 17:37:42 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-11 17:37:42 +0800
commit6a7b083f322f4ac47e58cbf9d4d5fd4d1f6fecd0 (patch)
treef363c502f0e2b9cda2f12928049275a433db6ad4 /backend/include/rcc/MIR/MIDebugSyntax.h
parentadcf8c9b1bd1b47e00bf859693112cea1f7e8c9f (diff)
downloadrcc-project-6a7b083f322f4ac47e58cbf9d4d5fd4d1f6fecd0.tar.gz
rcc-project-6a7b083f322f4ac47e58cbf9d4d5fd4d1f6fecd0.tar.xz
[MIR] Accept fixed-baseline LLVM syntax
Diffstat (limited to 'backend/include/rcc/MIR/MIDebugSyntax.h')
-rw-r--r--backend/include/rcc/MIR/MIDebugSyntax.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/backend/include/rcc/MIR/MIDebugSyntax.h b/backend/include/rcc/MIR/MIDebugSyntax.h
index a8427dc..4952128 100644
--- a/backend/include/rcc/MIR/MIDebugSyntax.h
+++ b/backend/include/rcc/MIR/MIDebugSyntax.h
@@ -5,6 +5,8 @@
#include <cstdint>
#include <optional>
+#include <span>
+#include <string>
#include <string_view>
namespace rcc::mir {
@@ -12,6 +14,13 @@ namespace rcc::mir {
[[nodiscard]] std::optional<std::uint64_t>
parseDIExpressionOpcodeName(std::string_view Name) noexcept;
+[[nodiscard]] std::optional<std::uint64_t>
+parseDIExpressionAttributeEncodingName(std::string_view Name) noexcept;
+
+[[nodiscard]] std::string invalidDIExpressionElementMessage(std::string_view Name);
+
+[[nodiscard]] std::string formatDIExpression(std::span<const std::uint64_t> Elements);
+
} // namespace rcc::mir
#endif // RCC_MIR_MIDEBUGSYNTAX_H