llvm-project/clang/lib
Heejin Ahn e8b2b8868d [WebAssembly] Add -fwasm-exceptions for wasm EH
Summary:
This adds `-fwasm-exceptions` (in similar fashion with
`-fdwarf-exceptions` or `-fsjlj-exceptions`) that turns on everything
with wasm exception handling from the frontend to the backend.

We currently have `-mexception-handling` in clang frontend, but this is
only about the architecture capability and does not turn on other
necessary options such as the exception model in the backend. (This can
be turned on with `llc -exception-model=wasm`, but llc is not invoked
separately as a command line tool, so this option has to be transferred
from clang.)

Turning on `-fwasm-exceptions` in clang also turns on
`-mexception-handling` if not specified, and will error out if
`-mno-exception-handling` is specified.

Reviewers: dschuff, tlively, sbc100

Subscribers: aprantl, jgravelle-google, sunfish, cfe-commits

Tags: #clang

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

llvm-svn: 371708
2019-09-12 04:01:37 +00:00
..
ARCMigrate [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
AST When evaluating a __builtin_constant_p conditional, always enter 2019-09-10 21:24:09 +00:00
ASTMatchers [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
Analysis [analyzer] NFC: Move PathDiagnostic classes to libAnalysis. 2019-09-11 20:54:27 +00:00
Basic Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
CodeGen [WebAssembly] Add -fwasm-exceptions for wasm EH 2019-09-12 04:01:37 +00:00
CrossTU [CrossTU] Fix problem with CrossTU AST load limit and progress messages. 2019-08-12 07:15:29 +00:00
DirectoryWatcher [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
Driver [WebAssembly] Add -fwasm-exceptions for wasm EH 2019-09-12 04:01:37 +00:00
Edit [C++2a] Add __builtin_bit_cast, used to implement std::bit_cast 2019-07-02 18:28:13 +00:00
Format [clang-format] Apply BAS_AlwaysBreak to C++11 braced lists 2019-09-10 23:26:45 +00:00
Frontend [WebAssembly] Add -fwasm-exceptions for wasm EH 2019-09-12 04:01:37 +00:00
FrontendTool [Driver] Use shared singleton instance of DriverOptTable 2019-09-04 14:26:28 +00:00
Headers [PowerPC][Altivec] Fix constant argument for vec_dss 2019-09-04 14:01:47 +00:00
Index [clang][Index] Replace CodegenNameGenerator with ASTNameGenerator 2019-09-05 20:33:52 +00:00
Lex [clang-scan-deps] add skip excluded conditional preprocessor block preprocessing optimization 2019-09-11 20:40:31 +00:00
Parse Diagnose _Atomic as a C11 extension. 2019-09-04 21:01:57 +00:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema [MS] Consder constexpr globals to be inline, as in C++17 2019-09-11 18:09:10 +00:00
Serialization [Sema] Diagnose default-initialization, destruction, and copying of 2019-09-07 00:34:43 +00:00
StaticAnalyzer [analyzer] NFC: Move PathDiagnostic classes to libAnalysis. 2019-09-11 20:54:27 +00:00
Tooling [clang-scan-deps] cast Result to ErrorOr<unique_ptr<vfs::File>> explicitly to avoid s390x-linux buildbot failure 2019-09-11 21:00:13 +00:00
CMakeLists.txt Reland [clang] DirectoryWatcher 2019-07-12 20:34:10 +00:00