<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 22, 2018 at 4:01 PM, Daniel Berlin via Phabricator <span dir="ltr"><<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">dberlin added a comment.<br>
<br>
I don't understand why you need has_function_def. It looks very much like a thing you should just be using a filter_iterator for or something. It does not look like it belongs in the graphtraits at all.<br>
<div class="m_711287582437506307HOEnZb"><div class="m_711287582437506307h5"><br></div></div></blockquote><div><br></div><div>Is it assuming the NodeRef of different callgraph types all have the same interface to check whether the node is defined, otherwise how to form a generic predicate for the filter_iterator?</div><div><br></div><div>On the other hand, check body availability seems like a common operation for all callgraph implementations, so having a generic interface in traits seems making sense?</div><div><br></div><div>David</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_711287582437506307HOEnZb"><div class="m_711287582437506307h5">
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D42311" rel="noreferrer" target="_blank">https://reviews.llvm.org/D4231<wbr>1</a><br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div></div>