/external/llvm-project/llvm/test/Transforms/GlobalDCE/ |
D | comdats.ll | 5 ; First test checks that if one function in a comdat group is used, both other 7 $test1_c = comdat any 8 ; CHECK: $test1_c = comdat any 10 ; Second test checks that if one function in a comdat group is used, both other 12 $test2_c = comdat any 13 ; CHECK: $test2_c = comdat any 15 ; Third test checks that calling a function in a comdat group with an alias 17 $test3_c = comdat any 18 ; CHECK: $test3_c = comdat any 20 ; Fourth test checks that calling an alias in a comdat group with a function [all …]
|
/external/llvm/test/Linker/ |
D | comdat.ll | 1 ; RUN: llvm-link %s %p/Inputs/comdat.ll -S -o - | FileCheck %s 5 $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 [all …]
|
D | funcimport_comdat.ll | 6 ; 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) 12 ; Ensure linking of comdat containing internal linkage function with alias 13 ; removes the imported and promoted available_externally defs from comdat. 15 ; IMPORTCOMDAT2-NOT: $comdat2 = comdat any 16 ; IMPORTCOMDAT2-NOT: comdat($comdat2) 18 $comdat1 = comdat any 19 @comdat1_glob = global i32 0, comdat($comdat1) [all …]
|
D | comdat_group.ll | 1 ; 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.
|
/external/llvm-project/llvm/test/Linker/ |
D | comdat.ll | 1 ; RUN: llvm-link %s %p/Inputs/comdat.ll -S -o - | FileCheck %s 5 $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 [all …]
|
D | funcimport_comdat.ll | 6 ; 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) 12 ; Ensure linking of comdat containing internal linkage function with alias 13 ; removes the imported and promoted available_externally defs from comdat. 15 ; IMPORTCOMDAT2-NOT: $comdat2 = comdat any 16 ; IMPORTCOMDAT2-NOT: comdat($comdat2) 18 $comdat1 = comdat any 19 @comdat1_glob = global i32 0, comdat($comdat1) [all …]
|
D | comdat_group.ll | 1 ; 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.
|
/external/llvm-project/lld/test/COFF/ |
D | lto-comdat.ll | 2 ; RUN: llvm-as -o %T/comdat-main.lto.obj %s 5 ; RUN: rm -f %T/comdat.lto.lib 6 ; RUN: llvm-ar cru %T/comdat.lto.lib %T/comdat1.lto.obj %T/comdat2.lto.obj 8 ; RUN: llc -filetype=obj -o %T/comdat-main.obj %s 11 ; RUN: rm -f %T/comdat.lib 12 ; RUN: llvm-ar cru %T/comdat.lib %T/comdat1.obj %T/comdat2.obj 15 ; of f1, f2, and comdat. 16 ; RUN: lld-link /out:%T/comdat-main.exe /entry:main /subsystem:console %T/comdat-main.lto.obj %T/co… 17 ; RUN: llvm-readobj --file-headers %T/comdat-main.exe | FileCheck -check-prefix=HEADERS-11 %s 18 ; RUN: llvm-objdump -d %T/comdat-main.exe | FileCheck --check-prefix=TEXT-11 %s [all …]
|
/external/llvm-project/llvm/test/Transforms/PGOProfile/ |
D | comdat_rename.ll | 1 ; RUN: opt < %s -mtriple=x86_64-unknown-linux -pgo-instr-gen -do-comdat-renaming=true -S | FileChec… 2 ; RUN: opt < %s -mtriple=x86_64-unknown-linux -passes=pgo-instr-gen -do-comdat-renaming=true -S | F… 3 ; RUN: opt < %s -mtriple=x86_64-pc-win32-coff -pgo-instr-gen -do-comdat-renaming=true -S | FileChec… 4 ; RUN: opt < %s -mtriple=x86_64-pc-win32-coff -passes=pgo-instr-gen -do-comdat-renaming=true -S | F… 7 $f = comdat any 8 ; CHECK: $f.[[SINGLEBB_HASH:[0-9]+]] = comdat any 9 define linkonce_odr void @f() comdat($f) { 14 $f_with_alias = comdat any 15 ; CHECK: $f_with_alias = comdat any 16 define linkonce_odr void @f_with_alias() comdat { [all …]
|
/external/llvm/test/CodeGen/X86/ |
D | coff-comdat.ll | 3 $f1 = comdat any 4 @v1 = global i32 0, comdat($f1) 5 define void @f1() comdat($f1) { 9 $f2 = comdat exactmatch 10 @v2 = global i32 0, comdat($f2) 11 define void @f2() comdat($f2) { 15 $f3 = comdat largest 16 @v3 = global i32 0, comdat($f3) 17 define void @f3() comdat($f3) { 21 $f4 = comdat noduplicates [all …]
|
D | global-sections-comdat.ll | 5 $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 39 ; LINUX-SECTIONS-SHORT-NEXT: .section .rodata,"aG",@progbits,F1,comdat 41 $G16 = comdat any 42 @G16 = unnamed_addr constant i32 42, comdat [all …]
|
/external/llvm-project/llvm/test/CodeGen/X86/ |
D | coff-comdat.ll | 3 $f1 = comdat any 4 @v1 = global i32 0, comdat($f1) 5 define void @f1() comdat($f1) { 9 $f2 = comdat exactmatch 10 @v2 = global i32 0, comdat($f2) 11 define void @f2() comdat($f2) { 15 $f3 = comdat largest 16 @v3 = global i32 0, comdat($f3) 17 define void @f3() comdat($f3) { 21 $f4 = comdat noduplicates [all …]
|
D | global-sections-comdat.ll | 5 $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 39 ; LINUX-SECTIONS-SHORT-NEXT: .section .rodata,"aG",@progbits,F1,comdat 41 $G16 = comdat any 42 @G16 = unnamed_addr constant i32 42, comdat [all …]
|
/external/llvm/test/Transforms/Internalize/ |
D | comdat.ll | 3 $c1 = comdat any 4 $c2 = comdat any 5 $c3 = comdat any 6 $c4 = comdat any 8 ; CHECK: @c1_c = global i32 0, comdat($c1) 9 @c1_c = global i32 0, comdat($c1) 12 @c2_b = global i32 0, comdat($c2) 14 ; CHECK: @c3 = global i32 0, comdat{{$}} 15 @c3 = global i32 0, comdat 17 ; CHECK: @c4_a = internal global i32 0, comdat($c4) [all …]
|
/external/llvm-project/llvm/test/Transforms/Internalize/ |
D | comdat.ll | 3 $c1 = comdat any 4 $c2 = comdat any 5 $c3 = comdat any 6 $c4 = comdat any 8 ; CHECK: @c1_c = global i32 0, comdat($c1) 9 @c1_c = global i32 0, comdat($c1) 12 @c2_b = global i32 0, comdat($c2) 14 ; CHECK: @c3 = global i32 0, comdat{{$}} 15 @c3 = global i32 0, comdat 17 ; CHECK: @c4_a = internal global i32 0, comdat($c4) [all …]
|
/external/llvm-project/llvm/test/Transforms/ThinLTOBitcodeWriter/ |
D | comdat.ll | 8 ; Internal comdat leader with type metadata. All comdat members need to live 9 ; in the merged module, and the comdat needs to be renamed. 10 ; MERGED: ${{"?lwt[^ ]+}} = comdat any 11 $lwt = comdat any 13 ; External comdat leader, type metadata on non-leader. All comdat 16 ; MERGED: $nlwt = comdat any 17 $nlwt = comdat any 19 ; Comdat with two members without type metadata. All comdat members live in 21 ; THIN: $nt = comdat any 22 $nt = comdat any [all …]
|
/external/llvm/test/SymbolRewriter/ |
D | rewrite.ll | 31 $source_comdat_function = comdat any 32 define dllexport void @source_comdat_function() comdat($source_comdat_function) { 37 $source_comdat_function_1 = comdat exactmatch 38 define dllexport void @source_comdat_function_1() comdat($source_comdat_function_1) { 43 $source_comdat_variable = comdat largest 44 @source_comdat_variable = global i32 32, comdat($source_comdat_variable) 46 $source_comdat_variable_1 = comdat noduplicates 47 @source_comdat_variable_1 = global i32 64, comdat($source_comdat_variable_1) 49 ; CHECK: $target_comdat_function = comdat any 50 ; CHECK: $target_comdat_function_1 = comdat exactmatch [all …]
|
/external/llvm-project/llvm/test/SymbolRewriter/ |
D | rewrite.ll | 33 $source_comdat_function = comdat any 34 define dllexport void @source_comdat_function() comdat($source_comdat_function) { 39 $source_comdat_function_1 = comdat exactmatch 40 define dllexport void @source_comdat_function_1() comdat($source_comdat_function_1) { 45 $source_comdat_variable = comdat largest 46 @source_comdat_variable = global i32 32, comdat($source_comdat_variable) 48 $source_comdat_variable_1 = comdat noduplicates 49 @source_comdat_variable_1 = global i32 64, comdat($source_comdat_variable_1) 51 ; CHECK: $target_comdat_function = comdat any 52 ; CHECK: $target_comdat_function_1 = comdat exactmatch [all …]
|
/external/compiler-rt/test/profile/Linux/ |
D | instrprof-comdat.test | 2 …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 %t.d/comdat 4 RUN: llvm-profdata merge -o %t.d/comdat.prof %t-comdat.profraw 5 …equivalence --instr-profile=%t.d/comdat.prof %t.d/comdat | FileCheck --check-prefix=HEADER %S/../I…
|
/external/llvm-project/llvm/test/Instrumentation/AddressSanitizer/ |
D | win-sorted-sections.ll | 15 $__pobjMapEntryFirst = comdat any 16 $__pobjMapEntryMiddle = comdat any 17 $__pobjMapEntryLast = comdat any 18 $__crt_init_begin = comdat any 19 $__crt_init_callback = comdat any 20 $__crt_init_end = comdat any 22 @__pobjMapEntryFirst = weak_odr dso_local constant i8* null, section "ATL$__a", comdat, align 8 23 @__pobjMapEntryMiddle = weak_odr dso_local constant i8* null, section "ATL$__m", comdat, align 8 24 @__pobjMapEntryLast = weak_odr dso_local constant i8* null, section "ATL$__z", comdat, align 8 25 @__crt_init_begin = weak_odr dso_local constant i8* null, section ".CRT$XCA", comdat, align 8 [all …]
|
/external/llvm-project/compiler-rt/test/profile/Linux/ |
D | instrprof-comdat.test | 2 …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 …nce=/tmp,%S --instr-profile=%t.d/comdat.prof %t.d/comdat | FileCheck --check-prefix=HEADER %S/../I…
|
/external/llvm-project/llvm/test/Linker/Inputs/ |
D | comdat.ll | 4 $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)
|
/external/llvm/test/Linker/Inputs/ |
D | comdat.ll | 4 $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)
|
/external/llvm-project/llvm/test/Feature/ |
D | comdat.ll | 3 $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)
|
/external/llvm/test/Feature/ |
D | comdat.ll | 3 $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)
|