[LLVMdev] reference to %llvm.dbg.variable in source level debug docs

Eli Bendersky eliben at gmail.com
Tue Feb 1 03:58:57 PST 2011


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.

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?
Thanks in advance,
Eli




More information about the llvm-dev mailing list