[Lldb-commits] [compiler-rt] [mlir] [llvm] [clang] [clang-tools-extra] [flang] [lldb] [Profile] Add binary profile correlation to offload profile metadata at runtime. (PR #69493)

Fangrui Song via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 9 22:23:01 PST 2023


================
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1  -fprofile-instrument=clang -fcoverage-mapping -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -mllvm -profile-correlate=binary -fprofile-instrument=clang -fcoverage-mapping -emit-llvm -o - %s | FileCheck %s --check-prefix=BIN-CORRELATE
----------------
MaskRay wrote:

Specify an explicit `-target-triple` to test a COMDAT triple (e.g. Linux) and a non-COMDAT triple (e.g. macOS).

Change `// CHECK: @__llvm_profile_raw_version = {{.*}} i64 9` to test more properties including the visibility and `comdat`

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


More information about the lldb-commits mailing list