Home
last modified time | relevance | path

Searched full:imports (Results 1 – 25 of 820) sorted by relevance

12345678910>>...33

/llvm-project/lld/test/COFF/
H A Dthinlto-emit-imports.ll11 ; Ensure lld generates imports files if requested for distributed backends.
12 ; RUN: rm -f %t3.obj.imports %t3.obj.thinlto.bc
14 ; RUN: -thinlto-emit-imports-files %t1.obj %t2.obj %t3.obj -out:%t4.exe
16 ; The imports file for this module contains the bitcode file for
18 ; RUN: cat %t1.obj.imports | count 1
19 ; RUN: cat %t1.obj.imports | FileCheck %s --check-prefix=IMPORTS1
20 ; IMPORTS1: thinlto-emit-imports.ll.tmp2.obj
22 ; The imports file for Input/thinlto.ll is empty as it does not import anything.
23 ; RUN: cat %t2.obj.imports | count 0
25 ; The imports fil
[all...]
H A Darm64-delayimport.yaml6 # RUN: llvm-readobj --coff-imports %t.exe | FileCheck %s -check-prefix IMPORTS
37 # IMPORTS: Format: COFF-ARM64
38 # IMPORTS: Arch: aarch64
39 # IMPORTS: AddressSize: 64bit
40 # IMPORTS: DelayImport {
41 # IMPORTS: Name: library.dll
42 # IMPORTS: Attributes: 0x1
43 # IMPORTS: ModuleHandle: 0x3000
44 # IMPORTS: ImportAddressTable: 0x3008
45 # IMPORTS: ImportNameTable: 0x2040
[all …]
H A Darm64-import2.test7 # RUN: llvm-readobj --coff-imports %t.exe | FileCheck %s -check-prefix IMPORTS
29 # IMPORTS: Import {
30 # IMPORTS: Name: library.dll
31 # IMPORTS: ImportLookupTableRVA: 0x2040
32 # IMPORTS: ImportAddressTableRVA: 0x2060
33 # IMPORTS: Symbol: function (2)
34 # IMPORTS: }
35 # IMPORTS: Import {
36 # IMPORTS: Name: library2.dll
37 # IMPORTS: ImportLookupTableRVA: 0x2050
[all …]
H A Dhello32.test5 # RUN: llvm-readobj --coff-imports %t.exe | FileCheck -check-prefix=IMPORTS %s
113 IMPORTS: Format: COFF-i386
114 IMPORTS: Arch: i386
115 IMPORTS: AddressSize: 32bit
116 IMPORTS: Import {
117 IMPORTS: Name: std32.dll
118 IMPORTS: ImportLookupTableRVA: 0x2028
119 IMPORTS: ImportAddressTableRVA: 0x2034
120 IMPORTS: Symbol: ExitProcess (0)
121 IMPORTS: Symbol: MessageBoxA (1)
[all …]
H A Dautoimport-lto.ll10 ; RUN: llvm-readobj --coff-imports %t.exe | FileCheck -check-prefix=IMPORTS %s
12 ; IMPORTS: Import {
13 ; IMPORTS-NEXT: Name: autoimport-lto.ll.tmp-lib.dll
14 ; IMPORTS-NEXT: ImportLookupTableRVA:
15 ; IMPORTS-NEXT: ImportAddressTableRVA:
16 ; IMPORTS-NEXT: Symbol: variable (0)
17 ; IMPORTS-NEXT: }
H A Dautoimport-gnu-implib.s12 # RUN: llvm-readobj --coff-imports %t.exe | FileCheck -check-prefix=IMPORTS %s
15 # IMPORTS: Import {
16 # IMPORTS-NEXT: Name: foo.dll
17 # IMPORTS-NEXT: ImportLookupTableRVA:
18 # IMPORTS-NEXT: ImportAddressTableRVA:
19 # IMPORTS-NEXT: Symbol: data (0)
20 # IMPORTS-NEXT: }
H A Dautoimport-arm64-data.s10 # RUN: llvm-readobj --coff-imports %t.exe | FileCheck -check-prefix=IMPORTS %s
13 # IMPORTS: Import {
14 # IMPORTS-NEXT: Name: autoimport-arm64-data.s.tmp-lib.dll
15 # IMPORTS-NEXT: ImportLookupTableRVA: 0x2060
16 # IMPORTS-NEXT: ImportAddressTableRVA: 0x2070
17 # IMPORTS-NEXT: Symbol: variable (0)
18 # IMPORTS-NEXT: }
H A Dautoimport-arm-data.s10 # RUN: llvm-readobj --coff-imports %t.exe | FileCheck -check-prefix=IMPORTS %s
13 # IMPORTS: Import {
14 # IMPORTS-NEXT: Name: autoimport-arm-data.s.tmp-lib.dll
15 # IMPORTS-NEXT: ImportLookupTableRVA: 0x2050
16 # IMPORTS-NEXT: ImportAddressTableRVA: 0x2058
17 # IMPORTS-NEXT: Symbol: variable (0)
18 # IMPORTS-NEXT: }
H A Dautoimport-x86.s13 # RUN: llvm-readobj --coff-imports %t.exe | FileCheck -check-prefix=IMPORTS %s
18 # IMPORTS: Import {
19 # IMPORTS-NEXT: Name: autoimport-x86.s.tmp-lib.dll
20 # IMPORTS-NEXT: ImportLookupTableRVA: 0x2070
21 # IMPORTS-NEXT: ImportAddressTableRVA: 0x2080
22 # IMPORTS-NEXT: Symbol: variable (0)
23 # IMPORTS-NEXT: }
H A Dautoimport-refptr.s10 # RUN: llvm-readobj --coff-imports %t.exe | FileCheck -check-prefix=IMPORTS %s
21 # IMPORTS: Import {
22 # IMPORTS-NEXT: Name: autoimport-refptr.s.tmp-lib.dll
23 # IMPORTS-NEXT: ImportLookupTableRVA: 0x2050
24 # IMPORTS-NEXT: ImportAddressTableRVA: 0x2060
25 # IMPORTS-NEXT: Symbol: variable (0)
26 # IMPORTS-NEXT: }
/llvm-project/lld/test/MachO/
H A Dthinlto-emit-imports.ll12 ; Ensure lld generates imports files if requested for distributed backends.
13 ; RUN: rm -f %t3.o.imports %t3.o.thinlto.bc
14 ; RUN: %lld --thinlto-index-only --thinlto-emit-imports-files -dylib %t1.o %t2.o %t3.o -o %t4
16 ; The imports file for this module contains the bitcode file for %t/g.ll
17 ; RUN: count 1 < %t1.o.imports
18 ; RUN: FileCheck %s --check-prefix=IMPORTS1 < %t1.o.imports
19 ; IMPORTS1: thinlto-emit-imports.ll.tmp2.o
21 ; The imports file for g.ll is empty as it does not import anything.
22 ; RUN: count 0 < %t2.o.imports
24 ; The imports fil
[all...]
/llvm-project/llvm/test/ThinLTO/X86/
H A Demit_imports.ll7 ; RUN: rm -f %t3.bc.imports
11 ; The imports file for this module contains the bitcode file for
13 ; RUN: cat %t1.bc.imports | count 2
14 ; RUN: cat %t1.bc.imports | FileCheck %s --check-prefix=IMPORTS1
18 ; The imports file for Input/emit_imports.ll is empty as it does not import anything.
19 ; RUN: cat %t2.bc.imports | count 0
21 ; The imports file for Input/empty.ll is empty but should exist.
22 ; RUN: cat %t3.bc.imports | count 0
24 ; RUN: rm -f %t1.thinlto.bc %t1.bc.imports
25 ; RUN: rm -f %t2.thinlto.bc %t2.bc.imports
[all …]
H A Demit-inprocess-files.ll2 ; Partially copied from distributed_import.ll, and added checks for {dis|en}abling imports
4 ; RUN: rm -f %t1.bc.thinlto.bc %t2.bc.thinlto.bc %t.out.1 %t.out.2 %t1.bc.imports %t2.bc.imports
14 ; RUN: -thinlto-emit-imports \
23 ; RUN: mv %t1.bc.imports %t1.bc.imports.orig
24 ; RUN: mv %t2.bc.imports %t2.bc.imports.orig
41 ; Ensure imports weren't generated since -thinlto-emit-imports wasn't specified
42 ; RUN: not ls %t1.bc.imports
43 ; RUN: not ls %t2.bc.imports
51 ; Do the thin link again but also emit imports files now
54 ; RUN: -thinlto-emit-imports \
[all …]
/llvm-project/lld/test/ELF/lto/
H A Dthinlto-emit-imports.ll8 ; Ensure lld generates error if unable to write to imports file.
9 ; RUN: rm -f %t3.o.imports
10 ; RUN: touch %t3.o.imports
11 ; RUN: chmod 400 %t3.o.imports
12 ; RUN: not ld.lld --plugin-opt=thinlto-index-only --plugin-opt=thinlto-emit-imports-files -shared %t1.o %t2.o %t3.o -o /dev/null 2>&1 | FileCheck -DMSG=%errc_EACCES %s --check-prefix=ERR
13 ; ERR: 'cannot open {{.*}}3.o.imports': [[MSG]]
15 ; RUN: rm -f %t1.o.imports %t2.o.imports rm -f %t3.o.imports
16 ; RUN: ld.lld --plugin-opt=thinlto-emit-imports
[all...]
H A Dthinlto-index-only.ll37 ; RUN: ld.lld --plugin-opt=thinlto-index-only=4.txt --plugin-opt=thinlto-emit-imports-files -shared 1.o --start-lib d/2.o 3.o --end-lib 4.o -o 4
44 ; RUN: FileCheck %s --check-prefix=IMPORTS1 --implicit-check-not={{.}} < 1.o.imports
45 ; RUN: count 0 < d/2.o.imports
47 ; RUN: count 0 < 3.o.imports
48 ; RUN: count 0 < 4.o.imports
50 ;; Test the other spelling --thinlto-index-only= --thinlto-emit-imports-files and the interaction with --save-temps.
52 ; RUN: ld.lld --thinlto-index-only=4.txt --thinlto-emit-imports-files --save-temps -shared 0.o 1.o --start-lib d/2.o 3.o --end-lib 4.o -o t
56 ; RUN: FileCheck %s --check-prefix=IMPORTS1 --implicit-check-not={{.}} < 1.o.imports
98 ;; Inputs/thinlto.ll, as it imports from the latter.
/llvm-project/llvm/test/tools/gold/X86/
H A Dthinlto_emit_imports.ll8 ; Ensure gold generates imports files if requested for distributed backends.
9 ; RUN: rm -f %t3.o.imports %t3.o.thinlto.bc
13 ; RUN: --plugin-opt=thinlto-emit-imports-files \
16 ; The imports file for this module contains the bitcode file for
18 ; RUN: cat %t.o.imports | count 1
19 ; RUN: cat %t.o.imports | FileCheck %s --check-prefix=IMPORTS1
22 ; The imports file for Input/thinlto.ll is empty as it does not import anything.
23 ; RUN: cat %t2.o.imports | count 0
25 ; The imports file for Input/thinlto_empty.ll is empty but should exist.
26 ; RUN: cat %t3.o.imports | count 0
/llvm-project/clang/lib/Format/
H A DSortJavaScriptImports.cpp1 //===--- SortJavaScriptImports.cpp - Sort ES6 Imports -----------*- C++ -*-===//
10 /// This file implements a sort operation for JavaScript ES6 imports.
45 // but imports at different code locations are still conceptually the same. in operator ==()
64 // imports and exports support individual symbols, but also a wildcard syntax:
68 // This struct represents both exports and imports to build up the information
85 // Prefix from "import * as prefix". Empty for symbol imports and `export *`.
110 // Side effect imports and aliases might be ordering sensitive. Consider in operator <()
121 // '*' imports (with prefix) sort before {a, b, ...} imports. in operator <()
129 // JavaScriptImportSorter sorts JavaScript ES6 imports and exports. It is
130 // implemented as a TokenAnalyzer because ES6 imports have substantial syntactic
[all …]
/llvm-project/clang/test/Modules/
H A Dcxx20-hu-03.cpp14 // RUN: %clang_cc1 -std=c++20 -fsyntax-only imports-01.cpp \
17 // RUN: %clang_cc1 -std=c++20 -fsyntax-only imports-02.cpp \
20 // RUN: %clang_cc1 -std=c++20 -fsyntax-only imports-03.cpp \
34 //--- imports-01.cpp
42 //--- imports-02.cpp
50 //--- imports-03.cpp
/llvm-project/llvm/test/Transforms/FunctionImport/
H A Dfuncimport_cutoff.ll12 ; RUN: opt -passes=function-import -stats -print-imports -summary-file %t3.thinlto.bc %t.bc -S 2>&1…
15 ; RUN: opt -import-cutoff=1 -passes=function-import -stats -print-imports -summary-file %t3.thinlto…
17 ; Next try to restrict to 0 imports. This should not import.
18 ; RUN: opt -import-cutoff=0 -passes=function-import -stats -print-imports -summary-file %t3.thinlto…
30 ; Check -print-imports output
/llvm-project/lld/COFF/
H A DDLL.h23 void add(DefinedImportData *sym) { imports.push_back(sym); } in add()
24 bool empty() { return imports.empty(); } in empty()
28 std::vector<DefinedImportData *> imports; variable
43 void add(DefinedImportData *sym) { imports.push_back(sym); }
44 bool empty() { return imports.empty(); }
62 std::vector<DefinedImportData *> imports;
60 std::vector<DefinedImportData *> imports; global() variable
/llvm-project/lld/test/wasm/
H A Dimport-memory.test8 # CHECK-NEXT: Imports:
22 # Verify the --initial-memory and --max-memory arguments work with imports
25 # CHECK-MAX-NEXT: Imports:
39 # Verify the --shared-memory flag works with imports
42 # CHECK-SHARED-NEXT: Imports:
/llvm-project/compiler-rt/test/profile/
H A Dinstrprof-thinlto-indirect-call-promotion.cpp41 // expected in the IR module that imports functions from lib.
50 // Test the imports of functions. Default import thresholds would work but do
54 …ummary.thinlto.bc main.bc -o main.import.bc -print-imports 2>&1 | FileCheck %s --check-prefix=IMPO…
59 // IMPORTS-DAG: main.cpp: Import {{.*}}callee1{{.*}}
60 // IMPORTS-DAG: main.cpp: Import {{.*}}callee0{{.*}}llvm.[[#]]
61 // IMPORTS-DAG: main.cpp: Import {{.*}}global_func{{.*}}
/llvm-project/llvm/test/tools/gold/X86/v1.12/
H A Dthinlto_emit_linked_objects.ll2 ; RUN: rm -f ptr.o.imports
19 ; RUN: --plugin-opt=thinlto-emit-imports-files \
30 ; RUN: ls %t1.o.imports
31 ; RUN: ls %t2.o.imports
32 ; RUN: ls %t3.o.imports
/llvm-project/compiler-rt/test/asan_abi/TestCases/Darwin/
H A Dllvm_interface_symbols.cpp21 // RUN: > %t.imports
22 // RUN: sort %t.imports | uniq > %t.imports-sorted
24 // RUN: diff %t.imports-sorted %t.exports-sorted
/llvm-project/compiler-rt/test/asan/TestCases/Linux/
H A Dinterface_symbols_linux.cpp29 // RUN: | sed -e "s/.*(//" -e "s/).*//" > %t.imports
31 // RUN: cat %t.imports | sort | uniq > %t.imports-sorted
36 // RUN: diff %t.imports-sorted %t.exports-sorted

12345678910>>...33