MemoryBuiltins: start using properties of functions
authorAugie Fackler <augie@google.com>
Wed, 30 Mar 2022 18:14:53 +0000 (14:14 -0400)
committerAugie Fackler <augie@google.com>
Thu, 21 Jul 2022 19:31:15 +0000 (15:31 -0400)
commit5a3e3675f6be3c49fb1a305202888cce4d916ba6
treef5aa8d58e4955cfb9dcbe63878b91401d95a3cbf
parent78c09f0f24b6af6d17aeef93c13c54e251e57e8c
MemoryBuiltins: start using properties of functions

Prior to this change, we relied on the hard-coded list for all of the
information performed by MemoryBuiltins. With this change, we're able to
start relying on properites of functions described in attributes, which
opens the door to out-of-tree compilers being able to describe their
allocator functions to LLVM's optimizer logic without having to register
their implementation details with LLVM.

Differential Revision: https://reviews.llvm.org/D123090
llvm/lib/Analysis/MemoryBuiltins.cpp