[Attributor] Make isImpliedByIR and hasAssumedIRAttr more useful
authorJohannes Doerfert <johannes@jdoerfert.de>
Sun, 2 Jul 2023 22:50:30 +0000 (15:50 -0700)
committerJohannes Doerfert <johannes@jdoerfert.de>
Mon, 3 Jul 2023 23:05:16 +0000 (16:05 -0700)
commitaafdc9ea264490d42c9a85422a8ffca652959291
tree657a813c7aa2de420ebd24bc32fee600d0ae0685
parent1a715d9b33a12909fe08880548e2290c783326dd
[Attributor] Make isImpliedByIR and hasAssumedIRAttr more useful

Checking more than one attribute kind was never done and we want to
later check the IR w/o creating an AA as fallback.
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/lib/Transforms/IPO/AttributorAttributes.cpp