<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 11 June 2017 at 23:25, Jeremy Lakeman <span dir="ltr"><<a href="mailto:Jeremy.Lakeman@gmail.com" target="_blank">Jeremy.Lakeman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm certainly no expert, but how you use that Value* would depend on what you want to do with it.<br><br>From the documentation, it looks like Value->getValueID() is how the RTTI implementation determines the subclass.<br>So you could switch over the values returned (defined in llvm/IR/Value.def).<br></div></blockquote><div><br></div><div>In my <llvm-root>/include/llvm/IR/Value.def, there's no mapping between the numeric ID (as returned by getValueID()) and corresponding sub-class.</div><div> </div></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span><div><div dir="ltr"><p>Thanks & Regards,</p>
<div>Dipanjan</div></div></div></span></div></div>
</div></div>