<div dir="auto">Yeah, this is definitely useful in my experience. I had the same idea a few days ago but it sidetracked in my ToDos. <div dir="auto"><br></div><div dir="auto">IMHO, it is considerable effort though. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 9, 2020, 11:38 PM Paul C. Anagnostopoulos via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I was wondering today whether the TableGen DAG support would be more useful if you could manipulate DAGs a little more easily. Right now, you can:<br>
<br>
* Specify a DAG with (...)<br>
<br>
* Catenate DAGs with !con().<br>
<br>
* Construct a DAG with !dag().<br>
<br>
* Iterate over a DAG with !foreach().<br>
<br>
* Get and set the DAG operator with !getop() and !setop().<br>
<br>
What if you could also get and set a DAG's operands individually, by position or by $xxx name? Would that add enough power/convenience that you would build more interesting DAGs in TableGen, or is it just easier to do such building in the backends?<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" rel="noreferrer">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>