[PATCH] D29767: GraphTraits: Add range versions of graph traits functions (graph_nodes, graph_children, inverse_graph_nodes, inverse_graph_children).

Daniel Berlin via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 9 10:16:44 PST 2017


>
>
>>
>> Ah, I thought Tim (added Tim Shen to this thread) made this not be the
>> case anymore recently, I forget what the motivation was, and maybe it
>> didn't end up being needed/done.
>>
>
> Yes, sorry, It now works on references, but still not value types.
>
> So if i want a completely virtual graph that i make up as it calls child
> iterators, for example, i can't really give it that (even after Tim's
> patches, it doesn't work).
>
> I have to have created it beforehand in memory.
>
> That said, it's also really hard to do a virtual graph anyway because it
> uses static functions, which means literally no state.
> Such is life.
>

(though to be clear, the first is the real blocker. I can just create the
right kinds of types to make the second work)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170209/837ba0ee/attachment.html>


More information about the llvm-commits mailing list