[PATCH] D83361: [LLVM] Add libatomic load/store functions to TargetLibraryInfo

Gui Andrade via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 11:24:18 PDT 2020


guiand added a comment.

I had gotten the impression that these calls aren't supported on WebAssembly by lines in `WebAssemblyRuntimeLibcallSignatures.cpp` like:

  Table[RTLIB::ATOMIC_LOAD] = unsupported;

But it turns out clang has no problem generating calls to `__atomic_load` anyway: https://gcc.godbolt.org/z/kMDLJb

And it looks like LLVM looks to provide general support for these functions: https://llvm.org/docs/Atomics.html#libcalls-atomic


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83361/new/

https://reviews.llvm.org/D83361





More information about the llvm-commits mailing list