Hello everyone !<br><br>In my LLVM pass, there is `Intruction* I1`. All the used "I1"s are ICMP instructions. *I1->getOperand(0) returns a `Value*` type. From<br><br>    errs()<<"\n"<<*I1->getOperand(0)<<"\n";<br>
    //printed : %3 = load i32* %c, align 4<br>Printed as expected. But I want to use %c. Do you know how I can get %c ? I need to use the value %c in some computations.<br><br>First, I tried<br><br>    for (llvm::Value::use_iterator VI=(*I1->getOperand(0)).use_begin(), VE=(*I1->getOperand(0)).use_end(); VI != VE ; ++VI)<br>
      {<br>        errs()<<"\n "<<**VI<<" \n";<br>        //printed : %cmp3 = icmp ne i32 %3, 0 <br>      }<br>But it is not getting Value* fields. Also, it is printing only one VI per for, so VI cannot increment.<br>
<br>Second, it is a solution of taking the output of errs() in a string and parse the string for %c ? If so, how I can do it? I have problems while trying to declare `static raw_ostream S` in order to take somehow the errs() output.<br>
<br>Thank you for any help !<br>    <br clear="all"><br>-- <br><font style="background-color:rgb(255,255,255);color:rgb(153,153,153)">Best regards,</font><br style="background-color:rgb(255,255,255);color:rgb(153,153,153)">
<font style="background-color:rgb(255,255,255);color:rgb(153,153,153)">Alexandru Ionut Diaconescu</font><br>