diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2021-07-21 17:13:46 -0400 |
---|---|---|
committer | Huber, Joseph <huberjn@ornl.gov> | 2021-07-21 20:56:21 -0400 |
commit | 754eb1c210d865234292df7a983636e2ff49e2c8 (patch) | |
tree | 3e800f2d2c680fffadfdb15a1499abba8d6d9e6f /llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | |
parent | 402b681fffaace45c5f181b3b24c2f648bfc766c (diff) | |
download | llvm-754eb1c210d865234292df7a983636e2ff49e2c8.zip llvm-754eb1c210d865234292df7a983636e2ff49e2c8.tar.gz llvm-754eb1c210d865234292df7a983636e2ff49e2c8.tar.bz2 |
[OpenMP] Change `__kmpc_free_shared` to include the paired allocation size
This patch changes `__kmpc_free_shared` to take an additional argument
corresponding to the associated allocation's size. This makes it easier to
implement the allocator in the runtime.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D106496
Diffstat (limited to 'llvm/unittests/Analysis/TargetLibraryInfoTest.cpp')
-rw-r--r-- | llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp index 4f33a1a..8c0422a 100644 --- a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp +++ b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp @@ -589,7 +589,7 @@ TEST_F(TargetLibraryInfoTest, ValidProto) { // These functions are OpenMP Offloading allocation / free routines "declare i8* @__kmpc_alloc_shared(i64)\n" - "declare void @__kmpc_free_shared(i8*)\n" + "declare void @__kmpc_free_shared(i8*, i64)\n" ); for (unsigned FI = 0; FI != LibFunc::NumLibFuncs; ++FI) { |