diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-19 04:27:41 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-19 04:27:41 +0800 |
| commit | 307fc0961972ac5264d6f3459978fbec95cad3a9 (patch) | |
| tree | 80eff53db8f62a736a46221d258dcadf7543fa88 /backend/lib/CodeGen/MIRParser/MIRParser.cpp | |
| parent | 6a91664223881226e2b6186561c05ff378a19355 (diff) | |
| download | rcc-project-307fc0961972ac5264d6f3459978fbec95cad3a9.tar.gz rcc-project-307fc0961972ac5264d6f3459978fbec95cad3a9.tar.xz | |
[RISCV][GlobalISel] Select and expand global addresses
Diffstat (limited to 'backend/lib/CodeGen/MIRParser/MIRParser.cpp')
| -rw-r--r-- | backend/lib/CodeGen/MIRParser/MIRParser.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/lib/CodeGen/MIRParser/MIRParser.cpp b/backend/lib/CodeGen/MIRParser/MIRParser.cpp index 3b89491..c7e92a0 100644 --- a/backend/lib/CodeGen/MIRParser/MIRParser.cpp +++ b/backend/lib/CodeGen/MIRParser/MIRParser.cpp @@ -290,6 +290,12 @@ bool MIRDocumentParser::parseFunction(const yaml::Node &Root, MIRDocument &Docum return IRFunction->block(BlockName) != nullptr; }; } + if (Document.EmbeddedIR) { + const EmbeddedIRReferenceIndex *Embedded = &*Document.EmbeddedIR; + Context.GlobalValuePropertiesForName = [Embedded](std::string_view GlobalName) { + return Embedded->globalObjectProperties(GlobalName).value_or(GlobalValueProperties{}); + }; + } std::vector<PendingJumpTable> PendingJumpTables; if (parseFunctionScalars(Root, Function, DocumentInfo) || |
