README 859 B

12345678910111213141516
  1. These are tests for instrumentation based profiling. This specifically means
  2. the -fprofile-instr-generate and -fprofile-instr-use driver flags.
  3. Tests in this directory should usually test both:
  4. - the generation of instrumentation (-fprofile-instr-generate), and
  5. - the use of profile data from instrumented runs (-fprofile-instr-use).
  6. In order to test -fprofile-instr-use without actually running an instrumented
  7. program, .profdata files are checked into Inputs/.
  8. The input source files must include a main function such that building with
  9. -fprofile-instr-generate and running the resulting program generates the same
  10. .profdata file that is consumed by the tests for -fprofile-instr-use. Even
  11. tests that only check -fprofile-instr-use should include such a main function,
  12. so that profile data can be regenerated as the .profdata file format evolves.