Home | History | Annotate | Line # | Download | only in profile
      1  1.1  joerg // RUN: %clang_profgen -O2 -fprofile-instr-generate -mllvm -enable-value-profiling=true -o %t %S/Inputs/instrprof-value-prof-real.c
      2  1.1  joerg // RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
      3  1.1  joerg // RUN: llvm-profdata merge -o %t.profdata %t.profraw
      4  1.1  joerg // RUN: llvm-profdata show --all-functions -ic-targets  %t.profdata | FileCheck  %S/Inputs/instrprof-value-prof-real.c
      5  1.1  joerg 
      6  1.1  joerg // do two step build before the clang option is ready
      7  1.1  joerg // RUN: %clang -O2 -mllvm -disable-vp=false -mllvm -profile-generate=%t.ir.profraw -c -o %t.ir.o  %S/Inputs/instrprof-value-prof-real.c
      8  1.1  joerg // RUN: %clang_profgen -O2 -o %t.ir  %t.ir.o
      9  1.1  joerg // RUN: %run %t.ir
     10  1.1  joerg // RUN: llvm-profdata merge -o %t.ir.profdata %t.ir.profraw
     11  1.1  joerg // RUN: llvm-profdata show --all-functions -ic-targets  %t.ir.profdata | FileCheck  %S/Inputs/instrprof-value-prof-real.c
     12