Hi folk,
In the Source Level Debugging document, llvm.dbg.declare takes two
paramters. "The first argument is the alloca for the variable, cast to a
{}*. The second argument is the llvm.dbg.variable containing the description
of the variable." The second parameter corresponds to DIVariable, what is
the corresponding LLVM class of the first parameter? I want to find which
AllocaInst is associated with a given llvm.dbg.declare. Any suggestion?
Thanks,
Neal
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20100717/fa2e97e0/attachment.html>
On Sat, Jul 17, 2010 at 12:00 AM, Neal N. Wang <neal.wang at gmail.com> wrote:> Hi folk, > > In the Source Level Debugging document, llvm.dbg.declare takes two > paramters. "The first argument is the alloca for the variable, cast to a > {}*. The second argument is the llvm.dbg.variable containing the description > of the variable." The second parameter corresponds to DIVariable, what is > the corresponding LLVM class of the first parameter? I want to find which > AllocaInst is associated with a given llvm.dbg.declare. Any suggestion?It is just a cast whose 1st operand is alloca. - Devang
Thanks, I also figured it out by inserting a lot of printing statements. In
"cast to a {}*", what does "{}*" mean? MDNode?
Neal
What I don't understand is
On Mon, Jul 19, 2010 at 10:03 AM, Devang Patel <devang.patel at
gmail.com>wrote:
> On Sat, Jul 17, 2010 at 12:00 AM, Neal N. Wang <neal.wang at
gmail.com>
> wrote:
> > Hi folk,
> >
> > In the Source Level Debugging document, llvm.dbg.declare takes two
> > paramters. "The first argument is the alloca for the variable,
cast to a
> > {}*. The second argument is the llvm.dbg.variable containing the
> description
> > of the variable." The second parameter corresponds to
DIVariable, what
> is
> > the corresponding LLVM class of the first parameter? I want to find
> which
> > AllocaInst is associated with a given llvm.dbg.declare. Any
suggestion?
>
> It is just a cast whose 1st operand is alloca.
> -
> Devang
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20100719/edda892d/attachment.html>