[FunctionAttrs] Separate another chunk of the logic for functionattrs
authorChandler Carruth <chandlerc@gmail.com>
Fri, 30 Oct 2015 16:48:08 +0000 (16:48 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 30 Oct 2015 16:48:08 +0000 (16:48 +0000)
commite8abcab8ed753f5860af29d77965abee673fa130
tree727cdfa7e759294950f30d422cc11157d47724fb
parent677d6a3a87f954487a82abc644688c4c49be64f3
[FunctionAttrs] Separate another chunk of the logic for functionattrs
from its pass harness by providing a lambda to query for AA results.

This allows the legacy pass to easily provide a lambda that uses the
special helpers to construct function AA results from a legacy CGSCC
pass. With the new pass manager (the next patch) the lambda just
directly wraps the intuitive query API.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251715 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/FunctionAttrs.cpp