[all-commits] [llvm/llvm-project] fede99: [NVPTX] Enable lowering of atomics on local memory

William Moses via All-commits all-commits at lists.llvm.org
Mon Apr 26 16:28:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fede99d386ec9e7bab2762aa16cb10c0513ae464
      https://github.com/llvm/llvm-project/commit/fede99d386ec9e7bab2762aa16cb10c0513ae464
  Author: William S. Moses <gh at wsmoses.com>
  Date:   2021-04-26 (Mon, 26 Apr 2021)

  Changed paths:
    M llvm/include/llvm/Transforms/Scalar/LowerAtomic.h
    M llvm/lib/Target/NVPTX/CMakeLists.txt
    A llvm/lib/Target/NVPTX/NVPTXAtomicLower.cpp
    A llvm/lib/Target/NVPTX/NVPTXAtomicLower.h
    M llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
    M llvm/lib/Transforms/Scalar/LowerAtomic.cpp
    A llvm/test/CodeGen/NVPTX/atomic-lower-local.ll

  Log Message:
  -----------
  [NVPTX] Enable lowering of atomics on local memory

LLVM does not have valid assembly backends for atomicrmw on local memory. However, as this memory is thread local, we should be able to lower this to the relevant load/store.

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




More information about the All-commits mailing list