Return the operand index that defines Reg, or -1 if not found.
Declared in <llvm/CodeGen/MachineInstr.h>
int
findRegisterDefOperandIdx(
Register Reg,
TargetRegisterInfo const* TRI,
bool isDead = false,
bool Overlap = false) const;
When isDead is true, non-dead defs are skipped. When Overlap is true, overlapping defs and register masks are considered. With a non-null TRI, super-register defs are also matched.
Operand index of the matching def, or -1.
| Name | Description |
|---|---|
| Reg | Register whose defining operand is sought. |
| TRI | Target register info used for super-register checks. |
| isDead | If true, skip defs that are not dead. |
| Overlap | If true, also match overlapping defs / regmasks. |