diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-26 23:28:39 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-26 23:28:39 +0800 |
| commit | a72a7a4323fb6eef8e15cc2f1229bcca14879e94 (patch) | |
| tree | 5768e6cd3ad0a025128d9bf7f76a8ee7afe22c12 /backend/lib/CodeGen/RegAllocInternal.h | |
| parent | 7b3dcced70be227bb43e71d84d11a2f15fb25072 (diff) | |
| download | rcc-project-a72a7a4323fb6eef8e15cc2f1229bcca14879e94.tar.gz rcc-project-a72a7a4323fb6eef8e15cc2f1229bcca14879e94.tar.xz | |
[CodeGen] Centralize machine pass property validation
Diffstat (limited to 'backend/lib/CodeGen/RegAllocInternal.h')
| -rw-r--r-- | backend/lib/CodeGen/RegAllocInternal.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/backend/lib/CodeGen/RegAllocInternal.h b/backend/lib/CodeGen/RegAllocInternal.h index 52840cf..3da6387 100644 --- a/backend/lib/CodeGen/RegAllocInternal.h +++ b/backend/lib/CodeGen/RegAllocInternal.h @@ -222,16 +222,6 @@ reserveFunctionRegisters(MachineFunction &Function, std::span<const PhysicalRegi return Result; } -[[nodiscard]] inline Expected<void> -requireAllocationProperties(const MachineFunction &Function, const MachinePassContract &Contract) { - const MachineFunctionProperties Missing = Contract.Requires.missingFrom(Function.properties()); - if (!Missing.empty()) { - return makeUnexpected(ErrorCode::VerificationError, - Contract.Name + " requires properties: " + Missing.toString()); - } - return {}; -} - [[nodiscard]] inline Expected<void> verifyAllocationTrial(MachineFunction &Function, const TargetDescription &Target, const MachinePassContract &Contract) { |
