Hi list, hi Talin, I'm working on a frontend to generate IR using the IRBuilder from LLVM. Now I want to add source-level-debuginfo and for that I would like to use the DebugInfoBuilder as it is taking some of the burderns. Unfortunately it does not take all of them, yet. As of today, even in SVN, it only can add a part of information needed. Of course I also need stoppoint, declare, function.start and region.start - all the stuff for inside a basicblock. I'm relatively new to LLVM's Builder-idea, but I'm learning fast ;). So, let me ask, before adding anything to this class myself, is it a) the correct way to add the basic-block-stuff to this class? b) has someone already done something in that direction which is can be shared? :) best regards, Patrick. -- Mail: patrick.boettcher at desy.de WWW: http://www.wi-bw.tfh-wildau.de/~pboettch/
On Jan 7, 2009, at 3:22 AM, Patrick Boettcher wrote:> Hi list, > hi Talin, > > I'm working on a frontend to generate IR using the IRBuilder from > LLVM. > > Now I want to add source-level-debuginfo and for that I would like > to use the > DebugInfoBuilder as it is taking some of the burderns. Unfortunately > it does > not take all of them, yet.Instead of DebugInfoBuilder, I'd strongly recommend taking a look at include/llvm/Analysis/DebugInfo.h. This is the interface that llvm- gcc and clang both use to produce debug info. If it's ok with Talin, I'd like to eventually remove DebugInfoBuilder. Analysis/DebugInfo.h provides a nice and efficient API for both creating and reading debug info, and abstracts the clients from the actual form (e.g. serialized into GlobalVariables) that the debug info takes. -Chris
Fine by me :) On Wed, Jan 7, 2009 at 1:35 PM, Chris Lattner <clattner at apple.com> wrote:> > On Jan 7, 2009, at 3:22 AM, Patrick Boettcher wrote: > > > Hi list, > > hi Talin, > > > > I'm working on a frontend to generate IR using the IRBuilder from > > LLVM. > > > > Now I want to add source-level-debuginfo and for that I would like > > to use the > > DebugInfoBuilder as it is taking some of the burderns. Unfortunately > > it does > > not take all of them, yet. > > Instead of DebugInfoBuilder, I'd strongly recommend taking a look at > include/llvm/Analysis/DebugInfo.h. This is the interface that llvm- > gcc and clang both use to produce debug info. If it's ok with Talin, > I'd like to eventually remove DebugInfoBuilder. Analysis/DebugInfo.h > provides a nice and efficient API for both creating and reading debug > info, and abstracts the clients from the actual form (e.g. serialized > into GlobalVariables) that the debug info takes. > > -Chris > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-- -- Talin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090107/ea4cd9bd/attachment.html>