[all-commits] [llvm/llvm-project] 3be9e0: [WebAssembly] Check bulk-memory when adjusting lan...

Thomas Lively via All-commits all-commits at lists.llvm.org
Fri Mar 4 16:07:31 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3be9e0ba972cc3486971f745a606e2c44472b655
      https://github.com/llvm/llvm-project/commit/3be9e0ba972cc3486971f745a606e2c44472b655
  Author: Thomas Lively <tlively at google.com>
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
    M clang/lib/Basic/Targets/WebAssembly.cpp
    M clang/test/CodeGenCXX/static-init-wasm.cpp

  Log Message:
  -----------
  [WebAssembly] Check bulk-memory when adjusting lang opts

We previously had logic to disable pthreads, set the ThreadModel to Single, and
disable thread-safe statics when the atomics target features is disabled, since
that means that the resulting program will not be used in a threaded context.
Similarly check for the presence of the bulk-memory feature, since that is also
necessary to produce multithreaded programs.

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




More information about the All-commits mailing list