Displaying 1 result from an estimated 1 matches for "instr_ref".
Did you mean:
inst_ref
2004 Feb 13
0
[LLVMdev] ilistification of MachineBasicBlock
...urse).
Now since the new container holds instances of MachineInstr objects and
not pointers to them for loops that used to be written as:
for (MachineBasicBlock::iterator i = insts.begin(), e =
insts.end(); i != e; ++) {
MachineInstr* instr_pointer = *i;
MachineInstr& instr_ref = **i;
will need to be changed to:
for (MachineBasicBlock::iterator i = insts.begin(), e =
insts.end(); i != e; ++) {
MachineInstr* instr_pointer = i;
MachineInstr& instr_ref = *i;
Note the implicit conversion from ilist<MachineInstr>::iterator to
MachineInstr*...