[all-commits] [llvm/llvm-project] 506ca1: [OpenMP] Remove use of '__AMDGCN_WAVEFRONT_SIZE' (...

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Nov 25 05:38:49 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 506ca19dc9d6a9f0ad47b82e71525743bbe8cf85
      https://github.com/llvm/llvm-project/commit/506ca19dc9d6a9f0ad47b82e71525743bbe8cf85
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-11-25 (Mon, 25 Nov 2024)

  Changed paths:
    M offload/DeviceRTL/src/Mapping.cpp
    M offload/test/offloading/ompx_bare_ballot_sync.c
    M offload/test/offloading/ompx_bare_shfl_down_sync.cpp

  Log Message:
  -----------
  [OpenMP] Remove use of '__AMDGCN_WAVEFRONT_SIZE' (#113156)

Summary:
This is going to be deprecated in
https://github.com/llvm/llvm-project/pull/112849. This patch ports it to
use the builtin instead. This isn't a compile constant, so it could
slightly negatively affect codegen. There really should be an IR pass to
turn it into a constant if the function has known attributes.

Using the builtin is correct when we just do it for knowing the size
like we do here. Obviously guarding w32/w64 code with this check would
be broken.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list