[Attributor] Allow not to default initialize AAs for live internal functions
authorJohannes Doerfert <johannes@jdoerfert.de>
Fri, 11 Mar 2022 18:51:24 +0000 (12:51 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Fri, 11 Mar 2022 22:46:03 +0000 (16:46 -0600)
commite92891f864df23bcf17702c655e7010b738fdd32
tree78c93f57f4cfddb70598640d2799946dfd5995ae
parentf3ad8cf00e2131513a9bcb9a22ee23102559b19b
[Attributor] Allow not to default initialize AAs for live internal functions

Outside users of the Attributor, e.g., OpenMP-opt, want to seed AAs
themselves. We should not seed all default AAs one an internal function
becomes live. That said, there should be a callback such that they can
do lazy seeding as well.

Differential Revision: https://reviews.llvm.org/D121489
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/test/Transforms/OpenMP/custom_state_machines.ll
llvm/test/Transforms/OpenMP/gpu_state_machine_function_ptr_replacement.ll
llvm/test/Transforms/OpenMP/parallel_level_fold.ll
llvm/test/Transforms/OpenMP/remove_globalization.ll
llvm/test/Transforms/OpenMP/replace_globalization.ll
llvm/test/Transforms/OpenMP/spmdization.ll
llvm/test/Transforms/OpenMP/spmdization_guarding_two_reaching_kernels.ll