llvm-project/clang/lib
Teresa Johnson 867bc3951b [ThinLTO] Pass down opt level to LTO backend and handle -O0 LTO in new PM
Summary:
The opt level was not being passed down to the ThinLTO backend when
invoked via clang (for distributed ThinLTO).

This exposed an issue where the new PM was asserting if the Thin or
regular LTO backend pipelines were invoked with -O0 (not a new issue,
could be provoked by invoking in-process *LTO backends via linker using
new PM and -O0). Fix this similar to the old PM where -O0 only does the
necessary lowering of type metadata (WPD and LowerTypeTest passes) and
then quits, rather than asserting.

Reviewers: xur

Subscribers: mehdi_amini, inglorion, eraman, hiraditya, steven_wu, dexonsmith, cfe-commits, llvm-commits, pcc

Tags: #clang, #llvm

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

llvm-svn: 359025
2019-04-23 18:56:19 +00:00
..
ARCMigrate Range-style std::find{,_if} -> llvm::find{,_if}. NFC 2019-03-31 08:48:19 +00:00
AST MS ABI: Support mangling op<=> now that MSVC 2019 has a mangling 2019-04-23 16:37:42 +00:00
ASTMatchers [ASTMatchers] Introduce Objective-C matchers `isClassMessage`, `isClassMethod`, and `isInstanceMethod` 2019-04-22 17:54:11 +00:00
Analysis [analyzer] Unbreak body farms in presence of multiple declarations. 2019-04-23 02:56:00 +00:00
Basic [FileSystemStatCache] Return std::error_code from stat cache methods 2019-04-16 17:34:26 +00:00
CodeGen [ThinLTO] Pass down opt level to LTO backend and handle -O0 LTO in new PM 2019-04-23 18:56:19 +00:00
CrossTU [analyzer][CrossTU] Extend CTU to VarDecls with initializer 2019-04-23 11:04:41 +00:00
Driver [PowerPC] [Clang] Port MMX intrinsics and basic test cases to Power 2019-04-23 05:50:24 +00:00
Edit Range-style std::find{,_if} -> llvm::find{,_if}. NFC 2019-03-31 08:48:19 +00:00
Format [clang-format] Fix incorrect formatting of keyword macro definition 2019-04-18 20:17:08 +00:00
Frontend [analyzer][NFC] Reimplement checker options 2019-04-19 12:32:10 +00:00
FrontendTool [analyzer][NFC] Supply CheckerRegistry with AnalyzerOptions 2019-01-26 15:59:21 +00:00
Headers [PowerPC] [Clang] Port MMX intrinsics and basic test cases to Power 2019-04-23 05:50:24 +00:00
Index Range-style std::find{,_if} -> llvm::find{,_if}. NFC 2019-03-31 08:48:19 +00:00
Lex [c++2a] Add semantic support for private module fragments. 2019-04-18 21:12:54 +00:00
Parse [c++2a] Implement semantic restrictions for 'export' declarations. 2019-04-22 22:50:11 +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 [c++2a] Implement semantic restrictions for 'export' declarations. 2019-04-22 22:50:11 +00:00
Serialization [Serialization] Stable serialization order for OpenCLTypeExtMap and OpenCLDeclExtMap 2019-04-18 15:13:27 +00:00
StaticAnalyzer [Analyzer] Second fix for last commit for IteratorChecker 2019-04-23 11:18:50 +00:00
Tooling [LibTooling] Fix build breakage from commit 7b7ce6683ee. 2019-04-18 19:19:01 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00