[all-commits] [llvm/llvm-project] 34459b: [OpenMP] Provide big-endian bitfield definitions (...

Ilya Leoshkevich via All-commits all-commits at lists.llvm.org
Tue Oct 24 10:40:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 34459b72da82eeee0e82b25f9151efad05bdc0c3
      https://github.com/llvm/llvm-project/commit/34459b72da82eeee0e82b25f9151efad05bdc0c3
  Author: Ilya Leoshkevich <iii at linux.ibm.com>
  Date:   2023-10-24 (Tue, 24 Oct 2023)

  Changed paths:
    M openmp/runtime/src/kmp.h

  Log Message:
  -----------
  [OpenMP] Provide big-endian bitfield definitions (#69995)

structs kmp_depend_info.flags and kmp_tasking_flags contain bitfields,
which overlay integer flag values. The current bitfield definitions
target little-endian machines. On big-endian machines bitfields are laid
out in the opposite order, so the current definitions do not work there.

There are two ways to fix this: either provide big-endian bitfield
definitions, or bit-swap integer flag values. Go with the former, since
it's localized to one place and therefore is more maintainable.




More information about the All-commits mailing list