1; RUN: opt -module-summary -passes=pseudo-probe %s -o %t1.bc 2; RUN: opt -module-summary %p/Inputs/pseudo-probe-desc-import.ll -o %t2.bc 3; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t1.bc %t2.bc 4 5; Don't import pseudo probe desc. 6; RUN: llvm-lto -thinlto-action=import %t1.bc -thinlto-index=%t.index.bc -o - | llvm-dis -o - | FileCheck %s 7 8 9; Warn that current module is not pseudo-probe instrumented. 10; RUN: opt -module-summary %s -o %t3.bc 11; RUN: llvm-lto -thinlto-action=thinlink -o %t3.index.bc %t3.bc %t2.bc 12; RUN: llvm-lto -thinlto-action=import %t3.bc -thinlto-index=%t3.index.bc -o /dev/null 2>&1 | FileCheck %s --check-prefix=WARN 13 14 15; CHECK-NOT: {i64 6699318081062747564, i64 [[#]], !"foo" 16; CHECK: !{i64 -2624081020897602054, i64 [[#]], !"main" 17 18; WARN: warning: Pseudo-probe ignored: source module '{{.*}}' is compiled with -fpseudo-probe-for-profiling while destination module '{{.*}}' is not 19 20target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 21target triple = "x86_64-unknown-linux-gnu" 22 23define i32 @main() { 24entry: 25 call void (...) @foo() 26 ret i32 0 27} 28 29declare void @foo(...) 30 31attributes #0 = { inaccessiblememonly nounwind willreturn } 32