Hello <br><br>How to get the type of an Operand ?<br><br>so for example I want to get the type of the operand(0) in this istruction <br><br> %arrayidx22 = getelementptr [1000 x double]* %C, i64 0, i64 %indvar67 ; <double*> [#uses=1] <br>
<br>I tried (II->getOperand(0))->getType() ) but this give me an adress (I think) (some think like 0x1253.. )<br><br>also I tried to get the type of the instruction with <br><br>switch (II->getType()->getTypeID()) { case Type::FloatTyID: <br>
case Type::DoubleTyID: <br> case Type::IntegerTyID: <br> default: ;<br>
} <br><br>It works well exept for the getelementptr instruction !!! ?? <br><br>so Please how to get the Operand type ? (I mean that tell me it is a Double or a float .... ) <br>
<br>Thank you so much <br>