[all-commits] [llvm/llvm-project] eb237f: [PowerPC] Add XL Compat fetch builtins

jsji via All-commits all-commits at lists.llvm.org
Sun Jun 27 19:52:56 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb237ffca821839374574b2195c865765ebf5d09
      https://github.com/llvm/llvm-project/commit/eb237ffca821839374574b2195c865765ebf5d09
  Author: Jinsong Ji <jji at us.ibm.com>
  Date:   2021-06-28 (Mon, 28 Jun 2021)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsPPC.def
    M clang/lib/Basic/Targets/PPC.cpp
    M clang/lib/CodeGen/CGBuiltin.cpp
    A clang/test/CodeGen/builtins-ppc-xlcompat-fetch-error.c
    A clang/test/CodeGen/builtins-ppc-xlcompat-fetch.c

  Log Message:
  -----------
  [PowerPC] Add XL Compat fetch builtins

Prototype
```
unsigned int __fetch_and_add (volatile unsigned int* addr, unsigned int
val);
unsigned long __fetch_and_addlp (volatile unsigned long* addr, unsigned
long val);
```
Ref:
https://www.ibm.com/docs/en/xl-c-and-cpp-linux/16.1.1?topic=functions-fetch

Reviewed By: #powerpc, w2yehia, lkail

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




More information about the All-commits mailing list