aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/MIR/MIRDocumentParser.h
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-12 01:31:09 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-12 01:31:09 +0800
commitbe04617b2196bf62077909f21ea9df7723aae74f (patch)
treedb84a45498f761850b04fe5f16ed6a424a09a5cb /backend/lib/MIR/MIRDocumentParser.h
parent0e43f63ac7fa5e28497760a0dfec2fe20557bce0 (diff)
downloadrcc-project-be04617b2196bf62077909f21ea9df7723aae74f.tar.gz
rcc-project-be04617b2196bf62077909f21ea9df7723aae74f.tar.xz
[MIR] Create virtual registers referenced by live-ins
Diffstat (limited to 'backend/lib/MIR/MIRDocumentParser.h')
-rw-r--r--backend/lib/MIR/MIRDocumentParser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/lib/MIR/MIRDocumentParser.h b/backend/lib/MIR/MIRDocumentParser.h
index 3fade39..4d1d1ea 100644
--- a/backend/lib/MIR/MIRDocumentParser.h
+++ b/backend/lib/MIR/MIRDocumentParser.h
@@ -70,7 +70,8 @@ private:
[[nodiscard]] bool physicalRegister(std::string_view Text, const TextRange &Range,
PhysicalRegister &Reg);
[[nodiscard]] bool virtualRegister(std::string_view Text, const TextRange &Range,
- const MIParserContext &Context, Register &Reg);
+ MachineFunction &Function, MIParserContext &Context,
+ Register &Reg);
[[nodiscard]] Expected<MachineMetadataReference>
resolveMetadataReference(const MachineFunction &Function, std::uint32_t Slot) const;
[[nodiscard]] bool parseVariableDebugInfo(const yaml::Node &Entry, MachineFunction &Function,