hanchenye-llvm-project/clang/lib
Thomas Lively f3b4f99007 [WebAssembly] Remove uses of ThreadModel
Summary:
In the clang UI, replaces -mthread-model posix with -matomics as the
source of truth on threading. In the backend, replaces
-thread-model=posix with the atomics target feature, which is now
collected on the WebAssemblyTargetMachine along with all other used
features. These collected features will also be used to emit the
target features section in the future.

The default configuration for the backend is thread-model=posix and no
atomics, which was previously an invalid configuration. This change
makes the default valid because the thread model is ignored.

A side effect of this change is that objects are never emitted with
passive segments. It will instead be up to the linker to decide
whether sections should be active or passive based on whether atomics
are used in the final link.

Reviewers: aheejin, sbc100, dschuff

Subscribers: mehdi_amini, jgravelle-google, hiraditya, sunfish, steven_wu, dexonsmith, rupprecht, jfb, jdoerfert, cfe-commits, llvm-commits

Tags: #clang, #llvm

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

llvm-svn: 355112
2019-02-28 18:39:08 +00:00
..
ARCMigrate Use llvm::is_contained. NFC 2019-02-10 05:54:57 +00:00
AST [OPENMP]Delay emission of the error for unsupported types. 2019-02-27 20:29:45 +00:00
ASTMatchers [ASTImporter] Add support for importing ChooseExpr AST nodes. 2019-02-26 19:26:41 +00:00
Analysis Revert "[Analysis] -Wunreachable-code shouldn't fire on the increment of a foreach loop" 2019-02-15 09:18:49 +00:00
Basic [X86] AMD znver2 enablement 2019-02-26 17:15:36 +00:00
CodeGen [CodeGen] Fix some broken IR generated by -fsanitize=unsigned-integer-overflow 2019-02-28 00:47:55 +00:00
CrossTU [CTU] Do not allow different CPP dialects in CTU 2019-02-28 15:24:59 +00:00
Driver [WebAssembly] Remove uses of ThreadModel 2019-02-28 18:39:08 +00:00
Edit Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Format [clang-format] SpaceBeforeParens for lambda expressions 2019-02-26 14:34:49 +00:00
Frontend revert r354873 as this breaks lldb builds. 2019-02-26 13:50:29 +00:00
FrontendTool [analyzer][NFC] Supply CheckerRegistry with AnalyzerOptions 2019-01-26 15:59:21 +00:00
Headers [clang] Only provide C11 features in <float.h> starting with C++17 2019-02-22 20:48:54 +00:00
Index [clang][index-while-building][NFC] Comment about implementation detail in FileIndexRecord 2019-02-28 01:12:27 +00:00
Lex Print a note to the called macro when diagnosing err_embedded_directive 2019-02-14 04:13:17 +00:00
Parse [CodeComplete] Propagate preferred type for function arguments in more cases 2019-02-26 11:01:50 +00:00
Rewrite Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Sema [OPENMP]Delay emission of the error for unsupported types. 2019-02-27 20:29:45 +00:00
Serialization Avoid needlessly copying a block to the heap when a block literal 2019-02-27 18:17:16 +00:00
StaticAnalyzer [analyzer] Fix infinite recursion in printing macros 2019-02-25 18:49:42 +00:00
Tooling Switch to cantFail(), since it does the same assertion. 2019-02-06 17:59:39 +00:00
CMakeLists.txt