aboutsummaryrefslogtreecommitdiff
path: root/backend/include/rcc/CodeGen/MachineInstr.h
diff options
context:
space:
mode:
Diffstat (limited to 'backend/include/rcc/CodeGen/MachineInstr.h')
-rw-r--r--backend/include/rcc/CodeGen/MachineInstr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/include/rcc/CodeGen/MachineInstr.h b/backend/include/rcc/CodeGen/MachineInstr.h
index e7294b4..84d2f0e 100644
--- a/backend/include/rcc/CodeGen/MachineInstr.h
+++ b/backend/include/rcc/CodeGen/MachineInstr.h
@@ -98,6 +98,8 @@ public:
[[nodiscard]] Expected<void> untieOperand(std::size_t Index);
[[nodiscard]] Expected<void> addMemOperand(const MachineMemOperand &MemOperand);
+ [[nodiscard]] Expected<void> replaceMemOperand(std::size_t Index,
+ const MachineMemOperand &MemOperand);
[[nodiscard]] Expected<void> eraseMemOperand(std::size_t Index);
[[nodiscard]] std::span<const MachineMemOperand *const> memOperands() const noexcept {
return MemOperands;