Home
last modified time | relevance | path

Searched full:lto (Results 1 – 25 of 717) sorted by relevance

12345678910>>...29

/external/clang/docs/
DLTOVisibility.rst2 LTO Visibility
5 *LTO visibility* is a property of an entity that specifies whether it can be
6 referenced from outside the current LTO unit. A *linkage unit* is a set of
8 unit's *LTO unit* is the subset of the linkage unit that is linked together
9 using link-time optimization; in the case where LTO is not being used, the
10 linkage unit's LTO unit is empty. Each linkage unit has only a single LTO unit.
12 The LTO visibility of a class is used by the compiler to determine which
19 ODR violation to define a class with hidden LTO visibility in multiple linkage
20 units. A class with public LTO visibility may be defined in multiple linkage
22 control flow integrity features can only be applied to classes with hidden LTO
[all …]
/external/llvm/test/tools/dsymutil/
Dbasic-linking.test2 …t -verbose -oso-prepend-path=%p %p/Inputs/basic-lto.macho.x86_64 | FileCheck %s --check-prefix=CHE…
4 …64 %p/Inputs/basic-lto.macho.x86_64 %p/Inputs/basic-archive.macho.x86_64 | FileCheck %s --check-pr…
60 ================================= LTO link ================================
61 CHECK-LTO: DEBUG MAP OBJECT: {{.*}}basic-lto.macho.x86_64.o
62 CHECK-LTO: Input compilation unit:
63 CHECK-LTO-NEXT: TAG_compile_unit
64 CHECK-LTO-NOT: TAG
65 CHECK-LTO: AT_name {{.*}}basic1.c
66 CHECK-LTO: Input compilation unit:
67 CHECK-LTO-NEXT: TAG_compile_unit
[all …]
Ddebug-map-parsing.test2 …-debug-map -oso-prepend-path=%p %p/Inputs/basic-lto.macho.x86_64 | FileCheck %s --check-prefix=CHE…
28 Check that we can parse the debug-map of the basic-lto executable
30 CHECK-LTO-NOT: error
31 CHECK-LTO: ---
32 CHECK-LTO: triple: 'x86_64-apple-darwin'
33 CHECK-LTO: binary-path:{{.*}}/Inputs/basic-lto.macho.x86_64
34 CHECK-LTO: /Inputs/basic-lto.macho.x86_64.o
35 CHECK-LTO-DAG: sym: _bar, objAddr: 0x0000000000000050, binAddr: 0x0000000100000F90, size: 0x000000…
36 CHECK-LTO-DAG: sym: _baz, objAddr: 0x0000000000000658, binAddr: 0x0000000100001000, size: 0x000000…
37 CHECK-LTO-DAG: sym: _foo, objAddr: 0x0000000000000010, binAddr: 0x0000000100000F50, size: 0x000000…
[all …]
/external/elfutils/tests/
Drun-allfcts.sh94 # = testfile-lto.h =
103 # = testfile-lto-func.c =
104 # #include "testfile-lto.h"
116 # = testfile-lto-main.c =
117 # #include "testfile-lto.h"
134 # gcc -g -O2 -flto -c testfile-lto-func.c
135 # gcc -g -O2 -flto -c testfile-lto-main.c
136 # gcc -g -O2 -flto -o testfile-lto-gcc10 testfile-lto-func.o testfile-lto-main.o
138 testfiles testfile-lto-gcc10
140 testrun_compare ${abs_builddir}/allfcts testfile-lto-gcc10 <<\EOF
[all …]
/external/AFLplusplus/instrumentation/
DREADME.lto.md1 # afl-clang-lto - collision free instrumentation at link time
7 1. Use afl-clang-lto/afl-clang-lto++ because the resulting binaries run
18 Some targets might need `LD=afl-clang-lto` and others `LD=afl-ld-lto`.
38 * To instrument at link time, we compile in LTO (link time optimization) mode.
39 * Our compiler (afl-clang-lto/afl-clang-lto++) takes care of setting the correct
40 LTO options and runs our own afl-ld linker instead of the system linker.
41 * The LLVM linker collects all LTO files to link and instruments them so that we
56 libtool: link: afl-clang-lto -g -O2 -Wall -W -o thumbnail thumbnail.o ../libtiff/.libs/libtiff.a .…
57 afl-clang-lto++2.63d by Marc "vanHauser" Heuse <mh@mh-sec.de> in mode LTO
58 afl-llvm-lto++2.63d by Marc "vanHauser" Heuse <mh@mh-sec.de>
[all …]
/external/llvm/test/tools/dsymutil/X86/
Dmultiple-inputs.test6 RUN: cat %p/../Inputs/basic-lto.macho.x86_64 > %T/multiple-inputs/basic-lto.macho.x86_64
7 RUN: cat %p/../Inputs/basic-lto-dw4.macho.x86_64 > %T/multiple-inputs/basic-lto-dw4.macho.x86_64
10 …s/basic-archive.macho.x86_64 %T/multiple-inputs/basic-lto.macho.x86_64 %T/multiple-inputs/basic-lt…
15 RUN: llvm-dwarfdump %T/multiple-inputs/basic-lto.macho.x86_64.dwarf | FileCheck %S/basic-lto-linkin…
16 RUN: llvm-dwarfdump %T/multiple-inputs/basic-lto-dw4.macho.x86_64.dwarf | FileCheck %S/basic-lto-dw…
19 …s/basic-archive.macho.x86_64 %T/multiple-inputs/basic-lto.macho.x86_64 %T/multiple-inputs/basic-lt…
24 …: llvm-dwarfdump %t.dSYM/Contents/Resources/DWARF/basic-lto.macho.x86_64 | FileCheck %S/basic-lto-…
25 …llvm-dwarfdump %t.dSYM/Contents/Resources/DWARF/basic-lto-dw4.macho.x86_64 | FileCheck %S/basic-lt…
28 …s/basic-archive.macho.x86_64 %T/multiple-inputs/basic-lto.macho.x86_64 %T/multiple-inputs/basic-lt…
/external/AFLplusplus/test/
Dtest-llvm-lto.sh5 $ECHO "$BLUE[*] Testing: LTO llvm_mode"
6 test -e ../afl-clang-lto -a -e ../SanitizerCoverageLTO.so && {
16 ../afl-clang-lto -o test-instr.plain ../test-instr.c > /dev/null 2>&1
18 $ECHO "$GREEN[+] llvm_mode LTO compilation succeeded"
23 … $ECHO "$RED[!] llvm_mode LTO instrumentation should be different on different input but is not"
26 $ECHO "$GREEN[+] llvm_mode LTO instrumentation present and working correctly"
29 $ECHO "$GREEN[+] llvm_mode LTO run reported $TUPLES instrumented locations which is fine"
31 $ECHO "$RED[!] llvm_mode LTO instrumentation produces weird numbers: $TUPLES"
36 $ECHO "$RED[!] llvm_mode LTO instrumentation failed"
41 $ECHO "$RED[!] LTO llvm_mode failed"
[all …]
/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/LTO/
DLTO.h1 //===-LTO.h - LLVM Link Time Optimizer ------------------------------------===//
9 // This file declares functions and classes used to support LTO. It is intended
10 // to be used both by LTO classes as well as by clients (gold-plugin) that
11 // don't utilize the LTO code generator interfaces.
22 #include "llvm/LTO/Config.h"
47 const lto::Config &C, ModuleSummaryIndex &Index,
67 SmallString<40> &Key, const lto::Config &Conf,
76 namespace lto {
99 class LTO; variable
104 /// information that an LTO client should need in order to do symbol resolution.
[all …]
DLTOBackend.h9 // This file implements the "backend" phase of LTO, i.e. it performs
11 // internally by the LTO class but can also be used independently, for example
22 #include "llvm/LTO/LTO.h"
34 namespace lto {
36 /// Runs middle-end LTO optimizations on \p Mod.
42 /// Runs a regular LTO backend. The regular LTO backend can also act as the
43 /// regular LTO phase of ThinLTO, which may need to access the combined index.
DConfig.h9 // This file defines the lto::Config data structure, which allows clients to
10 // configure LTO.
37 namespace lto {
39 /// LTO configuration. A linker can configure LTO by setting fields in this data
40 /// structure and passing it to the lto::LTO constructor.
47 // computeLTOCacheKey in LTO.cpp.
78 /// Asserts whether we can assume whole program visibility during the LTO
82 /// Always emit a Regular LTO object even when it is empty because no Regular
83 /// LTO modules were linked. This option is useful for some build system which
186 /// If this field is set, LTO will write input file paths and symbol
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/LTO/
DLTO.h1 //===-LTO.h - LLVM Link Time Optimizer ------------------------------------===//
9 // This file declares functions and classes used to support LTO. It is intended
10 // to be used both by LTO classes as well as by clients (gold-plugin) that
11 // don't utilize the LTO code generator interfaces.
24 #include "llvm/LTO/Config.h"
70 SmallString<40> &Key, const lto::Config &Conf,
79 namespace lto {
98 class LTO; variable
103 /// information that an LTO client should need in order to do symbol resolution.
109 // FIXME: Remove LTO class friendship once we have bitcode symbol tables.
[all …]
DLTOBackend.h9 // This file implements the "backend" phase of LTO, i.e. it performs
11 // internally by the LTO class but can also be used independently, for example
22 #include "llvm/LTO/LTO.h"
34 namespace lto {
36 /// Runs a regular LTO backend. The regular LTO backend can also act as the
37 /// regular LTO phase of ThinLTO, which may need to access the combined index.
DConfig.h9 // This file defines the lto::Config data structure, which allows clients to
10 // configure LTO.
34 namespace lto {
36 /// LTO configuration. A linker can configure LTO by setting fields in this data
37 /// structure and passing it to the lto::LTO constructor.
40 // computeCacheKey in LTO.cpp.
126 /// If this field is set, LTO will write input file paths and symbol
128 /// used for testing and for running the LTO pipeline outside of the linker
140 /// (non-parallel) LTO, but a parallel code generation task will be split into
143 /// LTO may decide to stop processing a task at any time, for example if the
[all …]
/external/clang/test/Driver/
Dlto.c6 // CHECK-COMPILE-ACTIONS: 3: backend, {2}, lto-bc
11 // CHECK-COMPILELINK-ACTIONS: 0: input, "{{.*}}lto.c", c
14 // CHECK-COMPILELINK-ACTIONS: 3: backend, {2}, lto-bc
22 // CHECK-COMPILELINK-SUFFIXES: "-o" "{{.*}}lto.i" "-x" "c" "{{.*}}lto.c"
23 // CHECK-COMPILELINK-SUFFIXES: "-o" "{{.*}}lto.bc" {{.*}}"{{.*}}lto.i"
24 // CHECK-COMPILELINK-SUFFIXES: "-o" "{{.*}}lto.o" {{.*}}"{{.*}}lto.bc"
25 // CHECK-COMPILELINK-SUFFIXES: "{{.*}}a.{{(out|exe)}}" {{.*}}"{{.*}}lto.o"
30 // CHECK-COMPILE-SUFFIXES: "-o" "{{.*}}lto.s" "-x" "c" "{{.*}}lto.c"
37 // RUN: FileCheck -check-prefix=CHECK-LINK-LTO-ACTION < %t %s
39 // CHECK-LINK-LTO-ACTION: "-plugin" "{{.*}}/LLVMgold.so"
[all …]
Dembed-bitcode.c29 // RUN: %clang -c %s -flto -fembed-bitcode 2>&1 -### | FileCheck %s -check-prefix=CHECK-LTO
30 // RUN: %clang -c %s -flto=full -fembed-bitcode 2>&1 -### | FileCheck %s -check-prefix=CHECK-LTO
31 // RUN: %clang -c %s -flto=thin -fembed-bitcode 2>&1 -### | FileCheck %s -check-prefix=CHECK-LTO
32 // CHECK-LTO: -cc1
33 // CHECK-LTO: -emit-llvm-bc
34 // CHECK-LTO-NOT: warning: argument unused during compilation: '-fembed-bitcode'
35 // CHECK-LTO-NOT: -cc1
36 // CHECK-LTO-NOT: -fembed-bitcode=all
/external/open-dice/
DAndroid.bp102 // b/336916369: This library gets linked into a rust rlib. Disable LTO
103 // until cross-language lto is supported.
104 lto: {
128 // b/336916369: This library gets linked into a rust rlib. Disable LTO
129 // until cross-language lto is supported.
130 lto: {
157 // b/336916369: This library gets linked into a rust rlib. Disable LTO
158 // until cross-language lto is supported.
159 lto: {
197 // b/336916369: This library gets linked into a rust rlib. Disable LTO
[all …]
/external/llvm/test/tools/dsymutil/Inputs/
Dbasic1.c12 LTO compilation:
14 clang -g -c -flto $FILE -o ${FILE%.c}-lto.o
16 …clang basic1-lto.o basic2-lto.o basic3-lto.o -o basic-lto.macho.x86_64 -Wl,-object_path_lto,$PWD/b…
17 rm basic1-lto.o basic2-lto.o basic3-lto.o
/external/llvm/test/tools/llvm-nm/X86/
DIRobj.test3 # CHECK: ---------------- (LTO,RODATA) external _global_const
4 # CHECK: ---------------- (LTO,DATA) external _global_data
5 # CHECK: ---------------- (LTO,CODE) external _global_func
6 # CHECK: ---------------- (LTO,RODATA) private external _hidden_const
7 # CHECK: ---------------- (LTO,DATA) private external _hidden_data
8 # CHECK: ---------------- (LTO,CODE) private external _hidden_func
9 # CHECK: ---------------- (LTO,RODATA) non-external _static_const
10 # CHECK: ---------------- (LTO,DATA) non-external _static_data
11 # CHECK: ---------------- (LTO,CODE) non-external _static_func
/external/llvm/tools/lto/
DCMakeLists.txt5 LTO
14 lto.cpp
17 set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/lto.exports)
19 add_llvm_library(LTO SHARED ${SOURCES})
21 install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h
23 COMPONENT LTO)
30 set_property(TARGET LTO APPEND_STRING PROPERTY
/external/AFLplusplus/
D.gitignore28 afl-clang-lto
29 afl-clang-lto++
30 afl-clang-lto++.8
31 afl-clang-lto.8
49 afl-ld-lto
50 afl-lto
51 afl-lto++
52 afl-lto++.8
53 afl-lto.8
DGNUmakefile.llvm98 $(info [+] llvm_mode detected llvm 12+, enabling afl-lto LTO implementation)
103 $(info [+] llvm_mode detected llvm < 12, afl-lto LTO will not be build.)
230 …ts of a different version than LLMV ($(TMP_LDLDD_VERSION) vs. $(LLVMVER)) - cannot enable LTO mode)
236 $(warning ld.lld not found, cannot enable LTO mode)
241 …$(warning clang option -flto is not working - maybe LLVMgold.so not found - cannot enable LTO mode)
254 $(warning -fuse-ld is not working, cannot enable LTO mode)
344 …ss.so ./afl-llvm-dict2file.so ./compare-transform-pass.so ./afl-ld-lto ./afl-llvm-lto-instrumentli…
412 @ln -sf afl-cc ./afl-clang-lto
413 @ln -sf afl-cc ./afl-clang-lto++
414 @ln -sf afl-cc ./afl-lto
[all …]
/external/clang/test/CodeGen/
Davailable-externally-suppress.c3 …o -O2 -fno-inline -emit-llvm -o - -triple x86_64-apple-darwin10 %s | FileCheck %s -check-prefix=LTO
14 // LTO-LABEL: define void @test()
15 // LTO: define available_externally void @f0
28 // LTO: @test1
33 // LTO: br i1 in test1()
34 // LTO-NOT: call {{.*}} @f1 in test1()
35 // LTO: ret i32 in test1()
/external/rust/android-crates-io/crates/ring/patches/
DAndroid.bp.patch10 + // b/336916369: This library gets linked into a rust rlib. Disable LTO
11 + // until cross-language lto is supported.
12 + lto: {
23 + // b/336916369: This library gets linked into a rust rlib. Disable LTO
24 + // until cross-language lto is supported.
25 + lto: {
/external/llvm/test/tools/llvm-lto/
Derror.ll1 ; RUN: not llvm-lto foobar 2>&1 | FileCheck %s
2 ; CHECK: llvm-lto: error loading file 'foobar': {{N|n}}o such file or directory
4 ; RUN: not llvm-lto --list-symbols-only %S/Inputs/empty.bc 2>&1 | FileCheck %s --check-prefix=CHECK…
5 ; CHECK-LIST: llvm-lto: error loading file '{{.*}}/Inputs/empty.bc': The file was not recognized as…
7 ; RUN: not llvm-lto --thinlto %S/Inputs/empty.bc 2>&1 | FileCheck %s --check-prefix=CHECK-THIN
8 ; CHECK-THIN: llvm-lto: error loading file '{{.*}}/Inputs/empty.bc': The file was not recognized as…
/external/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/
DLTO.cpp1 //===-LTO.cpp - LLVM Link Time Optimizer ----------------------------------===//
9 // This file implements functions and classes used to support LTO.
13 #include "llvm/LTO/LTO.h"
28 #include "llvm/LTO/LTOBackend.h"
29 #include "llvm/LTO/SummaryBasedOptimizations.h"
55 using namespace lto;
58 #define DEBUG_TYPE "lto"
64 /// Enable global value internalization in LTO.
66 "enable-lto-internalization", cl::init(true), cl::Hidden,
67 cl::desc("Enable global value internalization in LTO"));
[all …]

12345678910>>...29