view bolt/test/yaml-profile-kind.c @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1f2b6ac9f198
children
line wrap: on
line source

/* This test checks the handling of YAML profile with different block orders.
# RUN: %clang %cflags %s -o %t.exe
# RUN: link_fdata %s %t.exe %t.fdata
# RUN: llvm-bolt %t.exe -o /dev/null -data %t.fdata -w %t.yaml
# RUN: FileCheck %s --input-file %t.yaml --check-prefix=CHECK-BINARY
# CHECK-BINARY: dfs-order: false
# RUN: llvm-bolt %t.exe -o /dev/null -data %t.fdata -w %t.yaml --profile-use-dfs
# RUN: FileCheck %s --input-file %t.yaml --check-prefix=CHECK-DFS
# CHECK-DFS: dfs-order: true

# FDATA: 0 [unknown] 0 1 main 0 0 0
*/
int main() { return 0; }