[Attributor] AAFunctionReachability, Handle CallBase Reachability.
authorKuter Dinel <kuterdinel@gmail.com>
Tue, 20 Jul 2021 21:42:47 +0000 (00:42 +0300)
committerKuter Dinel <kuterdinel@gmail.com>
Sun, 12 Sep 2021 22:35:44 +0000 (01:35 +0300)
commit66a0b3464ca8502a6a3b59800f9b31fcd7aa6e97
treea70fc2a1195ebabdac3d1f459c413f2ee41b8a67
parent2cc6f7c8e108fbc5b5acb513b1edc086ba21563a
[Attributor] AAFunctionReachability, Handle CallBase Reachability.

This patch makes it possible to query callbase reachability
(Can a callbase reach a function Fn transitively).
The patch moves the reachability query handling logic to a member class,
this class will have more users within the AA once we add other function
reachability queries.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D106402
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/unittests/Transforms/IPO/AttributorTest.cpp