[all-commits] [llvm/llvm-project] f65033: [PowerPC] Add initial support for AMO load builtin...

Maryam Moghadas via All-commits all-commits at lists.llvm.org
Wed Dec 3 14:48:18 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f6503306652f1dbfc7f8ec1569342a82999e5674
      https://github.com/llvm/llvm-project/commit/f6503306652f1dbfc7f8ec1569342a82999e5674
  Author: Maryam Moghadas <maryammo at ca.ibm.com>
  Date:   2025-12-03 (Wed, 03 Dec 2025)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsPPC.def
    M clang/lib/Headers/CMakeLists.txt
    A clang/lib/Headers/amo.h
    M clang/lib/Sema/SemaPPC.cpp
    A clang/test/CodeGen/PowerPC/builtins-amo-err.c
    A clang/test/CodeGen/PowerPC/builtins-ppc-amo.c
    A clang/test/CodeGen/PowerPC/ppc-amo-header.c
    M llvm/include/llvm/IR/IntrinsicsPowerPC.td
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/lib/Target/PowerPC/PPCInstr64Bit.td
    M llvm/lib/Target/PowerPC/PPCInstrInfo.td
    M llvm/lib/Target/PowerPC/PPCRegisterInfo.td
    A llvm/test/CodeGen/PowerPC/amo-enable.ll

  Log Message:
  -----------
  [PowerPC] Add initial support for AMO load builtins (#168746)

This commit adds two Clang builtins for PowerPC AMO load operations:

__builtin_amo_lwat for 32-bit unsigned operations
__builtin_amo_ldat for 64-bit unsigned operations

Also adds an amo.h header that maps GCC's AMO functions to these Clang
builtins for compatibility.



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