[all-commits] [llvm/llvm-project] ebdd55: [AArch64][clang][llvm] Add ACLE `stshh` atomic sto...

Jonathan Thackray via All-commits all-commits at lists.llvm.org
Fri Feb 13 14:31:07 PST 2026


  Branch: refs/heads/users/jthackray/acle_pcdphint_arm_atomic_store_with_stshh
  Home:   https://github.com/llvm/llvm-project
  Commit: ebdd55bb87825eecfa96cf8ca41d634804b1efff
      https://github.com/llvm/llvm-project/commit/ebdd55bb87825eecfa96cf8ca41d634804b1efff
  Author: Jonathan Thackray <jonathan.thackray at arm.com>
  Date:   2026-02-13 (Fri, 13 Feb 2026)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsAArch64.def
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/CIR/CodeGen/CIRGenBuiltinAArch64.cpp
    M clang/lib/CodeGen/TargetBuiltins/ARM.cpp
    M clang/lib/Headers/arm_acle.h
    M clang/lib/Sema/SemaARM.cpp
    A clang/test/CodeGen/AArch64/pcdphint-atomic-store.c
    A clang/test/Sema/AArch64/pcdphint-atomic-store.c
    M llvm/include/llvm/IR/IntrinsicsAArch64.td
    M llvm/lib/Target/AArch64/AArch64InstrFormats.td
    M llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp

  Log Message:
  -----------
  [AArch64][clang][llvm] Add ACLE `stshh` atomic store builtin

Add `__arm_atomic_store_with_stshh` implementation as defined
in the ACLE. Validate that the arguments passed are correct, and
lower it to the stshh intrinsic plus an atomic store with the
allowed orderings.

Gate this on FEAT_PCDPHINT so that availability matches
hardware support for the `STSHH` instruction. Use an i64
immediate and side-effect modeling to satisfy tablegen and decoding.


  Commit: bc632a607a2ff38d06f75ddebfa042e138e6ddc2
      https://github.com/llvm/llvm-project/commit/bc632a607a2ff38d06f75ddebfa042e138e6ddc2
  Author: Jonathan Thackray <jonathan.thackray at arm.com>
  Date:   2026-02-13 (Fri, 13 Feb 2026)

  Changed paths:
    M clang/lib/CodeGen/TargetBuiltins/ARM.cpp
    M clang/test/Sema/AArch64/pcdphint-atomic-store.c
    M llvm/lib/Target/AArch64/AArch64InstrFormats.td

  Log Message:
  -----------
  fixup!

A few small tidyups


  Commit: e9034b6da0116b6e6a7a1c41239e2cb51d66d63a
      https://github.com/llvm/llvm-project/commit/e9034b6da0116b6e6a7a1c41239e2cb51d66d63a
  Author: Jonathan Thackray <jonathan.thackray at arm.com>
  Date:   2026-02-13 (Fri, 13 Feb 2026)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsAArch64.def
    M clang/lib/CodeGen/TargetBuiltins/ARM.cpp
    M clang/lib/Headers/arm_acle.h
    M clang/lib/Sema/SemaARM.cpp
    M clang/test/CodeGen/AArch64/pcdphint-atomic-store.c
    M clang/test/Sema/AArch64/pcdphint-atomic-store.c

  Log Message:
  -----------
  fixup!

More small issues tidied, and remove gating.


  Commit: d14cc9737c0fbb120a100586696a710486f67ea4
      https://github.com/llvm/llvm-project/commit/d14cc9737c0fbb120a100586696a710486f67ea4
  Author: Jonathan Thackray <jonathan.thackray at arm.com>
  Date:   2026-02-13 (Fri, 13 Feb 2026)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/CodeGen/TargetBuiltins/ARM.cpp
    M clang/lib/Headers/arm_acle.h
    M clang/lib/Sema/SemaARM.cpp
    M clang/test/Sema/AArch64/pcdphint-atomic-store.c
    A llvm/test/CodeGen/AArch64/pcdphint-atomic-store.ll

  Log Message:
  -----------
  fixup! Improve error diagnostics, and other cleanups


Compare: https://github.com/llvm/llvm-project/compare/49b49918114c...d14cc9737c0f

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