annotate test/Linker/only-needed-compiler-used.ll @ 146:3fc4d5c3e21e

set tail call flag for code segment in CGCAll
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 19:23:36 +0900
parents 803732b1fca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 ; RUN: llvm-link -S %s %p/Inputs/only-needed-compiler-used.ll | FileCheck %s --check-prefix=CHECK --check-prefix=NO-INTERNALIZE
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2 ; RUN: llvm-link -S -internalize %s %p/Inputs/only-needed-compiler-used.ll | FileCheck %s --check-prefix=CHECK --check-prefix=INTERNALIZE
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 ; RUN: llvm-link -S -only-needed %s %p/Inputs/only-needed-compiler-used.ll | FileCheck %s --check-prefix=CHECK --check-prefix=NO-INTERNALIZE
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 ; RUN: llvm-link -S -only-needed -internalize %s %p/Inputs/only-needed-compiler-used.ll | FileCheck %s --check-prefix=CHECK --check-prefix=INTERNALIZE
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 ; Empty destination module!
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 ; CHECK-DAG: @llvm.compiler.used = appending global [2 x i8*] [i8* @used1, i8* bitcast (i32* @used2 to i8*)], section "llvm.metadata"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 ; NO-INTERNALIZE-DAG: @used1 = global i8 4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 ; INTERNALIZE-DAG: @used1 = internal global i8 4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 ; NO-INTERNALIZE-DAG: @used2 = global i32 123
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 ; INTERNALIZE-DAG: @used2 = internal global i32 123