[LLVMdev] Is there any general way to figure out dynamically allocated points?
xiaolong.snake at gmail.com
Fri Jun 18 15:57:32 CDT 2010
I need to approximate the run-time objects of a program. It is up to
the compiler's front-end to make the decision on how to translate the
new-expressions in C++, however. This obfuscates the way to figure out
dynamically allocated program points in the middle-end (e.g. LLVM).
So I am wondering if there is any general way to do so? Does the
front-end provide any hint(s) to the middle-end to facilitate to do so?
Particularly, can I distinguish the call arising from the
new-expression from various calls if I use llvm-g++ as the front-end?
PS: Under llvm-g++, a new expression is translate into this function
call i8* @_Znam(..)
More information about the LLVMdev