summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-12-20 19:36:43 +0000
committerCraig Topper <craig.topper@intel.com>2017-12-20 19:36:43 +0000
commitd694a38690887172a285fbc1fdd3aee1ecec4d20 (patch)
treeddda1f57dd684eb205fc54af9d20c66b73a69cbb /examples
parent082879a7af32ea0f6a51691816fef262da901986 (diff)
[X86] Refactor DomainReassignment pass to make the Closure class not stores references to the main data structures of the pass itself
Multiple Closure objects can be created and stored for a single function. It's not a good idea to devote so many fields of it to storing pointers and references to global data structures of the pass. The closure class should only store the things needed to represent the closure itself. This patch refactors many of the methods of Closure to belong to the pass object and to pass around a reference to the current Closure. The Closure class gains a few simple methods to add instructions and edges, and to return iterators to edges and instructions Differential Revision: https://reviews.llvm.org/D41327 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions