
As discussed in https://github.com/llvm/llvm-project/pull/121514 add the frontend flag `-ftemporal-profile` to enable temporal profiling (https://discourse.llvm.org/t/rfc-temporal-profiling-extension-for-irpgo/68068) as a replacement for `-forder-file-instrumentation` (https://discourse.llvm.org/t/deprecate-forder-file-instrumentation-in-favor-of-temporal-profiling/83903)
8 lines
430 B
C
8 lines
430 B
C
// RUN: %clang -### -c -fprofile-generate -ftemporal-profile %s 2>&1 | FileCheck %s
|
|
// RUN: %clang -### -c -fcs-profile-generate -ftemporal-profile %s 2>&1 | FileCheck %s
|
|
// RUN: not %clang -### -c -ftemporal-profile %s 2>&1 | FileCheck %s --check-prefix=ERR
|
|
|
|
// CHECK: "-mllvm" "--pgo-temporal-instrumentation"
|
|
|
|
// ERR: error: invalid argument '-ftemporal-profile' only allowed with '-fprofile-generate or -fcs-profile-generate'
|