Displaying 2 results from an estimated 2 matches for "getdstty".
Did you mean:
getdestty
2009 Sep 28
0
[LLVMdev] Printing Function Arguments
...parsing the 'inttoptr' instruction.
In that case the loop iterates only once, but then, I want to extract the
values
from which I am casting, _and_ the value to which I am casting. Somehow I
need to
extract the contents of the 'i'.
For that, there are functions like getSrcTy() and getDstTy()
I found them again by browsing the header files (which is not right :)...
say for the inttoptr instruction.
Btw, also the cout << I->getName() returns an empty string for some reason.
I tried I->getName().c_str(), but still the same.
Some simple example, say of parsing 'load...
2009 Sep 28
4
[LLVMdev] Printing Function Arguments
ivtm wrote:
> Hey Oscar,
>
> I want to extract information from the instruction.
>
> Think writing a simple interpreter.
>
> I already have the CallInst instance (described above in the message).
>
> Via ci->getOperand(1) say I can get the 'i32 8' parameter and I can get the
> 'i32' and '8' separately as Nick described.
>
> But I