<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Don,<div class=""><br class=""></div><div class="">Thanks so much, I think that’s pretty much what I was looking for! </div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 23, 2016, at 10:25 AM, don hinton <<a href="mailto:hintonda@gmail.com" class="">hintonda@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Juan:<div class=""><br class=""></div><div class="">I haven't looked at SlotTracker, but have been using MemoryDependenceWrapperPass to do something similar.</div><div class=""><br class=""></div><div class="">hth...</div><div class="">don</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Dec 23, 2016 at 5:55 AM, Juan Ceasar via llvm-dev <span dir="ltr" class=""><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Good Morning - Happy Holidays everyone!<br class="">
<br class="">
I had a question about the best way to do back tracing of variables via the IR. So for example, if I have the following simple IR:<br class="">
<br class="">
define i32 @squak(i32 %num) #0 {<br class="">
%1 = alloca i32, align 4<br class="">
store i32 %num, i32* %1, align 4<br class="">
%2 = load i32, i32* %1, align 4<br class="">
%3 = icmp sgt i32 %2, 10<br class="">
<br class="">
I’m grabbing the predicate of “icmp”, which in this case is a simple test “>” of the input “%num" and the constant “10" and I want to trace back to “%num" via the slots/virtual registers %2 and %1. I believe I can do this via the SlotTracker (in AsmWriter.cpp) but I wonder if there’s a better, more direct way? Any suggestions? I’m basically trying to track predicate formation in the IR and hence the need…<br class="">
<br class="">
Thanks for any help!<br class="">
<br class="">
<br class="">
______________________________<wbr class="">_________________<br class="">
LLVM Developers mailing list<br class="">
<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/<wbr class="">mailman/listinfo/llvm-dev</a><br class="">
</blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>