llvm-project/clang/test/Profile
Aaron Ballman 0dd49a5628 Use functions with prototypes when appropriate; NFC
A significant number of our tests in C accidentally use functions
without prototypes. This patch converts the function signatures to have
a prototype for the situations where the test is not specific to K&R C
declarations. e.g.,

  void func();

becomes

  void func(void);

This is the eighth batch of tests being updated (there are a
significant number of other tests left to be updated).
2022-02-12 07:25:06 -05:00
..
Inputs [Coverage] Add support for Branch Coverage in LLVM Source-Based Code Coverage 2021-01-05 09:51:51 -06:00
README
branch-logical-mixed.cpp [InstrProf] Use i32 for GEP index from lowering llvm.instrprof.increment 2021-11-19 15:45:14 -08:00
branch-profdup.cpp [Coverage] Fix test failures from commit rG9f2967bcfe2f 2021-01-05 13:35:52 -06:00
c-avoid-direct-call.c
c-captured.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
c-collision.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
c-counter-overflows.c Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
c-general.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
c-generate.c Reapply multiple "[clang][cli]" patches 2021-01-06 13:27:19 +01:00
c-indirect-call.c
c-linkage-available_externally.c [InstrProfiling] Make CountersPtr in __profd_ relative 2021-07-30 11:52:18 -07:00
c-linkage.c Revert test fixups after e9a9c85098 (which reverted a14fc74). 2021-06-04 10:42:25 -04:00
c-outdated-data.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
c-ternary.c [InstrProf] Use i32 for GEP index from lowering llvm.instrprof.increment 2021-11-19 15:45:14 -08:00
c-unprofiled-blocks.c [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default 2022-01-16 18:54:17 +09:00
c-unprofiled.c
c-unreachable-after-switch.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
coverage-prefix-map.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
cxx-abc-deleting-dtor.cpp [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default 2022-01-16 18:54:17 +09:00
cxx-class.cpp [InstrProf] Use i32 for GEP index from lowering llvm.instrprof.increment 2021-11-19 15:45:14 -08:00
cxx-hash-v2.cpp
cxx-implicit.cpp
cxx-indirect-call.cpp
cxx-lambda.cpp Resolve lit failures in clang-aarch64* 2022-01-16 23:06:05 +09:00
cxx-linkage.cpp Revert test fixups after e9a9c85098 (which reverted a14fc74). 2021-06-04 10:42:25 -04:00
cxx-missing-bodies.cpp
cxx-rangefor.cpp [InstrProf] Use i32 for GEP index from lowering llvm.instrprof.increment 2021-11-19 15:45:14 -08:00
cxx-stmt-initializers.cpp [InstrProf] Use i32 for GEP index from lowering llvm.instrprof.increment 2021-11-19 15:45:14 -08:00
cxx-structors.cpp
cxx-templates.cpp [InstrProf] Use i32 for GEP index from lowering llvm.instrprof.increment 2021-11-19 15:45:14 -08:00
cxx-throws.cpp [InstrProf] Use i32 for GEP index from lowering llvm.instrprof.increment 2021-11-19 15:45:14 -08:00
cxx-virtual-destructor-calls.cpp
def-assignop.cpp
def-ctors.cpp
def-dtors.cpp
func-entry.c
gcc-flag-compatibility-aix.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
gcc-flag-compatibility.c Use functions with prototypes when appropriate; NFC 2022-02-12 07:25:06 -05:00
objc-general.m [InstrProf] Use i32 for GEP index from lowering llvm.instrprof.increment 2021-11-19 15:45:14 -08:00
profile-does-not-exist.c
profile-summary.c

README

These are tests for instrumentation based profiling.  This specifically means
the -fprofile-instr-generate and -fprofile-instr-use driver flags.

Tests in this directory should usually test both:

  - the generation of instrumentation (-fprofile-instr-generate), and
  - the use of profile data from instrumented runs (-fprofile-instr-use).

In order to test -fprofile-instr-use without actually running an instrumented
program, .profdata files are checked into Inputs/.

The input source files must include a main function such that building with
-fprofile-instr-generate and running the resulting program generates the same
.profdata file that is consumed by the tests for -fprofile-instr-use.  Even
tests that only check -fprofile-instr-use should include such a main function,
so that profile data can be regenerated as the .profdata file format evolves.