[LLVMdev] Printing Function Arguments
martinaide1 at yahoo.com
Sun Sep 27 17:06:39 PDT 2009
I am processing the LLVM instructions and right now I am at the 'call'
For now I just want to print the argument type.
For example in the following:
%0 = tail call i32 (...)* @__FFF (i32 8) nounwind; <i32> [#uses=1]
I need to get access to 'i32' and '8' separately.
CallInst *CI = dyn_cast<CallInst>(I);
Value *v = CI->getOperand(1)
I can get the type via v->getType()
but I need to get the '8'.
I can get it via v->getValueID(), but it says not to use that function.
Any other ideas how to access the value '8' ?
I need to access the argument
View this message in context: http://www.nabble.com/Printing-Function-Arguments-tp25638981p25638981.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
More information about the llvm-dev