diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-27 16:09:44 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-27 16:09:44 +0800 |
| commit | 12dcc180caf1f1e416456277f2dcb92fbe260c3d (patch) | |
| tree | da8322bb19deb2f95ae95a6f2365f26c476f301a /backend/include/rcc/CodeGen/GlobalISel/InstructionSelector.h | |
| parent | 5fd19fbe147eaff6e65e7dc3b63b324d80f19a05 (diff) | |
| download | rcc-project-12dcc180caf1f1e416456277f2dcb92fbe260c3d.tar.gz rcc-project-12dcc180caf1f1e416456277f2dcb92fbe260c3d.tar.xz | |
[GlobalISel] Select each instruction once
Diffstat (limited to 'backend/include/rcc/CodeGen/GlobalISel/InstructionSelector.h')
| -rw-r--r-- | backend/include/rcc/CodeGen/GlobalISel/InstructionSelector.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/backend/include/rcc/CodeGen/GlobalISel/InstructionSelector.h b/backend/include/rcc/CodeGen/GlobalISel/InstructionSelector.h index f45b24d..70771bb 100644 --- a/backend/include/rcc/CodeGen/GlobalISel/InstructionSelector.h +++ b/backend/include/rcc/CodeGen/GlobalISel/InstructionSelector.h @@ -19,12 +19,6 @@ public: [[nodiscard]] virtual Expected<void> select(MachineInstr &Instruction, MachineFunction &Function, const TargetDescription &Target) const = 0; - // Selection matching is read-only and completes before select() mutates MachineIR. - [[nodiscard]] virtual Expected<void> canSelect(const MachineInstr &, const MachineFunction &, - const TargetDescription &) const { - return {}; - } - [[nodiscard]] virtual Expected<void> constrainSelectedInstruction(MachineInstr &, MachineFunction &, const TargetDescription &) const { return {}; |
