Several lit tests are failing on macOS, as they are linux-specific, but not using the "REQUIRES: system-linux" setting. This patch adds the missing requirements to tests failing on macOS.
24 lines
818 B
C
24 lines
818 B
C
// This test checks timers for metadata manager phases.
|
|
|
|
// REQUIRES: system-linux
|
|
|
|
// RUN: %clang %cflags %s -o %t.exe
|
|
// RUN: link_fdata %s %t.exe %t.fdata
|
|
// RUN: llvm-bolt %t.exe -o %t.null --data %t.fdata -w %t.yaml --time-rewrite \
|
|
// RUN: 2>&1 | FileCheck %s
|
|
// RUN: link_fdata %s %t.exe %t.preagg PREAGG
|
|
// RUN: perf2bolt %t.exe -o %t.null -p %t.preagg --pa --time-rewrite \
|
|
// RUN: 2>&1 | FileCheck %s --check-prefix=CHECK-P2B
|
|
|
|
// CHECK-DAG: update metadata post-emit
|
|
// CHECK-DAG: process section metadata
|
|
// CHECK-DAG: process metadata pre-CFG
|
|
// CHECK-DAG: process metadata post-CFG
|
|
// CHECK-DAG: finalize metadata pre-emit
|
|
|
|
// CHECK-P2B-DAG: process section metadata
|
|
// CHECK-P2B-DAG: process metadata pre-CFG
|
|
|
|
// FDATA: 0 [unknown] 0 1 main 0 1 0
|
|
// PREAGG: B X:0 #main# 1 0
|
|
int main() { return 0; }
|