search for: debuginfobuilder

Displaying 20 results from an estimated 24 matches for "debuginfobuilder".

2009 Jan 07
3
[LLVMdev] LLVM DebugInfoBuilder
...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 prod...
2009 Jan 07
0
[LLVMdev] LLVM DebugInfoBuilder
On Jan 7, 2009, at 1:48 PM, Talin wrote: > Fine by me :) Is it ok to remove DebugInfoBuilder now? I don't think that anything in the tree is using it, what do you think Talin? -Chris > > > 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, > &gt...
2009 Jan 07
2
[LLVMdev] LLVM DebugInfoBuilder
Looking at DebugInfo.h, there are a couple of minor features that DebugInfoBuilder that I would miss: 1) The ability to pass in an LLVM type and have it figure out the size, alignment, etc. without having to explicitly pass those values in as parameters to the builder call. 2) The ability for the size & alignment to be specified as Constants rather than as int64 so that the...
2009 Jan 07
0
[LLVMdev] LLVM DebugInfoBuilder
DebugInfo.h is very light weight interface that allows one to manipulate llvm values that holds debugging information directly. On Jan 7, 2009, at 3:22 PM, Talin wrote: > Looking at DebugInfo.h, there are a couple of minor features that > DebugInfoBuilder that I would miss: > > 1) The ability to pass in an LLVM type and have it figure out the > size, alignment, etc. without having to explicitly pass those values > in as parameters to the builder call. This can be added. But note, LLVM type lose lots info that can be expressed in a...
2009 Jan 07
2
[LLVMdev] LLVM DebugInfoBuilder
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 n...
2009 Jan 07
0
[LLVMdev] LLVM DebugInfoBuilder
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...
2009 Sep 22
3
[LLVMdev] DebugFactory
On Tue, Sep 22, 2009 at 9:21 AM, Devang Patel <devang.patel at gmail.com> wrote: > On Tue, Sep 22, 2009 at 12:14 AM, Talin <viridia at gmail.com> wrote: >> So, one feature of the late, lamented DebugInfoBuilder that I am missing >> quite badly, and which is not available in the current DIFactory, is the >> ability to specify structure offsets abstractly. The DebugFactory >> requires that you pass in structure offset information as ints, whereas >> DebugInfoBuilder had "offsetO...
2009 Jan 07
0
[LLVMdev] LLVM DebugInfoBuilder
You are completely correct - the DebugInfoBuilder class as it currently stands is only half finished. I've been meaning to work on it further, however before that can happen I need to actually try and use the basic block stuff in a real program so that I can get a feel for how it works and what the API should look like. It may be a while b...
2009 Jan 07
1
[LLVMdev] LLVM DebugInfoBuilder
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 n...
2009 Sep 22
0
[LLVMdev] DebugFactory
...t 9:21 AM, Devang Patel <devang.patel at gmail.com>wrote: > On Tue, Sep 22, 2009 at 9:21 AM, Devang Patel <devang.patel at gmail.com> > wrote: > > On Tue, Sep 22, 2009 at 12:14 AM, Talin <viridia at gmail.com> wrote: > >> So, one feature of the late, lamented DebugInfoBuilder that I am missing > >> quite badly, and which is not available in the current DIFactory, is the > >> ability to specify structure offsets abstractly. The DebugFactory > >> requires that you pass in structure offset information as ints, whereas > >> DebugInfoBuild...
2009 Sep 23
1
[LLVMdev] DebugFactory
...vang.patel at gmail.com> > wrote: >> >> On Tue, Sep 22, 2009 at 9:21 AM, Devang Patel <devang.patel at gmail.com> >> wrote: >> > On Tue, Sep 22, 2009 at 12:14 AM, Talin <viridia at gmail.com> wrote: >> >> So, one feature of the late, lamented DebugInfoBuilder that I am >> >> missing >> >> quite badly, and which is not available in the current DIFactory, is >> >> the >> >> ability to specify structure offsets abstractly. The DebugFactory >> >> requires that you pass in structure offset informati...
2008 May 23
1
[LLVMdev] DebugInfoBuilder?
Evan Cheng wrote: > I don't think so. Contribution welcome! :-) LLVM debugging support > isn't anywhere near where it needs to be. > Well, here's a rough sketch of what I was thinking of: class DebugInfoBuilder { public: /// Constructor DebugInfoBuilder(); /// Return the type defined by llvm.dbg.anchor.type StructType * GetAnchorType() const; /// Set the reference to the module where we will insert debugging information. /// Also defines the debug info types for the module an...
2008 May 21
2
[LLVMdev] DebugInfoBuilder?
Are there any utility classes, similar to IRBuilder, for creating source level debugging info? -- Talin
2008 May 21
0
[LLVMdev] DebugInfoBuilder?
I don't think so. Contribution welcome! :-) LLVM debugging support isn't anywhere near where it needs to be. Evan On May 20, 2008, at 9:53 PM, Talin wrote: > Are there any utility classes, similar to IRBuilder, for creating > source > level debugging info? > > -- Talin > > _______________________________________________ > LLVM Developers mailing list >
2009 Sep 23
2
[LLVMdev] DebugFactory
On Sep 22, 2009, at 4:49 PM, Talin wrote: > > // Calculate the size of the specified LLVM type. > Constant * DebugInfoBuilder::getSize(const Type * type) { > Constant * one = ConstantInt::get(Type::Int32Ty, 1); > return ConstantExpr::getPtrToInt( > ConstantExpr::getGetElementPtr( > ConstantPointerNull::get(PointerType::getUnqual(type)), > &one, 1), Type::Int32Ty);...
2009 Sep 22
2
[LLVMdev] DebugFactory
So, one feature of the late, lamented DebugInfoBuilder that I am missing quite badly, and which is not available in the current DIFactory, is the ability to specify structure offsets abstractly. The DebugFactory requires that you pass in structure offset information as ints, whereas DebugInfoBuilder had "offsetOf" and "alignOf"...
2009 Sep 22
0
[LLVMdev] DebugFactory
On Tue, Sep 22, 2009 at 12:14 AM, Talin <viridia at gmail.com> wrote: > So, one feature of the late, lamented DebugInfoBuilder that I am missing > quite badly, and which is not available in the current DIFactory, is the > ability to specify structure offsets abstractly. The DebugFactory > requires that you pass in structure offset information as ints, whereas > DebugInfoBuilder had "offsetOf" and &quo...
2009 Sep 23
0
[LLVMdev] DebugFactory
On Wed, Sep 23, 2009 at 1:51 PM, Dan Gohman <gohman at apple.com> wrote: > > On Sep 22, 2009, at 4:49 PM, Talin wrote: > >> >> // Calculate the size of the specified LLVM type. >> Constant * DebugInfoBuilder::getSize(const Type * type) { >> Constant * one = ConstantInt::get(Type::Int32Ty, 1); >> return ConstantExpr::getPtrToInt( >> ConstantExpr::getGetElementPtr( >> ConstantPointerNull::get(PointerType::getUnqual(type)), >> &one, 1),...
2009 Sep 23
2
[LLVMdev] DebugFactory
...9 at 2:27 PM, Talin <viridia at gmail.com> wrote: > On Wed, Sep 23, 2009 at 1:51 PM, Dan Gohman <gohman at apple.com> wrote: >> >> On Sep 22, 2009, at 4:49 PM, Talin wrote: >>> >>> // Calculate the size of the specified LLVM type. >>> Constant * DebugInfoBuilder::getSize(const Type * type) { >>>    Constant * one = ConstantInt::get(Type::Int32Ty, 1); >>>    return ConstantExpr::getPtrToInt( >>>        ConstantExpr::getGetElementPtr( >>>            ConstantPointerNull::get(PointerType::getUnqual(type)), >>>      ...
2009 Jan 08
0
[LLVMdev] LLVMdev Digest, Vol 55, Issue 16
...t..." > > > Today's Topics: > > 1. Re: LLVM optmization (Bill Wendling) > 2. Re: opt pass plugins on Windows? (Martin Tofall) > 3. Re: Private headers and testing (Misha Brukman) > 4. Re: Private headers and testing (Chris Lattner) > 5. Re: LLVM DebugInfoBuilder (Chris Lattner) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 7 Jan 2009 11:40:02 -0800 > From: "Bill Wendling" <isanbard at gmail.com> > Subject: Re: [LLVMdev] LLVM optmization > To: "LLVM...