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.

Thanks, I also figured it out by inserting a lot of printing statements. In “cast to a {}", what does "{}” mean? MDNode?


What I don’t understand is