What do you guys/girls think about LLVM-C additions that are similar to the following: char * LLVMConvertModuleToC(LLVMModuleRef aModule); Which creates the X-code for a given module (in this case for the language C). - Filip -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100916/2e6cc84d/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: main.cpp Type: application/octet-stream Size: 3068 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100916/2e6cc84d/attachment.obj> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100916/2e6cc84d/attachment-0001.html>
Hi Filip,> What do you guys/girls think about LLVM-C additions that are similar to the > following:as a meta-point, I thought llvm-c was supposed to be a binding, i.e. only contain routines that map directly to existing C++ routines. Here you are adding a bunch of logic that presumably doesn't exist in the C++ library. As such, you should consider first adding a C++ helper function for doing this, then adding an llvm-c binding to it, rather than doing everything in llvm-c. Ciao, Duncan.
To get the cpp version, just remove the first line... It just feels to me that the llvm-c version is the unwanted sibling. And I want to change it in a rapid tempo. To a fully equipped alternative. -Filip Sent from my iPad On 16 Sep 2010, at 10:00, Duncan Sands <baldrick at free.fr> wrote:> Hi Filip, > >> What do you guys/girls think about LLVM-C additions that are similar to the >> following: > > as a meta-point, I thought llvm-c was supposed to be a binding, i.e. only > contain routines that map directly to existing C++ routines. Here you are > adding a bunch of logic that presumably doesn't exist in the C++ library. > As such, you should consider first adding a C++ helper function for doing > this, then adding an llvm-c binding to it, rather than doing everything in > llvm-c. > > Ciao, > > Duncan. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev