[Attributor][NFCI] Use pointers to pass around AAs
authorJohannes Doerfert <johannes@jdoerfert.de>
Fri, 23 Jun 2023 02:21:02 +0000 (19:21 -0700)
committerJohannes Doerfert <johannes@jdoerfert.de>
Sat, 24 Jun 2023 00:21:20 +0000 (17:21 -0700)
commite9fc399db34c63d8c33c3f2315c9db3b7afcaa40
treef5080e00c62faaab57a9aa32b6a9bf3c425f7c2b
parent52c799b7668243638c0b41f4e61835ec3a7f31ad
[Attributor][NFCI] Use pointers to pass around AAs

This will make it easier to create less trivial AAs in the future as we
can simply return `nullptr` rather than an AA with in invalid state.
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/unittests/Transforms/IPO/AttributorTest.cpp