[all-commits] [llvm/llvm-project] 4869a2: [Libomptarget] Add `cold` to KeepAlive attributes
Joseph Huber via All-commits
all-commits at lists.llvm.org
Mon Jan 17 14:29:47 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4869a22d1d0bff59e3f2699739554d459905a76d
https://github.com/llvm/llvm-project/commit/4869a22d1d0bff59e3f2699739554d459905a76d
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-01-17 (Mon, 17 Jan 2022)
Changed paths:
M openmp/libomptarget/DeviceRTL/src/Utils.cpp
M openmp/libomptarget/deviceRTLs/common/src/support.cu
Log Message:
-----------
[Libomptarget] Add `cold` to KeepAlive attributes
This patch adds the `cold` attribute to the keepAlive functions in the
RTL. This dummy function exists to keep certain RTL calls alive without
them being optimized out, but it is never called and can be declared
cold. This also helps some erroneous remarks being given on this
function because it has weak linkage and cannot be made internal.
Reviewed By: tianshilei1992
Differential Revision: https://reviews.llvm.org/D117513
More information about the All-commits
mailing list