<div dir="ltr"><pre style="color:rgb(33,33,33)">Hi,

I want to retrieve the variable names used in a statement, I tried the following snippet, 
but it only gives me the variable named in llvm bitcode. I need the variable name in source code. </pre><pre style=""><font color="#212121">for (auto op = I.op_begin(); op != I.op_end(); op++) {
                        Value* v = op->get();
                        StringRef name = v->getName();
}<br></font></pre><pre style="color:rgb(33,33,33)">Is there specific documentation I can refer to implement this?

Thanks</pre></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><b style="color:rgb(100,100,100);font-family:arial,sans-serif;font-size:14px">Ridwan Shariffdeen</b><br style="color:rgb(100,100,100);font-family:arial,sans-serif;font-size:14px"><span style="color:rgb(100,100,100);font-family:garamond,serif;font-size:small"><span class="inbox-inbox-inbox-inbox-gr_ inbox-inbox-inbox-inbox-gr_131 inbox-inbox-inbox-inbox-gr-alert inbox-inbox-inbox-inbox-gr_spell inbox-inbox-inbox-inbox-gr_inline_cards inbox-inbox-inbox-inbox-gr_run_anim inbox-inbox-inbox-inbox-ContextualSpelling inbox-inbox-inbox-inbox-ins-del inbox-inbox-inbox-inbox-multiReplace" id="inbox-inbox-inbox-inbox-131" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat;color:inherit;font-size:inherit">Graduate</span> Student | National University of Singapore</span><br></div></div>