Return whether this instruction reads and/or writes virtual register Reg.
Declared in <llvm/CodeGen/MachineInstr.h>
std::pair<bool, bool>
readsWritesVirtualRegister(
Register Reg,
SmallVectorImpl<unsigned int>* Ops = nullptr) const;
Partial defines count as both. When Ops is non-null, operand indices for Reg are appended.
Pair of (reads, writes) booleans.
| Name | Description |
|---|---|
| Reg | Virtual register to inspect. |
| Ops | Optional output vector of matching operand indices. |