[llvm-commits] [PATCH] add GraphTraits for class User

Török Edwin edwintorok at gmail.com
Mon Mar 31 10:51:37 PDT 2008


Hi,

This patch adds GraphTraits for class User, allowing to use a
depth-first iterator to find out all values that depend on (use)  a
certain Value.
This can currently be done only by coding a recursive function.

I tried to use forward declaration of GraphTraits/Inverse to avoid
including the header for it, but that doesn't work, because of Inverse.
Is it ok to include those headers in User.h? If not, where should I move
this GraphTraits code?

Please review this patch, and let me know if I am allowed to commit it.

Thanks,
--Edwin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: user_graphtraits.patch
Type: text/x-diff
Size: 1514 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080331/c8acaa71/attachment.patch>


More information about the llvm-commits mailing list