[all-commits] [llvm/llvm-project] edbdf8: [AIX] Update fetch_and_add type

jsji via All-commits all-commits at lists.llvm.org
Tue Jul 27 15:13:49 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: edbdf8e5b5aad9f1d7f12dd4025d6811a6fff0b2
      https://github.com/llvm/llvm-project/commit/edbdf8e5b5aad9f1d7f12dd4025d6811a6fff0b2
  Author: Jinsong Ji <jji at us.ibm.com>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsPPC.def
    M clang/test/CodeGen/builtins-ppc-xlcompat-fetch-error.c
    M clang/test/CodeGen/builtins-ppc-xlcompat-fetch.c

  Log Message:
  -----------
  [AIX] Update fetch_and_add type

It turns out that the AIX kernel is defining int instead of unsigned int for fetch_and_add.

Legacy XL also defines this to be signed.

https://www.ibm.com/docs/en/aix/7.2?topic=f-fetch-add-kernel-services

So update the type for compat.

Reviewed By: hubert.reinterpretcast

Differential Revision: https://reviews.llvm.org/D106920




More information about the All-commits mailing list