Home
last modified time | relevance | path

Searched refs:comdat (Results 1 – 25 of 415) sorted by relevance

12345678910>>...17

/llvm-project-15.0.7/llvm/test/Transforms/Internalize/
H A Dcomdat.ll8 $c1 = comdat any
9 $c2 = comdat any
10 $c3 = comdat any
11 $c4 = comdat any
12 $c5 = comdat any
14 ; CHECK: $c1 = comdat any
18 ; WASM: $c2 = comdat any
20 ; CHECK: $c3 = comdat any
21 ; CHECK: $c4 = comdat any
31 @c3 = global i32 0, comdat
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/GlobalDCE/
H A Dcomdats.ll7 $test1_c = comdat any
12 $test2_c = comdat any
17 $test3_c = comdat any
23 $test4_c = comdat any
30 $test5_c = comdat any
36 $test6_c = comdat any
40 $test7_c = comdat any
44 $test8_c = comdat any
49 $test9_c = comdat any
55 $test10_c = comdat any
[all …]
/llvm-project-15.0.7/llvm/test/Linker/
H A Dcomdat.ll5 $foo = comdat largest
6 @foo = global i32 42, comdat($foo)
8 define i32 @bar() comdat($foo) {
12 $qux = comdat largest
13 @qux = global i64 12, comdat($qux)
15 define i32 @baz() comdat($qux) {
19 $any = comdat any
20 @any = global i64 6, comdat($any)
22 ; CHECK: $qux = comdat largest
23 ; CHECK: $foo = comdat largest
[all …]
H A Dcomdat-nodeduplicate.ll21 $foo = comdat nodeduplicate
22 @foo = global i64 43, comdat($foo)
25 $foo = comdat nodeduplicate
26 @foo = global i64 43, comdat($foo)
29 $foo = comdat nodeduplicate
31 @bar = weak global i64 0, section "cnts", comdat($foo)
32 @qux = weak_odr global i64 4, comdat($foo)
35 $foo = comdat nodeduplicate
38 @fred = linkonce global i64 5, comdat($foo)
41 $foo = comdat nodeduplicate
[all …]
H A Dcomdat-any.ll18 $foo = comdat any
19 @foo = global i8 0, comdat
22 $foo = comdat any
23 @foo = global i8 1, comdat
33 $c1 = comdat any
53 ; CHECK2: $c1 = comdat any
54 ; CHECK2: $c2 = comdat any
96 $c2 = comdat any
97 $c1 = comdat any
127 $a1 = comdat any
[all …]
H A Dcomdat-largest.ll3 ;; The source doesn't have comdat.
11 $c = comdat any
17 ; CHECK1-DAG: $c = comdat any
21 $f2 = comdat largest
25 define void @f3() comdat($f2) {
29 ; CHECK1-DAG: $f2 = comdat largest
33 $c = comdat largest
35 ; CHECK2: @c = global i32 0, comdat
36 @c = global i32 0, comdat
41 $foo = comdat largest
[all …]
H A Dfuncimport_comdat.ll6 ; Ensure linking of comdat containing external linkage global and function
7 ; removes the imported available_externally defs from comdat.
9 ; IMPORTCOMDAT-NOT: $comdat1 = comdat any
10 ; IMPORTCOMDAT-NOT: comdat($comdat1)
15 ; IMPORTCOMDAT2-NOT: $comdat2 = comdat any
16 ; IMPORTCOMDAT2-NOT: comdat($comdat2)
18 $comdat1 = comdat any
19 @comdat1_glob = global i32 0, comdat($comdat1)
20 define void @comdat1_func1() comdat($comdat1) {
24 $comdat2 = comdat any
[all …]
H A Dcomdat_group.ll1 ; Ensure complete comdat group is materialized
3 ; CHECK: $linkoncecomdat = comdat any
5 ; CHECK: @linkoncecomdat_unref_var = linkonce global i32 2, comdat($linkoncecomdat)
6 ; CHECK: define linkonce void @linkoncecomdat_unref_func() comdat($linkoncecomdat)
8 $linkoncecomdat = comdat any
9 @linkoncecomdat = linkonce global i32 2, comdat($linkoncecomdat)
10 @linkoncecomdat_unref_var = linkonce global i32 2, comdat($linkoncecomdat)
11 define linkonce void @linkoncecomdat_unref_func() comdat($linkoncecomdat) {
14 ; Reference one member of comdat so that comdat is generated.
H A Dcomdat-refer-to-discarded.ll6 ; internal function in the comdat $foo.
8 ; but COFF linkers seem to just duplicate the comdat.
10 $foo = comdat any
11 @foo = internal global i8 0, comdat
16 ; CHECK: $foo = comdat any
18 ; CHECK: @foo = internal global i8 0, comdat
19 ; CHECK: @foo.1 = internal global i8 1, comdat($foo)
30 ; CHECK: define internal void @bax() comdat($foo) {
35 $foo = comdat any
36 @foo = internal global i8 1, comdat
[all …]
H A Dconstructor-comdat.ll1 ; RUN: llvm-link %s %p/Inputs/constructor-comdat.ll -S -o - 2>&1 | FileCheck %s
2 ; RUN: llvm-link %p/Inputs/constructor-comdat.ll %s -S -o - 2>&1 | FileCheck --check-prefix=NOCOMDA…
4 $_ZN3fooIiEC5Ev = comdat any
5 ; CHECK: $_ZN3fooIiEC5Ev = comdat any
6 ; NOCOMDAT-NOT: comdat
12 ; CHECK: define weak_odr void @_ZN3fooIiEC2Ev() comdat($_ZN3fooIiEC5Ev) {
14 define weak_odr void @_ZN3fooIiEC2Ev() comdat($_ZN3fooIiEC5Ev) {
/llvm-project-15.0.7/lld/test/COFF/
H A Dlto-comdat.ll2 ; RUN: llvm-as -o %T/comdat-main.lto.obj %s
5 ; RUN: rm -f %T/comdat.lto.lib
11 ; RUN: rm -f %T/comdat.lib
15 ; of f1, f2, and comdat.
19 ; RUN: lld-link /out:%T/comdat-main.exe /entry:main /subsystem:console %T/comdat-main.lto.obj %T/co…
25 ; call to comdat from main.
29 ; RUN: lld-link /out:%T/comdat-main.exe /entry:main /subsystem:console %T/comdat-main.obj %T/comdat
39 ; RUN: lld-link /out:%T/comdat-main.exe /entry:main /subsystem:console %T/comdat-main.lto.obj %T/co…
97 $comdat = comdat any
102 call void @comdat()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dcoff-comdat.ll3 $f1 = comdat any
4 @v1 = global i32 0, comdat($f1)
5 define void @f1() comdat($f1) {
9 $f2 = comdat exactmatch
15 $f3 = comdat largest
21 $f4 = comdat nodeduplicate
27 $f5 = comdat samesize
33 $f6 = comdat samesize
37 $"\01@f7@0" = comdat any
45 $f8 = comdat any
[all …]
H A Dglobal-sections-comdat.ll5 $F1 = comdat any
6 define void @F1(i32 %y) comdat {
26 ; LINUX: .section .text.F1,"axG",@progbits,F1,comdat
29 ; LINUX-NEXT: .section .rodata.F1,"aG",@progbits,F1,comdat
31 ; LINUX-SECTIONS: .section .text.F1,"axG",@progbits,F1,comdat
34 ; LINUX-SECTIONS-NEXT: .section .rodata.F1,"aG",@progbits,F1,comdat
36 ; LINUX-SECTIONS-SHORT: .section .text,"axG",@progbits,F1,comdat
41 $G16 = comdat any
42 @G16 = unnamed_addr constant i32 42, comdat
44 ; LINUX: .section .rodata.cst4.G16,"aGM",@progbits,4,G16,comdat
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/PGOProfile/
H A Dcomdat_rename.ll5 $f = comdat any
7 define linkonce_odr void @f() comdat($f) {
12 $f_with_alias = comdat any
13 ; CHECK: $f_with_alias = comdat any
20 $nf = comdat any
21 ; CHECK: $nf = comdat any
22 define void @nf() comdat($nf) {
27 $f_with_var = comdat any
28 ; CHECK: $f_with_var = comdat any
38 $tf = comdat any
[all …]
H A Dcomdat.ll1 ;; Test comdat functions.
5 $linkonceodr = comdat any
6 $weakodr = comdat any
11 ; ELF: @__profc_linkonceodr.[[#]] = linkonce_odr hidden global {{.*}} comdat, align 8
13 ; COFF: @__profc_linkonceodr.[[#]] = linkonce_odr hidden global {{.*}} comdat, align 8
15 define linkonce_odr void @linkonceodr() comdat {
19 ;; weakodr in a comdat is not renamed. There is no guarantee that definitions in
23 ; ELF: @__profc_weakodr = weak_odr hidden global {{.*}} comdat, align 8
25 ; COFF: @__profc_weakodr = weak_odr hidden global {{.*}} comdat, align 8
26 ; COFF: @__profd_weakodr = weak_odr hidden global {{.*}} comdat, align 8
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/ThinLTOBitcodeWriter/
H A Dcomdat.ll8 ; Internal comdat leader with type metadata. All comdat members need to live
11 $lwt = comdat any
13 ; External comdat leader, type metadata on non-leader. All comdat
16 ; MERGED: $nlwt = comdat any
17 $nlwt = comdat any
21 ; THIN: $nt = comdat any
22 $nt = comdat any
34 ; MERGED-SAME: comdat($nlwt)
38 ; MERGED-SAME: comdat
43 ; THIN-SAME: comdat
[all …]
/llvm-project-15.0.7/llvm/test/SymbolRewriter/
H A Drewrite.ll33 $source_comdat_function = comdat any
39 $source_comdat_function_1 = comdat exactmatch
45 $source_comdat_variable = comdat largest
48 $source_comdat_variable_1 = comdat nodeduplicate
51 ; CHECK: $target_comdat_function = comdat any
52 ; CHECK: $target_comdat_function_1 = comdat exactmatch
53 ; CHECK: $target_comdat_variable = comdat largest
54 ; CHECK: $target_comdat_variable_1 = comdat nodeduplicate
62 ; CHECK: @target_comdat_variable = global i32 32, comdat
63 ; CHECK-NOT: @source_comdat_variable = global i32 32, comdat
[all …]
/llvm-project-15.0.7/llvm/test/Instrumentation/AddressSanitizer/
H A Dwin-sorted-sections.ll14 $__pobjMapEntryFirst = comdat any
15 $__pobjMapEntryMiddle = comdat any
16 $__pobjMapEntryLast = comdat any
17 $__crt_init_begin = comdat any
18 $__crt_init_callback = comdat any
19 $__crt_init_end = comdat any
21 @__pobjMapEntryFirst = weak_odr dso_local constant i8* null, section "ATL$__a", comdat, align 8
22 @__pobjMapEntryMiddle = weak_odr dso_local constant i8* null, section "ATL$__m", comdat, align 8
23 @__pobjMapEntryLast = weak_odr dso_local constant i8* null, section "ATL$__z", comdat, align 8
24 @__crt_init_begin = weak_odr dso_local constant i8* null, section ".CRT$XCA", comdat, align 8
[all …]
/llvm-project-15.0.7/compiler-rt/test/profile/Linux/
H A Dinstrprof-comdat.test2 …clangxx_profgen -o %t.d/comdat -fcoverage-mapping -fuse-ld=gold %S/../Inputs/instrprof-comdat-1.cp…
3 RUN: LLVM_PROFILE_FILE=%t-comdat.profraw %run %t.d/comdat
4 RUN: llvm-profdata merge -o %t.d/comdat.prof %t-comdat.profraw
5 …vm-cov show --instr-profile=%t.d/comdat.prof %t.d/comdat | FileCheck --check-prefix=HEADER %S/../I…
/llvm-project-15.0.7/llvm/test/Linker/Inputs/
H A Dcomdat.ll4 $foo = comdat largest
5 @foo = global i64 43, comdat($foo)
7 define i32 @bar() comdat($foo) {
11 $qux = comdat largest
12 @qux = global i32 13, comdat($qux)
13 @in_unselected_group = global i32 13, comdat($qux)
15 define i32 @baz() comdat($qux) {
19 $any = comdat any
20 @any = global i64 7, comdat($any)
/llvm-project-15.0.7/llvm/test/LTO/Resolution/X86/
H A Dsymtab.ll21 ; CHECK-NEXT: comdat any @fun2@8
22 $fun2 = comdat any
55 ; CHECK-NEXT: comdat any _g9
56 $g9 = comdat any
57 @g9 = global i32 0, comdat
60 $g10 = comdat any
64 ; CHECK-NOT: comdat
65 @g11 = global i32 0, comdat($g10)
69 $g12 = comdat nodeduplicate
70 @g12 = global i32 0, comdat
[all …]
/llvm-project-15.0.7/llvm/test/Feature/
H A Dcomdat.ll3 $f = comdat any
4 ; CHECK: $f = comdat any
6 $f2 = comdat any
9 @v = global i32 0, comdat($f)
10 ; CHECK: @v = global i32 0, comdat($f)
15 define void @f() comdat($f) {
18 ; CHECK: define void @f() comdat {
20 $i = comdat largest
21 @i = internal global i32 0, comdat($i)
/llvm-project-15.0.7/llvm/test/Instrumentation/InstrProfiling/
H A Dcomdat.ll7 ; Test comdat functions. Non-comdat functions are tested in linkage.ll.
19 $foo_inline = comdat any
20 $foo_extern = comdat any
27 ;; non-local which requires separate comdat on COFF due to a link.exe limitation.
29 ; ELF: @__profc_foo_inline = linkonce_odr hidden global {{.*}}, section "__llvm_prf_cnts", comdat
32 ; COFF0: @__profc_foo_inline = linkonce_odr hidden global {{.*}}, section ".lprfc$M", comdat, align…
34 ; COFF1: @__profc_foo_inline = linkonce_odr hidden global {{.*}}, section ".lprfc$M", comdat, align…
35 ; COFF1: @__profd_foo_inline = linkonce_odr hidden global {{.*}}, section ".lprfd$M", comdat, align…
36 define weak_odr void @foo_inline() comdat {
44 ; COFF: @__profc_foo_extern = linkonce_odr hidden global{{.*}}, section ".lprfc$M", comdat, align 8
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/COFF/
H A Dremove-section.test17 # RUN: not llvm-objcopy -R .comdat %t.in.o %t.remove-comdat.o 2>&1 | FileCheck %s --check-prefix=ER…
19 # RUN: llvm-objcopy -R .text -R .comdat %t.in.o %t.remove-text-comdat.o
28 # SECTIONS-PRE-NEXT: 2 .comdat
35 # SYMBOLS-PRE-NEXT: AUX scnlen {{.*}} assoc 1 comdat 0
37 # SYMBOLS-PRE-NEXT: AUX scnlen {{.*}} assoc 2 comdat 0
40 # SYMBOLS-PRE-NEXT: {{.*}}(sec 3){{.*}} .comdat
57 # SECTIONS-REMOVE-BSS-NEXT: 1 .comdat
80 # SECTIONS-REMOVE-TEXT-NEXT: 1 .comdat
102 # Removing the .comdat section and .text (with a relocation against .comdat)
133 - Name: .comdat
[all …]
/llvm-project-15.0.7/llvm/test/Instrumentation/SanitizerCoverage/
H A Dinterposable-symbol.ll32 ; CHECK: $Vanilla = comdat nodeduplicate
33 ; ELF: $LinkOnceOdr = comdat nodeduplicate
34 ; COFF: $LinkOnceOdr = comdat any
35 ; CHECK: @__sancov_gen_ = private global [1 x i32] zeroinitializer, section {{.*}}, comdat($Va…
38 ; CHECK-NEXT: @__sancov_gen_.3 = private global [1 x i32] zeroinitializer, section {{.*}}, comdat($…
39 ; CHECK-NEXT: @__sancov_gen_.4 = private global [1 x i32] zeroinitializer, section {{.*}}, comdat($…
41 ; CHECK: define void @Vanilla() comdat {
42 ; ELF: define linkonce void @LinkOnce() comdat {
43 ; ELF: define weak void @Weak() comdat {
47 ; CHECK: define linkonce_odr void @LinkOnceOdr() comdat {
[all …]

12345678910>>...17