mapping virtual registers

Hello,

How can I map llvm variables (virtual registers) to their runtime locations (register/stack location)?

Thank you.

Regards,
Abbey.

Hello Abbey,

The SSA “registers” in LLVM don’t map directly to a runtime location. The easiest way to know where they go or come from is to use metadata to mark their locations at compile time. Compiling with Clang using the debugger information intact should go a long way toward giving you what you need.

Hi Abbey,

How can I map llvm variables (virtual registers) to their runtime locations
(register/stack location)?

in general you can't. Perhaps you are really asking about debug info, in
which case see http://llvm.org/docs/SourceLevelDebugging.html

Ciao,

Duncan.