[Attributor][NFC] Outline common pattern into helper method
authorJohannes Doerfert <jdoerfert@anl.gov>
Tue, 6 Aug 2019 00:55:11 +0000 (00:55 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Tue, 6 Aug 2019 00:55:11 +0000 (00:55 +0000)
commit21fe0a314e93c4f494ee9020ae84079f1e89fcb7
tree7d8470108023f0e3730c1835e6a4ccbd9cae91ac
parent269191eaf97b79ae8ced42d635445c0109798d01
[Attributor][NFC] Outline common pattern into helper method

This helper will also allow to also place logic to determine if an
abstract attribute is necessary in the first place.

llvm-svn: 367966
llvm/lib/Transforms/IPO/Attributor.cpp