Displaying 1 result from an estimated 1 matches for "skiptonextv".
Did you mean:
skiptonextval
2005 Jul 30
1
[LLVMdev] Iterator to enumerate machine operands
I want to enumerate all the operands of a machine instruction, but the
iterator seems to skip everything except virtual registers. Is this by
design?
MachineInstr.h
<code>
template<class MITy, class VTy>
class ValOpIterator : public forward_iterator<VTy, ptrdiff_t> {
void skipToNextVal() {
while (i < MI->getNumOperands() &&
!( (MI->getOperand(i).getType() ==
MachineOperand::MO_VirtualRegister ||
MI->getOperand(i).getType() == MachineOperand::MO_CCRegister)
&& MI->getOperand(i).getVRegValue() != 0...