[Analysis] Support AIX vec_malloc routines
authorShimin Cui <scui@ca.ibm.com>
Fri, 22 Jan 2021 20:59:29 +0000 (15:59 -0500)
committerRoland Froese <froese@ca.ibm.com>
Fri, 22 Jan 2021 21:03:01 +0000 (16:03 -0500)
commit99a0aa07e9f4fa239b7927ede1847cfc78b16803
tree353efa9ec13d21f96d5ccb6a213b16ec59317590
parentfdab28edef35dde906678cd3c3008dd116ea8572
[Analysis] Support AIX vec_malloc routines

This is to support the memory routines vec_malloc, vec_calloc, vec_realloc, and vec_free. These routines manage memory that is 16-byte aligned. And they are only available on AIX.

Differential Revision: https://reviews.llvm.org/D94710
llvm/include/llvm/Analysis/TargetLibraryInfo.def
llvm/lib/Analysis/MemoryBuiltins.cpp
llvm/lib/Analysis/TargetLibraryInfo.cpp
llvm/lib/Transforms/Utils/BuildLibCalls.cpp
llvm/unittests/Analysis/TargetLibraryInfoTest.cpp