[PATCH] D57463: Add a module pass for order file instrumentation

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 16 19:15:18 PDT 2021


thakis added a comment.

> is there any documentation on how to use this? I see that clang has a `-forder-file-instrumentation` switch to enable this. But what do I do after I enabled it? Run the instrumented program and then…? From the name, I'm guessing maybe the idea is that this will produce an order file?

Looks like `compiler-rt/test/profile/instrprof-order-file.test` gives a demo for how this is supposed to be used: `clang -forder-file-instrumentation -O1 compiler-rt/test/profile/Inputs/instrprof-order-file-2.c compiler-rt/test/profile/Inputs/instrprof-order-file.c -mllvm -orderfile-write-mapping="mapping.txt"`, i.e. it needs an `-mllvm` flag to make it have an effect.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57463/new/

https://reviews.llvm.org/D57463



More information about the llvm-commits mailing list