search for: 4f50d244

Displaying 3 results from an estimated 3 matches for "4f50d244".

2013 Apr 15
0
[LLVMdev] How to implement list in llvm
Hi, I guess you could use a template with a std::vector: you don't need to define right away the type, if you create a template of it. It should look something like that: template<class B> class List { std::vector<B> myList; void insert (int pos, B elem); } template <class B> void List::add (int pos, B elem) { myList.insert(myList.begin()+pos, elem); } Then,
2013 Apr 15
2
[LLVMdev] How to implement list in llvm
Hi! I want to implement a list (which operates like ArrayList in Java). I can use ArrayType from llvm, but at creation time I have to specify size so there is a problem when I want to extend it (I can reallocate it ofc). Moreover I need to implement all the operations (inserting, removing etc.) manually. I though that maybe I can use std::vector, but there is another problem - std::vector is a
2013 Apr 16
2
[LLVMdev] How to implement list in llvm
...t; LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130416/4f50d244/attachment.html>