diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-02 02:56:39 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-02 02:56:39 +0800 |
| commit | 49d70380a6a95e4039f6b5e5ccce09671d5b4796 (patch) | |
| tree | c5a265f074ff4fa041b03745cc60218bb9f48a5d /backend/lib/CodeGen/MachineVerifier.cpp | |
| parent | e0c77d80585428818c32886eb8c26755ea8ed159 (diff) | |
| download | rcc-project-49d70380a6a95e4039f6b5e5ccce09671d5b4796.tar.gz rcc-project-49d70380a6a95e4039f6b5e5ccce09671d5b4796.tar.xz | |
[CodeGen] Add machine metadata graphs
Model ordered function-local metadata tuples with explicit embedded-IR and MachineFunction reference scopes. Preserve slot zero, distinct nodes, forward references, and cyclic graphs while verifying function-local closure and cloning the graph deterministically.
Diffstat (limited to 'backend/lib/CodeGen/MachineVerifier.cpp')
| -rw-r--r-- | backend/lib/CodeGen/MachineVerifier.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/lib/CodeGen/MachineVerifier.cpp b/backend/lib/CodeGen/MachineVerifier.cpp index 2fbbd38..2a29343 100644 --- a/backend/lib/CodeGen/MachineVerifier.cpp +++ b/backend/lib/CodeGen/MachineVerifier.cpp @@ -37,6 +37,9 @@ public: auto AttributeResult = Function.attributes().verify(); if (!AttributeResult) return failWith("function attributes", AttributeResult.error()); + auto MetadataResult = Function.metadata().verify(); + if (!MetadataResult) + return failWith("machine metadata", MetadataResult.error()); if (Function.targetState().hasValue()) { auto TargetStateResult = Function.targetState().verify(); if (!TargetStateResult) |
