llvm-project/clang/test
Rong Xu 9c6f1538cc [PGO] Change profile use cc1 option to handle IR level profiles
This patch changes cc1 option for PGO profile use from
-fprofile-instr-use=<path> to -fprofile-instrument-use-path=<path>.
-fprofile-instr-use=<path> is now a driver only option.

In addition to decouple the cc1 option from the driver level option, this patch
also enables IR level profile use. cc1 option handling now reads the profile
header and sets CodeGenOpt ProfileUse (valid values are {None, Clang, LLVM}
-- this is a common enum for -fprofile-instrument={}, for the profile
instrumentation), and invoke the pipeline to enable the respective PGO use pass.

Reviewers: silvas, davidxl

Differential Revision: http://reviews.llvm.org/D17737

llvm-svn: 262515
2016-03-02 20:59:36 +00:00
..
ARCMT Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
ASTMerge [ASTImporter] Implement missing VisitAccessSpecDecl function in ASTImporter class. 2016-02-18 23:08:36 +00:00
Analysis [analyzer] Update CheckObjCDealloc diagnostic for missing -dealloc. 2016-03-01 00:39:04 +00:00
CXX [modules] Prefer more complete array types. 2016-02-28 19:08:24 +00:00
CodeCompletion [Parse] Code complete expressions in bracket declarators. 2016-02-18 15:30:24 +00:00
CodeGen [PGO] Change profile use cc1 option to handle IR level profiles 2016-03-02 20:59:36 +00:00
CodeGenCUDA [CUDA] Do not generate unnecessary runtime init code. 2016-03-02 18:28:53 +00:00
CodeGenCXX Add a few dllimport/dllexport tests. NFC 2016-03-02 01:21:48 +00:00
CodeGenObjC Objective-C: Add a size field to non-fragile category metadata. 2016-02-24 17:49:50 +00:00
CodeGenObjCXX Mangle extended qualifiers in the proper order and mangle the 2016-03-01 22:18:03 +00:00
CodeGenOpenCL AMDGPU: Add builtins for recently added intrinsics 2016-02-27 09:54:43 +00:00
Coverage Stop messing with the 'g' group of options in CompilerInvocation. 2015-10-08 04:24:12 +00:00
CoverageMapping Restrengthen tests relaxed in r259955 2016-02-17 00:58:13 +00:00
Driver [PGO] Change profile use cc1 option to handle IR level profiles 2016-03-02 20:59:36 +00:00
FixIt [Lit Test] Updated 26 Lit tests to be C++11 compatible. 2015-11-11 19:34:47 +00:00
Format Fix clang-format test. I believe that the new behavior is better. 2015-11-23 08:50:52 +00:00
Frontend Revert r260266 (and r260276), "clang-cl: Enable plugins on Windows" 2016-02-11 16:43:08 +00:00
Headers test/Headers/float.c: fix theoretical edge values 2016-02-12 19:24:36 +00:00
Index Fix test breakage on windows where the default std is c++11 by forcing c++03 in the test. 2016-03-01 12:53:18 +00:00
Integration
Layout [MS] Fix for bug 25013 - #pragma vtordisp is unknown inside functions, by Denis Zobnin. 2015-11-20 07:02:57 +00:00
Lexer [OpenCL] Added half type literal with suffix h. 2016-02-17 11:34:37 +00:00
Misc Don't crash w/ a diagnostic range containing a null byte 2016-02-17 22:37:45 +00:00
Modules [modules] Prefer more complete array types. 2016-02-28 19:08:24 +00:00
OpenMP [OPENMP 4.5] Codegen for data members in 'reduction' clause. 2016-03-02 04:57:40 +00:00
PCH fix test from r262506 2016-03-02 19:38:24 +00:00
Parser [OpenCL] Refine OpenCLImageAccessAttr to OpenCLAccessAttr 2016-02-26 03:13:03 +00:00
Preprocessor [X86] Disabling avx512f should also disable avx512vbmi and avx512ifma. Enabling avx512vbmi or avx512ifma should enable avx512f. Add command line switches and header defines for avx512ifma and avx512vbmi. 2016-02-29 06:51:38 +00:00
Profile [PGO] Change profile use cc1 option to handle IR level profiles 2016-03-02 20:59:36 +00:00
Rewriter Stop messing with the 'g' group of options in CompilerInvocation. 2015-10-08 04:24:12 +00:00
Sema [Sema] PR26444 fix crash when alignment value is >= 2**16 2016-03-02 06:48:47 +00:00
SemaCUDA [CUDA] do not allow attribute-based overloading for __global__ functions. 2016-02-24 21:54:45 +00:00
SemaCXX Fix bug in using shadow decl checking: a using shadow decl should not conflict 2016-02-27 02:36:43 +00:00
SemaObjC [Sema] More changes to fix Objective-C fallout from r249995. 2016-02-13 01:41:41 +00:00
SemaObjCXX Test template instantiation of ns_consumed and ns_returns_retained. 2016-03-01 06:54:30 +00:00
SemaOpenCL AMDGPU: Add builtins for recently added intrinsics 2016-02-27 09:54:43 +00:00
SemaTemplate Fix assertion failure on MaybeODRUseExprs. 2016-02-24 23:05:43 +00:00
TableGen
Tooling int function without a return statement is invalid C++. 2015-11-27 18:10:49 +00:00
Unit
VFS [VFS] Fix status() of opened redirected file 2015-12-10 23:41:39 +00:00
.clang-format
CMakeLists.txt [CMake] Add convenience target clang-test-depends to build test dependencies. 2016-03-02 00:27:15 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg Revert r260266 (and r260276), "clang-cl: Enable plugins on Windows" 2016-02-11 16:43:08 +00:00
lit.site.cfg.in [modules] Compress files embedded into a .pcm file, to reduce the disk usage of -fembed-all-files mode. 2016-02-06 02:06:43 +00:00
make_test_dirs.pl