[LLVMdev] reference to %llvm.dbg.variable in source level debug docs
Devang Patel
dpatel at apple.com
Tue Feb 1 09:27:41 PST 2011
On Feb 1, 2011, at 3:58 AM, Eli Bendersky wrote:
> Hello
> I'm reading http://llvm.org/docs/SourceLevelDebugging.html and some
> things aren't clear.
>
> There are a couple of references made to %llvm.dbg.variable, which
> isn't defined anywhere. It it an intrinsic? A global? Could it be a
> relic from the old debug info docs (where it *is* defined?). The same
> goes for llvm.dbg.derivedtype and llvm.dbg.subrange which are also
> referenced but not defined.
It was a stale reference. I fixed the docs.
>
> Additionally, there's this definition:
>
> """
> void %llvm.dbg.declare(metadata, metadata)
>
> This intrinsic provides information about a local element (ex.
> variable.) The first argument is metadata holding alloca for the
> variable.. The second argument is the %llvm.dbg.variable containing
> the description of the variable.
> """
>
> I see all uses of llvm.dbg.declare having values/types as first
> argument, not metadata. What am I missing?
I am seeing
call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !12), !dbg !13
?
-
Devang
More information about the llvm-dev
mailing list