Getting the original variable name for an LLVM Value

后端 未结 4 687
天涯浪人
天涯浪人 2020-12-04 17:10

The operands for an llvm::User (e.g. instruction) are llvm::Values.

After the mem2reg pass, variables are in SSA form, and their names as corresponding to t

4条回答
  •  广开言路
    2020-12-04 17:41

    If you are using a recent version of Clang some of the other approaches will not work. Instead, use the -fno-discard-value-names flag for clang. This will make the llvm::Values keep their original names

提交回复
热议问题