[clang] [compiler-rt] [clang-tools-extra] [PGO] Exposing PGO's Counter Reset and File Dumping APIs (PR #76471)

Mingming Liu via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 2 14:57:38 PST 2024


================
@@ -0,0 +1,38 @@
+// RUN: %clang_profgen %s --target=ppc64le-unknown-linux-gnu -S \
+// RUN:    -emit-llvm -o - | FileCheck %s --check-prefix=PROFGEN
+// RUN: %clang_profgen -o %t %s
+// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
----------------
minglotus-6 wrote:

> I don't have access to a BE machine at the moment to reproduce but I will go find one and take a look.

Or maybe just add `REQUIRES: host-byteorder-little-endian` if this test passes on little-endian systems. 

https://github.com/llvm/llvm-project/pull/76471


More information about the cfe-commits mailing list