[all-commits] [llvm/llvm-project] 18e6b8: Allow pointer types for atomicrmw xchg

Takafumi Arakaki via All-commits all-commits at lists.llvm.org
Wed May 25 09:24:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18e6b8234a0d0b085ead20d9c26777c824bb4a3d
      https://github.com/llvm/llvm-project/commit/18e6b8234a0d0b085ead20d9c26777c824bb4a3d
  Author: Takafumi Arakaki <aka.tkf at gmail.com>
  Date:   2022-05-25 (Wed, 25 May 2022)

  Changed paths:
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/lib/AsmParser/LLParser.cpp
    M llvm/lib/CodeGen/AtomicExpandPass.cpp
    M llvm/lib/IR/Verifier.cpp
    R llvm/test/Assembler/invalid-atomicrmw-xchg-must-be-integer-or-fp-type.ll
    M llvm/test/Bitcode/compatibility.ll
    M llvm/test/CodeGen/AMDGPU/flat_atomics_i64.ll
    M llvm/test/CodeGen/AMDGPU/global_atomics_i64.ll
    M llvm/test/CodeGen/AMDGPU/local-atomics64.ll
    M llvm/test/CodeGen/X86/atomic64.ll

  Log Message:
  -----------
  Allow pointer types for atomicrmw xchg

This adds support for pointer types for `atomic xchg` and let us write
instructions such as `atomicrmw xchg i64** %0, i64* %1 seq_cst`. This
is similar to the patch for allowing atomicrmw xchg on floating point
types: https://reviews.llvm.org/D52416.

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




More information about the All-commits mailing list