llvm::MachineInstr::addRegisterKilled

Mark the operand that uses IncomingReg as a kill.

Synopsis

Declared in <llvm/CodeGen/MachineInstr.h>

bool
addRegisterKilled(
    Register IncomingReg,
    TargetRegisterInfo const* RegInfo,
    bool AddIfNotFound = false);

Description

If AddIfNotFound is true, add an implicit use operand when missing.

Return Value

True if the operand exists or was added.

Parameters

NameDescription
IncomingRegRegister that is killed by this instruction.
RegInfoTarget register info used for alias queries.
AddIfNotFoundIf true, add an implicit operand when not found.