[llvm-dev] How to use map/set in LLVM to disable automatic sorting?

Mehdi Amini via llvm-dev llvm-dev at lists.llvm.org
Mon Jul 25 13:23:00 PDT 2016


> On Jul 25, 2016, at 12:19 AM, ZhaoKang via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Hello LLVM,
> 
> 
> 
> We found that many LLVM passes use map/set containers to increase the searching efficiency.
> 
> Although map/set has automatic sorting feature, the results after the same pass transformation are still the same.
> 
> If native map/set, we think the order after inserting new element may change.
> 
> So, my question is, does LLVM use its own-defined structure instead of native map/set? Or, LLVM disables such feature for map/set?
> 

I don’t really understand the question, can you provide an example of passes and what problem do you expect?

— 
Mehdi


> Could you give a detailed explanation?
> 
> Thanks!
> 
>  
> Kang
> 
> 
> 
> 
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160725/0559caca/attachment.html>


More information about the llvm-dev mailing list