From 76d89700953ddd81cf31ab8f260eddf67e93aa85 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Fri, 7 Aug 2026 01:27:41 +0800 Subject: [MIR] Complete document parsing and printing Implement the single LLVM-compatible MIR document path with structured\nembedded-IR references, YAML mappings, constants, and deterministic printing.\n\nKeep pointer LLT widths DataLayout-derived, reject layout-dependent output\nwhen embedded IR is omitted, and record the fixed-baseline compatibility\ncontract and regression coverage. --- backend/lib/CodeGen/MachineMetadata.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backend/lib/CodeGen/MachineMetadata.cpp') diff --git a/backend/lib/CodeGen/MachineMetadata.cpp b/backend/lib/CodeGen/MachineMetadata.cpp index f789a74..756124c 100644 --- a/backend/lib/CodeGen/MachineMetadata.cpp +++ b/backend/lib/CodeGen/MachineMetadata.cpp @@ -27,6 +27,10 @@ namespace { } // namespace +MachineMetadataElement MachineMetadataElement::null() { + return MachineMetadataElement(NullValue{}); +} + Expected MachineMetadataElement::reference(MachineMetadataReference Reference) { if (!Reference.isValid()) { -- cgit v1.2.3