[all-commits] [llvm/llvm-project] 9c8bdb: [libc] Implement memory fences on NVPTX

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu Mar 23 09:26:51 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c8bdbcbc502fac7d7d8da5c848cec448daf26ae
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-03-23 (Thu, 23 Mar 2023)

  Changed paths:
    M libc/src/__support/CPP/atomic.h

  Log Message:
  [libc] Implement memory fences on NVPTX

Memory fences are not handled by the NVPTX backend. We need to replace
them with a memory barrier intrinsic function. This doesn't include the
ordering, but should perform the necessary functionality, albeit slower.

Reviewed By: tianshilei1992

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

More information about the All-commits mailing list