[LLVMdev] Classifying Operands & Def/Use Chains
Chris Lattner
sabre at nondot.org
Fri Jan 11 15:12:50 PST 2008
On Jan 11, 2008, at 2:58 PM, David Greene wrote:
>> On mainline, you can use the MachineRegisterInfo class (not
>> MRegisterInfo) to walk all uses and defs (or just one class of them)
>> of any register. Use def_iterator (defs) use_iterator (uses) or
>> reg_iterator (both) to get all uses/defs of a particular register,
>> physical or virtual.
>
> Exactly what I need. Thanks! This must have gone in fairly recently.
Yep, a couple weeks ago.
-Chris
More information about the llvm-dev
mailing list