search for: def_iterator

Displaying 4 results from an estimated 4 matches for "def_iterator".

Did you mean: def_itterator
2008 Jan 11
2
[LLVMdev] Classifying Operands & Def/Use Chains
Is there any way to discover whether a particular operand of a MachineInst participates in addressing? That is, if the MachineInst references memory, can I tell, given an operand, whether that operand is part of the address calculation for the instruction? Also, is there any reasonable way to get the set of machine instructions to which the output(s) of some machine instruction flows? The
2008 Jan 11
0
[LLVMdev] Classifying Operands & Def/Use Chains
...; would have to iterate over instructions in the rest of the live > range and see > if the output of the defining instruction is used. 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. -Chris
2008 Jan 11
1
[LLVMdev] Classifying Operands & Def/Use Chains
...er that operand is part of the > > address > > calculation for the instruction? > > Nope, not that I know of. Ok. > 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. -Dave
2013 May 03
1
[LLVMdev] slotindex:getIndex
HI Is there a public function equivalent of calling getIndex I would like to use some sort of starting slot info of a live interval in some pass. I need a way of comparing which virtual register is associated with an earlier source line without relying on any debug info. The relative order is preserved in my case. thanks shrey