brintos

brintos / llvm-project-archived public Read only

0
0
Text · 781 B · 219f31f Raw
29 lines · plain
1; RUN: opt -module-summary %s -o %t1.bc2; RUN: opt -module-summary %p/Inputs/dot-dumper.ll -o %t2.bc3; RUN: llvm-lto2 run -save-temps %t1.bc %t2.bc -o %t3 \4; RUN:  -r=%t1.bc,main,px \5; RUN:  -r=%t1.bc,A, \6; RUN:  -r=%t2.bc,foo,p \7; RUN:  -r=%t2.bc,bar,p \8; RUN:  -r=%t2.bc,A,p \9; RUN:  -r=%t2.bc,B,p10; RUN: cat %t3.index.dot | FileCheck %s11 12; CHECK: subgraph cluster_013; CHECK:   M0_[[ID:[0-9]+]]{{.*}}main14; CHECK: // Cross-module edges:15; CHECK:  M0_[[ID]] -> M1_{{[0-9]+}}{{.*}}// ref16 17target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"18target triple = "x86_64-unknown-linux-gnu"19 20@A = external global i3221 22define i32 @main() {23  %v = load i32, ptr @A24  ret i32 %v25}26 27!0 = !{i32 1, !"ThinLTO", i32 0}28!llvm.module.flags = !{ !0 }29