[Attributor] Track AA dependency using dependency graph
authorLuofan Chen <clfbbn@gmail.com>
Wed, 15 Jul 2020 02:38:21 +0000 (10:38 +0800)
committerLuofan Chen <clfbbn@gmail.com>
Wed, 15 Jul 2020 02:40:21 +0000 (10:40 +0800)
commit8df7af560aebce3f3de3541d039e17331c479831
tree0e70b9a57a02b6f116b0ec58ab02ef1641833ca4
parente21323a1e9d5b9dcef85310d4dbe21a6d6cd7261
[Attributor] Track AA dependency using dependency graph

Summary: This patch added dependency graph to the attributor so that we can dump the dependencies between AAs more easily. We can also apply general graph algorithms to the graph, making it easier for us to create deep wrappers.

Reviewers: jdoerfert, sstefan1, uenoku, homerdin, baziotis

Reviewed By: jdoerfert

Subscribers: jfb, okura, mgrang, kuter, lebedev.ri, hiraditya, uenoku, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78861
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/test/Transforms/Attributor/depgraph.ll [new file with mode: 0644]