[LLVMdev] Appropriate DS for implementing worklist

Rekha R rekharamapai at nitc.ac.in
Sun Nov 3 03:29:05 PST 2013


Hi,

I am writing an analysis which requires creating worklist of basic blocks.
The worklist should be in FIFO order. I checked SmallVector (and similar
others) and found out this is working in LIFO order when I use the
functions push_back and pop_back_val to insert and delete elements in the
worklist.

Can someone suggest an appropriate DS to implement my worklist. Note: I am
not concerned about efficiency here.

-- 
Regards,
Rekha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131103/ca057e61/attachment.html>


More information about the llvm-dev mailing list