Home | History | Annotate | Line # | Download | only in profile
      1      1.1  joerg RUN: mkdir -p %t.d
      2      1.1  joerg RUN: %clang_profgen -o %t.d/func.shared -fPIC -shared %S/Inputs/instrprof-dlopen-func.c
      3      1.1  joerg RUN: %clang_profgen -o %t.d/func2.shared -fPIC -shared %S/Inputs/instrprof-dlopen-func2.c
      4  1.1.1.2  joerg RUN: %clang -o %t-local -fPIC -DDLOPEN_FUNC_DIR=\"%t.d\" -DDLOPEN_FLAGS="RTLD_LAZY | RTLD_LOCAL" %S/Inputs/instrprof-dlopen-main.c
      5  1.1.1.2  joerg RUN: %clang -o %t-global -fPIC -DDLOPEN_FUNC_DIR=\"%t.d\" -DDLOPEN_FLAGS="RTLD_LAZY | RTLD_GLOBAL" %S/Inputs/instrprof-dlopen-main.c
      6      1.1  joerg 
      7      1.1  joerg RUN: %clang -c -o %t.d/main.o %S/Inputs/instrprof-dlopen-main.c
      8      1.1  joerg RUN: %clang_profgen -o %t-static %S/Inputs/instrprof-dlopen-func.c %S/Inputs/instrprof-dlopen-func2.c %t.d/main.o
      9      1.1  joerg 
     10      1.1  joerg RUN: env LLVM_PROFILE_FILE=%t-static.profraw %run %t-static
     11      1.1  joerg RUN: env LLVM_PROFILE_FILE=%t-local.profraw %run %t-local
     12      1.1  joerg RUN: env LLVM_PROFILE_FILE=%t-global.profraw %run %t-global
     13      1.1  joerg 
     14      1.1  joerg RUN: llvm-profdata merge -o %t-static.profdata %t-static.profraw
     15      1.1  joerg RUN: llvm-profdata merge -o %t-local.profdata %t-local.profraw
     16      1.1  joerg RUN: llvm-profdata merge -o %t-global.profdata %t-global.profraw
     17      1.1  joerg 
     18      1.1  joerg RUN: %clang_profuse=%t-static.profdata -o %t-func.static.ll -S -emit-llvm %S/Inputs/instrprof-dlopen-func.c
     19      1.1  joerg RUN: %clang_profuse=%t-local.profdata -o %t-func.local.ll -S -emit-llvm %S/Inputs/instrprof-dlopen-func.c
     20      1.1  joerg RUN: %clang_profuse=%t-global.profdata -o %t-func.global.ll -S -emit-llvm %S/Inputs/instrprof-dlopen-func.c
     21      1.1  joerg RUN: diff %t-func.static.ll %t-func.local.ll
     22      1.1  joerg RUN: diff %t-func.static.ll %t-func.global.ll
     23      1.1  joerg 
     24      1.1  joerg RUN: %clang_profuse=%t-static.profdata -o %t-func2.static.ll -S -emit-llvm %S/Inputs/instrprof-dlopen-func2.c
     25      1.1  joerg RUN: %clang_profuse=%t-local.profdata -o %t-func2.local.ll -S -emit-llvm %S/Inputs/instrprof-dlopen-func2.c
     26      1.1  joerg RUN: %clang_profuse=%t-global.profdata -o %t-func2.global.ll -S -emit-llvm %S/Inputs/instrprof-dlopen-func2.c
     27      1.1  joerg RUN: diff %t-func2.static.ll %t-func2.local.ll
     28      1.1  joerg RUN: diff %t-func2.static.ll %t-func2.global.ll
     29      1.1  joerg 
     30      1.1  joerg RUN: %clang_profuse=%t-static.profdata -o %t-main.static.ll -S -emit-llvm %S/Inputs/instrprof-dlopen-main.c
     31      1.1  joerg RUN: %clang_profuse=%t-local.profdata -o %t-main.local.ll -S -emit-llvm %S/Inputs/instrprof-dlopen-main.c
     32      1.1  joerg RUN: %clang_profuse=%t-local.profdata -o %t-main.global.ll -S -emit-llvm %S/Inputs/instrprof-dlopen-main.c
     33      1.1  joerg RUN: diff %t-main.static.ll %t-main.local.ll
     34      1.1  joerg RUN: diff %t-main.static.ll %t-main.global.ll
     35