Skip to content

Commit d877ab1

Browse files
committed
MachineInstr - update TargetRegisterInfo arguments comments. NFC.
"TargetRegisterInfo is passed" -> "TargetRegisterInfo is non-null" - matches the term in the rest of the header.
1 parent 1901f44 commit d877ab1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/include/llvm/CodeGen/MachineInstr.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ class MachineInstr
14381438
unsigned getBundleSize() const;
14391439

14401440
/// Return true if the MachineInstr reads the specified register.
1441-
/// If TargetRegisterInfo is passed, then it also checks if there
1441+
/// If TargetRegisterInfo is non-null, then it also checks if there
14421442
/// is a read of a super-register.
14431443
/// This does not count partial redefines of virtual registers as reads:
14441444
/// %reg1024:6 = OP.
@@ -1461,15 +1461,15 @@ class MachineInstr
14611461
SmallVectorImpl<unsigned> *Ops = nullptr) const;
14621462

14631463
/// Return true if the MachineInstr kills the specified register.
1464-
/// If TargetRegisterInfo is passed, then it also checks if there is
1464+
/// If TargetRegisterInfo is non-null, then it also checks if there is
14651465
/// a kill of a super-register.
14661466
bool killsRegister(Register Reg,
14671467
const TargetRegisterInfo *TRI = nullptr) const {
14681468
return findRegisterUseOperandIdx(Reg, true, TRI) != -1;
14691469
}
14701470

14711471
/// Return true if the MachineInstr fully defines the specified register.
1472-
/// If TargetRegisterInfo is passed, then it also checks
1472+
/// If TargetRegisterInfo is non-null, then it also checks
14731473
/// if there is a def of a super-register.
14741474
/// NOTE: It's ignoring subreg indices on virtual registers.
14751475
bool definesRegister(Register Reg,
@@ -1486,7 +1486,7 @@ class MachineInstr
14861486
}
14871487

14881488
/// Returns true if the register is dead in this machine instruction.
1489-
/// If TargetRegisterInfo is passed, then it also checks
1489+
/// If TargetRegisterInfo is non-null, then it also checks
14901490
/// if there is a dead def of a super-register.
14911491
bool registerDefIsDead(Register Reg,
14921492
const TargetRegisterInfo *TRI = nullptr) const {

0 commit comments

Comments
 (0)