This is an archive of the discontinued LLVM Phabricator instance.

[Dominators] Clean up typedefs in GenericDomTreeConstruction. NFC.
ClosedPublic

Authored by kuhar on Jun 15 2017, 3:32 PM.

Details

Summary

This patch cleans up GenericDomTreeConstruction by replacing typedefs with usings and replaces typename GraphT::NodeRef with NodePtr to make the file more readable.

Diff Detail

Repository
rL LLVM

Event Timeline

kuhar created this revision.Jun 15 2017, 3:32 PM
dberlin added inline comments.Jun 15 2017, 7:11 PM
include/llvm/Support/GenericDomTree.h
212

Please don't mix reformatting changes with other ones, it makes it hard to tell what you did :)

You can use git clang-format or something if you want to format changed lines in a patch :)
https://github.com/llvm-mirror/clang/blob/master/tools/clang-format/git-clang-format

include/llvm/Support/GenericDomTreeConstruction.h
146

If nodeptr is now the only place we use GraphT, just fold it into that line and remove it.

kuhar updated this revision to Diff 102785.Jun 15 2017, 10:24 PM

Change in GenericDomTree.h excluded.

kuhar added inline comments.Jun 15 2017, 10:26 PM
include/llvm/Support/GenericDomTree.h
212

Thanks, I missed that

include/llvm/Support/GenericDomTreeConstruction.h
146

GraphT is used in a couple of places below.

dberlin accepted this revision.Jun 16 2017, 9:51 PM
This revision is now accepted and ready to land.Jun 16 2017, 9:51 PM
This revision was automatically updated to reflect the committed changes.