llvm-project/clang/test/Profile/Inputs
Diego Novillo 578caf5da7 Add GCC-compatible flags -fprofile-generate and -fprofile-use.
This patch adds support for specifying where the profile is emitted in a
way similar to GCC. These flags are used to specify directories instead
of filenames. When -fprofile-generate=DIR is used, the compiler will
generate code to write to <DIR>/default.profraw.

The patch also adds a couple of extensions: LLVM_PROFILE_FILE can still be
used to override the directory and file name to use and -fprofile-use
accepts both directories and filenames.

To simplify the set of flags used in the backend, all the flags get
canonicalized to -fprofile-instr-{generate,use} when passed to the
backend. The decision to use a default name for the profile is done
in the driver.

llvm-svn: 241825
2015-07-09 17:23:53 +00:00
..
c-attributes.proftext test: Use llvm-profdata merge in Profile tests 2014-04-17 22:49:06 +00:00
c-captured.proftext Changed renaming of local symbols by inserting a dot vefore the numeric suffix 2015-05-12 16:48:43 +00:00
c-counter-overflows.proftext test: Use llvm-profdata merge in Profile tests 2014-04-17 22:49:06 +00:00
c-general.profdata.v1 InstrProf: Update for LLVM API change 2014-08-01 22:50:16 +00:00
c-general.proftext test: Use llvm-profdata merge in Profile tests 2014-04-17 22:49:06 +00:00
c-outdated-data.proftext test: Use llvm-profdata merge in Profile tests 2014-04-17 22:49:06 +00:00
c-unprofiled-blocks.proftext test: Use llvm-profdata merge in Profile tests 2014-04-17 22:49:06 +00:00
c-unprofiled.proftext CodeGen: Improve warnings about uninstrumented files when profiling 2014-06-26 01:45:07 +00:00
cxx-class.proftext test: Use llvm-profdata merge in Profile tests 2014-04-17 22:49:06 +00:00
cxx-lambda.proftext test: Use llvm-profdata merge in Profile tests 2014-04-17 22:49:06 +00:00
cxx-rangefor.proftext InstrProf: Fix handling of profile counters in the body of range based for 2015-04-30 22:58:28 +00:00
cxx-templates.proftext test: Use llvm-profdata merge in Profile tests 2014-04-17 22:49:06 +00:00
cxx-throws.proftext InstrProf: Mark code regions after throw expressions as unreachable 2015-04-28 06:31:55 +00:00
func-entry.proftext Set function entry counts with -fprofile-instr-use. 2015-05-27 21:58:42 +00:00
gcc-flag-compatibility.proftext Add GCC-compatible flags -fprofile-generate and -fprofile-use. 2015-07-09 17:23:53 +00:00
objc-general.proftext test: Use llvm-profdata merge in Profile tests 2014-04-17 22:49:06 +00:00
profiled_header.h CodeGen: Improve warnings about uninstrumented files when profiling 2014-06-26 01:45:07 +00:00