diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-24 17:30:29 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-24 17:30:29 +0800 |
| commit | 81afb6570000472c182e5b1f540f69382602aaad (patch) | |
| tree | 4fdab5a642e5088cd456662d438e96d195fdc3d4 /backend/lib/CodeGen/PrologueEpilogueInsertion.cpp | |
| parent | 47d0d5140b4616ae4dd7c6d2c3c089ccbfc3b009 (diff) | |
| download | rcc-project-81afb6570000472c182e5b1f540f69382602aaad.tar.gz rcc-project-81afb6570000472c182e5b1f540f69382602aaad.tar.xz | |
[RISCV] Match LLVM emergency spill layout
Diffstat (limited to 'backend/lib/CodeGen/PrologueEpilogueInsertion.cpp')
| -rw-r--r-- | backend/lib/CodeGen/PrologueEpilogueInsertion.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/backend/lib/CodeGen/PrologueEpilogueInsertion.cpp b/backend/lib/CodeGen/PrologueEpilogueInsertion.cpp index 4dc40c0..1a244ed 100644 --- a/backend/lib/CodeGen/PrologueEpilogueInsertion.cpp +++ b/backend/lib/CodeGen/PrologueEpilogueInsertion.cpp @@ -55,7 +55,7 @@ Expected<MachinePassResult> PrologueEpilogueInsertionPass::run(MachineFunction & MachineFunctionCloneOptions{.NewStableID = Function.stableID(), .NewName = std::nullopt}); if (!Trial) return std::unexpected(withErrorContext(Trial.error(), "frame transaction setup failed: ")); - auto TrialRun = runImplementation(*Trial->ClonedFunction, Target); + auto TrialRun = runImplementation(*Trial->ClonedFunction, Target, {}); if (!TrialRun) return std::unexpected( withErrorContext(TrialRun.error(), "frame transaction rejected input: ")); @@ -75,7 +75,7 @@ Expected<MachinePassResult> PrologueEpilogueInsertionPass::run(MachineFunction & withErrorContext(Verified.error(), "frame transaction postcondition failed: ")); } - auto Result = runImplementation(Function, Target); + auto Result = runImplementation(Function, Target, Options); if (!Result) { return std::unexpected(withErrorContext( Result.error(), "frame lowering diverged after successful transaction preflight: ")); @@ -85,8 +85,9 @@ Expected<MachinePassResult> PrologueEpilogueInsertionPass::run(MachineFunction & Expected<MachinePassResult> PrologueEpilogueInsertionPass::runImplementation(MachineFunction &Function, - const TargetDescription &Target) const { - auto Prepared = Info->prepareFrame(Function, Target); + const TargetDescription &Target, + FrameLoweringOptions RunOptions) const { + auto Prepared = Info->prepareFrame(Function, Target, RunOptions); if (!Prepared) return std::unexpected(Prepared.error()); |
