Skip to content

[TargetInstrInfo][NFC] Don't restrict isAddImmediate description to physical registers #72357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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