Skip to content

Commit

Permalink
[TargetInstrInfo][NFC] Don't restrict isAddImmediate description to p…
Browse files Browse the repository at this point in the history
…hysical registers (llvm#72357)

None of the in-tree implementations have different behaviour for
physical vs virtual registers, and it seems would work equally well if
used with virtual registers. As such, perhaps it's simplest to just drop
that part of the doc comment.
  • Loading branch information
asb authored Nov 16, 2023
1 parent 7f28e8c commit 42d9232
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/include/llvm/CodeGen/TargetInstrInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -1060,9 +1060,9 @@ class TargetInstrInfo : public MCInstrInfo {
}

/// If the specific machine instruction is an instruction that adds an
/// immediate value and a physical register, and stores the result in
/// the given physical register \c Reg, return a pair of the source
/// register and the offset which has been added.
/// immediate value and a register, and stores the result in the given
/// register \c Reg, return a pair of the source register and the offset
/// which has been added.
virtual std::optional<RegImmPair> isAddImmediate(const MachineInstr &MI,
Register Reg) const {
return std::nullopt;
Expand Down

0 comments on commit 42d9232

Please sign in to comment.