brintos

brintos / llvm-project-archived public Read only

0
0
Text · 859 B · 3b66765 Raw
17 lines · plain
1These are tests for instrumentation based profiling.  This specifically means2the -fprofile-instr-generate and -fprofile-instr-use driver flags.3 4Tests in this directory should usually test both:5 6  - the generation of instrumentation (-fprofile-instr-generate), and7  - the use of profile data from instrumented runs (-fprofile-instr-use).8 9In order to test -fprofile-instr-use without actually running an instrumented10program, .profdata files are checked into Inputs/.11 12The input source files must include a main function such that building with13-fprofile-instr-generate and running the resulting program generates the same14.profdata file that is consumed by the tests for -fprofile-instr-use.  Even15tests that only check -fprofile-instr-use should include such a main function,16so that profile data can be regenerated as the .profdata file format evolves.17