Hi all, <br><br> I am trying to extract the operands from an instruction, for that i am iterating over the operand list as defined by the user class.<br><br> for (User::op_iterator O = i->op_begin() ;O != i->op_end(); ++O)
<br>{<br>Value *v = *O;<br>llvm::cout << v->getNameStr() ;<br>}<br><br>However, whenever there is a constant operand like a numerical value, it does not displays any value at all, i checked using the hasName() method, for the constant operands the hasName() returns 0. 
<br>Is there anyway I can display/extract these constant values from the instruction ?<br><br>Another question: <br>For and example IR like below,<br><br>%tmp6 = load i32* @glob_var, align 4            ; <i32> [#uses=1]
<br><br>How can i extract the name of the instruction i.e. %tmp6  <br><br>Regards<br>Prabhat<br>