[llvm-branch-commits] [openmp] [OpenMP][offload] Inline target reductions (PR #196061)
Shilei Tian via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed May 6 07:53:13 PDT 2026
================
@@ -22,15 +22,19 @@ using namespace ompx;
namespace {
-void gpu_regular_warp_reduce(void *reduce_data, ShuffleReductFnTy shflFct) {
+[[clang::always_inline]]
+static void gpu_regular_warp_reduce(void *reduce_data,
----------------
shiltian wrote:
It is not a great idea to add `always_line`. Having anonymous address space and `static` is kind of redundant. IIRC there seems to be a trend in LLVM to move away from anonymous namespace but to use `static` instead.
https://github.com/llvm/llvm-project/pull/196061
More information about the llvm-branch-commits
mailing list