brintos

brintos / llvm-project-archived public Read only

0
0
Text · 590 B · 0cd3903 Raw
20 lines · plain
1; REQUIRES: x862; RUN: llvm-as %s -o %t.o3; RUN: ld.lld -m elf_x86_64 -shared %t.o -o %t.so --plugin-opt=time-trace=%t.trace.json4; RUN: FileCheck --input-file=%t.trace.json %s5;; Print to stdout6; RUN: ld.lld -m elf_x86_64 -shared %t.o -o %t.so --plugin-opt=time-trace=- | \7; RUN: FileCheck %s8 9target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"10target triple = "x86_64-unknown-linux-gnu"11 12; Make sure the content is correct13; CHECK: "traceEvents"14; Make sure LTO events are recorded15; CHECK-SAME: "name":"LTO"16 17define void @foo() {18  ret void19}20