[LLVMdev] How to get the variable mapping between the sourceandllvm bytecode
Devang Patel
devang.patel at gmail.com
Fri May 14 17:23:05 PDT 2010
>
> Now the mapping will be tmp <---->%1. We can't derive the mapping based on
> "alloca/store" instruction.
If you try llvm-gcc from svn trunk then you'll see llvm.dbg.value
intrinsic replacing llvm.dbg.declare intrinsic when alloca is lowered.
However, as others have said, the optimizer does not guarantee that it
will always be able to preserve variable info accurately.
The real question is, why do you want to map tmp to %1 ?
-
Devang
More information about the llvm-dev
mailing list