diff options
author | Shimin Cui <scui@ca.ibm.com> | 2021-01-22 15:59:29 -0500 |
---|---|---|
committer | Roland Froese <froese@ca.ibm.com> | 2021-01-22 16:03:01 -0500 |
commit | 99a0aa07e9f4fa239b7927ede1847cfc78b16803 (patch) | |
tree | 353efa9ec13d21f96d5ccb6a213b16ec59317590 /llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | |
parent | fdab28edef35dde906678cd3c3008dd116ea8572 (diff) | |
download | llvm-99a0aa07e9f4fa239b7927ede1847cfc78b16803.zip llvm-99a0aa07e9f4fa239b7927ede1847cfc78b16803.tar.gz llvm-99a0aa07e9f4fa239b7927ede1847cfc78b16803.tar.bz2 |
[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
Diffstat (limited to 'llvm/unittests/Analysis/TargetLibraryInfoTest.cpp')
-rw-r--r-- | llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp index 08e3de9..f7829a9 100644 --- a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp +++ b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp @@ -580,6 +580,12 @@ TEST_F(TargetLibraryInfoTest, ValidProto) { "declare double @__sinh_finite(double)\n" "declare float @__sinhf_finite(float)\n" "declare x86_fp80 @__sinhl_finite(x86_fp80)\n" + + // These functions are aix vec allocation/free routines + "declare i8* @vec_calloc(i64, i64)\n" + "declare i8* @vec_malloc(i64)\n" + "declare i8* @vec_realloc(i8*, i64)\n" + "declare void @vec_free(i8*)\n" ); for (unsigned FI = 0; FI != LibFunc::NumLibFuncs; ++FI) { |