[LLVMdev] An explanation to ConstantInt
varun729 at gmail.com
Sun Jan 20 15:32:25 PST 2013
I am new to LLVM mailing list! Am I right in adding [LLVMdev] to the
subject? Or is it for some other purpose, I just saw that everyone does
Here is my problem. I am running my program using JIT. Once the
program execution is complete, the control goes back to the program
which initiated the JIT. I want to know the value of one of the global
variables in my program.
Since the variable is a global variable, I can get the pointer to it using
the ExecutionEngine, and then obtain the value.
I see the hierarchy as:
GlobalVariable -> GlobalValue -> Constant
ConstantInt -> Constant
I can actually get the value of a ConstantInt variable using getValue().
I am getting confused with the nomenclature of Constant. Any
explanation for why it is called Constant?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev