aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-05-15 07:59:53 -0500
committerJoseph Huber <jhuber6@vols.utk.edu>2023-05-23 09:03:10 -0500
commit4a1236e0f66341c1fcf2cd8a3e9a1b6faaf1a4d5 (patch)
tree129ccb9949e18a1e1cdd59e08b8967d6a87d3a97 /llvm/lib/IR/Module.cpp
parent39ccd5730267373c57ededecac129a59c9523899 (diff)
downloadllvm-4a1236e0f66341c1fcf2cd8a3e9a1b6faaf1a4d5.zip
llvm-4a1236e0f66341c1fcf2cd8a3e9a1b6faaf1a4d5.tar.gz
llvm-4a1236e0f66341c1fcf2cd8a3e9a1b6faaf1a4d5.tar.bz2
[AMDGPU] Add an option to disable manual ctor / dtor lowering
Currently AMDGPU offers extra ctor / dtor lowering by emitting a kernel that can be called. It's possible to handle ctors and dtors using the standard method as shown in D149340's commit message. In which case we on't need these extra kernels as they won't be called. This patch simply adds a way to conditionally turn off this handling if we do not want to get extra kernels in the output. Unrelated, but we could convert this handling to an ODR function that simply calls the code in D149340 constructed via LLVM-IR. That would handle priority correctly and would then be correct if not run in LTO mode. Reviewed By: yaxunl Differential Revision: https://reviews.llvm.org/D150565
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions