[LLVMdev] problem with llvm reverse iterator
deepanjana.deb at gmail.com
Sat Nov 13 07:09:40 CST 2010
I am writing an llvm pass wherein I require to iterate MachineBasicBlocks in
reverse. The ilist reverse_iterator is not functioning as expected. Nor is
the ilist iterator working
in reverse (although -- operator is overloaded to do so).
for (MachineFunction::iterator MBBI = mf_->end(), E = mf_->begin();MBBI !=
MachineBasicBlock *MBB = MBBI;
Any suggestion would be helpful.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LLVMdev