<div dir="ltr">Sure, looks good (this is still approved, so whenever you reckon it's useful to commit, go ahead)</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 13, 2017 at 11:15 AM Jakub Kuderski via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">kuhar added a comment.<br>
<br>
Here's a real-world example of possible use of the CFGBuilder:<br>
<a href="https://reviews.llvm.org/D35341" rel="noreferrer" target="_blank">https://reviews.llvm.org/D35341</a><br>
<a href="https://reviews.llvm.org/D35342" rel="noreferrer" target="_blank">https://reviews.llvm.org/D35342</a><br>
<br>
CFGBuilder makes it easy not only write pretty concise test cases for the new incremental DomTree API, but also to generate different permutations of update sequences using standard algorithms -- which is not really possible if we decided to do the updates manually (without a library to automatically generate IR based on CFG description).<br>
<br>
<br>
<a href="https://reviews.llvm.org/D34798" rel="noreferrer" target="_blank">https://reviews.llvm.org/D34798</a><br>
<br>
<br>
<br>
</blockquote></div>