[LLVMdev] Get Name of numbered variables

Sean Silva silvas at purdue.edu
Sat Feb 23 18:52:23 PST 2013


The numbers are not explicitly stored in the in-memory representation.
Their only purpose is to name the variable in the textual
representation (I believe the bitcode representation uses a different
scheme based on relative numbering). The numbers are created during
serialization; see SlotTracker::getLocalSlot() in
lib/IR/AsmWriter.cpp.

Also related: <http://llvm.org/docs/FAQ.html#what-api-do-i-use-to-store-a-value-to-one-of-the-virtual-registers-in-llvm-ir-s-ssa-representation>.

-- Sean Silva



More information about the llvm-dev mailing list