Home
last modified time | relevance | path

Searched refs:archive (Results 1 – 25 of 294) sorted by relevance

12345678910>>...12

/llvm-project-15.0.7/llvm/bindings/ocaml/llvm/
H A DMETA.llvm.in4 archive(byte) = "llvm.cma"
5 archive(native) = "llvm.cmxa"
12 archive(byte) = "llvm_analysis.cma"
13 archive(native) = "llvm_analysis.cmxa"
20 archive(byte) = "llvm_bitreader.cma"
28 archive(byte) = "llvm_bitwriter.cma"
44 archive(byte) = "llvm_ipo.cma"
45 archive(native) = "llvm_ipo.cmxa"
60 archive(byte) = "llvm_irreader.cma"
100 archive(byte) = "llvm_target.cma"
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-ar/
H A Doption-X.test134 # RUN: cp archive-any.a archive.a
139 # RUN: cp archive-any.a archive.a
144 # RUN: cp archive-any.a archive.a
179 # RUN: cp archive-any.a archive.a
200 # RUN: cp archive-any.a archive.a
205 # RUN: cp archive-any.a archive.a
216 # RUN: cp archive-any.a archive.a
221 # RUN: cp archive-any.a archive.a
226 # RUN: cp archive-any.a archive.a
231 # RUN: cp archive-any.a archive.a
[all …]
H A Dregular-to-thin-archive.test5 # RUN: llvm-ar qc %t/archive.a %S/Inputs/a.txt
6 # RUN: not llvm-ar q --thin %t/archive.a %s 2>&1 | FileCheck %s
7 # RUN: not llvm-ar r --thin %t/archive.a %s 2>&1 | FileCheck %s
9 # CHECK: error: cannot convert a regular archive to a thin one
11 ## Test that you can add a regular archive to a new thin archive with 'L'.
12 # RUN: llvm-ar -qcL --thin %t/thin1.a %S/Inputs/b.txt %t/archive.a
15 ## Test that you can add a regular archive to an existing thin archive with 'L'.
17 # RUN: llvm-ar -qL --thin %t/thin2.a %t/archive.a
21 # THIN: archive.a
26 ## Test that a regular archive can be read despite use of --thin
[all …]
H A Dflatten-thin-archive-directories.test1 # This test creates a thin archive in a directory and adds it to a thin archive
3 # the archive.
7 RUN: rm -f %t/archive.a %t/foo/archive.a
9 # These tests must be run in the same directory as %t/archive.a. cd %t is
11 RUN: cd %t && llvm-ar rcST foo/archive.a foo/a.txt
12 RUN: cd %t && llvm-ar rcST archive.a foo/archive.a
13 RUN: cd %t && llvm-ar t archive.a | FileCheck %s --match-full-lines
H A Dprint.test11 ## Print empty archive:
17 # RUN: llvm-ar p %t/archive.a \
24 # RUN: llvm-ar pv %t/archive.a \
35 # RUN: llvm-ar p %t/archive.a %t/2.txt \
40 # RUN: llvm-ar pv %t/archive.a %t/2.txt \
69 # llvm-ar -q %t/archive.a %t/2.txt
73 ## No archive:
91 ## Print empty thin archive:
92 # RUN: llvm-ar Trc %t/thin-archive-empty.a
96 ## Print thin archive:
[all …]
H A Dwindows-name-case.test9 # RUN: rm -f %t/archive.a
10 # RUN: llvm-ar rc %t/archive.a %t/lowerCase/file.txt
11 # RUN: FileCheck %s -input-file=%t/archive.a --check-prefix=LOWER --implicit-check-not=FILE.TXT
12 # RUN: llvm-ar rc %t/archive.a %t/UPPERCASE/FILE.TXT
13 # RUN: FileCheck %s -input-file=%t/archive.a --check-prefix=UPPER --implicit-check-not=file.txt
18 # RUN: rm -f %t/thin-archive.a
19 # RUN: llvm-ar Trc %t/thin-archive.a %t/lowerCase/file.txt %t/UPPERCASE/FILE.txt
20 # RUN: llvm-ar dTP %t/thin-archive.a %t/uppercase/file.txt
22 # RUN: FileCheck %s -input-file=%t/thin-archive.a --check-prefix=THIN-ARCHIVE -DPATH=%/t
26 # RUN: llvm-ar dTP %t/thin-archive.a %t/LOWERCASE/FILE.TXT
[all …]
H A Dnon-windows-name-case.test9 # RUN: rm -f %t/archive.a
10 # RUN: llvm-ar rc %t/archive.a %t/lowerCase/file.txt
11 # RUN: llvm-ar rc %t/archive.a %t/UPPERCASE/FILE.TXT
12 # RUN: FileCheck %s -input-file=%t/archive.a --check-prefix=ARCHIVE
17 # RUN: rm -f %t/thin-archive.a
18 # RUN: llvm-ar Trc %t/thin-archive.a %t/lowerCase/file.txt %t/UPPERCASE/FILE.TXT
19 # RUN: llvm-ar dTP %t/thin-archive.a %t/uppercase/file.txt
21 # RUN: FileCheck %s -input-file=%t/thin-archive.a --check-prefix=THIN-ARCHIVE -DPATH=%/t
23 # RUN: llvm-ar dTP %t/thin-archive.a %t/LOWERCASE/FILE.TXT
24 # RUN: FileCheck %s -input-file=%t/thin-archive.a --check-prefix=THIN-ARCHIVE -DPATH=%/t
H A Dextract.test6 ## Extracting from an empty archive should not warn or error:
12 # RUN: llvm-ar rc %t/archive.a %t/a.txt %t/b.txt
15 # RUN: cd %t/extracted && llvm-ar xv %t/archive.a a.txt | FileCheck %s --check-prefix=A
21 # RUN: cd %t/extracted && llvm-ar xv %t/archive.a | FileCheck %s --check-prefix=AB
27 ## Thin archive
28 # RUN: llvm-ar Trc %t/thin-archive.a
29 # RUN: not llvm-ar x %t/thin-archive.a 2>&1 | FileCheck %s --check-prefix=THIN
30 # THIN: extracting from a thin archive is not supported
34 # RUN: llvm-ar x %t/archive.a 2>&1 | count 0
38 ## --output specifies the directory to extract archive members to. `1/2` is created by llvm-ar.
[all …]
H A Dread-only-archive.test8 # RUN: llvm-ar rc %t/archive.a %t/1.txt %t/2.txt
11 # RUN: chmod 444 %t/archive.a
13 # RUN: not llvm-ar r %t/archive.a %t/3.txt \
14 # RUN: FileCheck %s --check-prefix=ERROR -DFILE=%t/archive.a
18 # RUN: not llvm-ar q %t/archive.a %t/3.txt \
19 # RUN: FileCheck %s --check-prefix=ERROR -DFILE=%t/archive.a
21 # RUN: not llvm-ar m %t/archive.a t/1.txt \
22 # RUN: FileCheck %s --check-prefix=ERROR-2 -DFILE=%t/archive.a
26 # RUN: llvm-ar t %t/archive.a \
H A Dwindows-path.test13 # Create an archive.
14 RUN: rm -f archive.a
15 RUN: llvm-ar rcST archive.a a\..\a\foo.txt
16 RUN: llvm-ar rcST archive.a foo.txt
17 RUN: llvm-ar rcST archive.a b\foo.txt b/foo.txt
18 RUN: llvm-ar dT archive.a foo.txt
19 RUN: llvm-ar t archive.a | FileCheck %s --check-prefix=ARCHIVE --implicit-check-not {{.}}
25 RUN: llvm-ar t archive.a | FileCheck %s --check-prefix=LIST-BOTH --implicit-check-not {{.}}
26 RUN: llvm-ar t archive.a a\foo.txt | FileCheck %s --check-prefix=LIST-A --implicit-check-not {{.}}
27 RUN: llvm-ar t archive.a b\foo.txt | FileCheck %s --check-prefix=LIST-B --implicit-check-not {{.}}
[all …]
H A Dmissing-thin-archive-member.test1 ## Test llvm-ar errors when thin archive members are missing.
3 # RUN: rm -rf %t-archive.a
6 ## File is not in archive.
7 # RUN: llvm-ar qT %t-archive.a
8 # RUN: not llvm-ar p %t-archive.a %t-temp.txt 2>&1 | FileCheck %s -DPATH=%t-temp.txt --check-prefix…
13 # RUN: llvm-ar qT %t-archive.a %t-temp.txt
15 # RUN: not llvm-ar p %t-archive.a 2>&1 | FileCheck -DMSG=%errc_ENOENT %s --check-prefix=DELETED
H A Dcount.test13 RUN: llvm-ar rc %t/archive.a %t/x/foo.txt %t/y/foo.txt %t/z/foo.txt \
15 RUN: llvm-ar t %t/archive.a | FileCheck %s --check-prefix=LIST-MEMBERS
32 RUN: not llvm-ar rN 1 %t/archive.a foo.txt 2>&1 | FileCheck %s --check-prefix=ERR-BAD-OP
42 RUN: llvm-ar xN 1 %t/archive.a foo.txt bar.txt
47 RUN: llvm-ar xN 2 %t/archive.a foo.txt bar.txt
52 RUN: llvm-ar xN 3 %t/archive.a foo.txt bar.txt
59 # archive is what used to be the third element.
61 RUN: llvm-ar dN 2 %t/archive.a foo.txt
62 RUN: llvm-ar xN 2 %t/archive.a foo.txt bar.txt
70 RUN: llvm-ar dN 1 %t/archive.a foo.txt bar.txt
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-objdump/
H A Dmalformed-archives.test16 …ncated or malformed archive (characters in size field in archive member header are not all decimal…
29 …BOGUS2: '[[FILE]]': truncated or malformed archive (offset to next archive member past the end of …
42 # BOGUS3: '[[FILE]]': truncated or malformed archive (remaining size of archive too small for next …
54 …]': truncated or malformed archive (terminator characters in archive member "@\n" not the correct …
67 # BOGUS5: '[[FILE]]': truncated or malformed archive (name contains a leading space for archive mem…
93 …[FILE]]': truncated or malformed archive (long name length: 1 extends past the end of the member o…
131 …runcated or malformed archive (characters in UID field in archive member header are not all decima…
144 …runcated or malformed archive (characters in GID field in archive member header are not all decima…
157 …cated or malformed archive (characters in AccessMode field in archive member header are not all oc…
180 … or malformed archive (characters in LastModified field in archive member header are not all decim…
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/MachO/
H A Duniversal-object.test16 # RUN: rm -f %t.archive.i386
18 # RUN: llvm-lipo %t.archive.i386 %t.x86_64 -create -output %t.universal.containing.archive
19 # RUN: llvm-objcopy %t.universal.containing.archive %t.universal.containing.archive.copy
21 # RUN: llvm-lipo %t.universal.containing.archive.copy -thin i386 -output %t.archive.i386.copy
22 # RUN: llvm-lipo %t.universal.containing.archive.copy -thin x86_64 -output %t.archive.x86_64.copy
23 # RUN: cmp %t.archive.i386 %t.archive.i386.copy
24 # RUN: cmp %t.x86_64 %t.archive.x86_64.copy
26 ## Case 3: copy an archive containing a universal object.
27 # RUN: llvm-ar cr %t.archive.containing.universal %t.universal
28 # RUN: llvm-objcopy %t.archive.containing.universal %t.archive.containing.universal.copy
[all …]
/llvm-project-15.0.7/llvm/docs/CommandGuide/
H A Dllvm-ar.rst23 Darwin style archive files. If an SVR4 format archive is used with the :option:`r`
73 archive.
83 appear in the archive. If no *files* are specified, the archive is not
109 * Appending a regular archive to a regular archive will append the archive
113 * Appending a regular archive to a thin archive requires the :option:`T`
117 * Appending a thin archive to a regular archive will append the archive file.
121 * Appending a thin archive to a thin archive will always quick append its
195 appear in the ``archive``. By default *files* extracted from the archive
291 and when modifying a thin archive, it will be converted to a regular archive.
344 .. option:: CREATE archive
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-objdump/MachO/
H A Darchive-headers.test1 RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 --macho --archive-headers --arch al…
3 …UN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 --macho --archive-headers --arch al…
5 RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 --macho --archive-headers --arch al…
9 CHECK: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture x86_64)
12 CHECK: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture i386)
16 OFFSETS: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture x86_64)
19 OFFSETS: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture i386)
23 NON-VERBOSE: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture x86_64)
26 NON-VERBOSE: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture i386)
/llvm-project-15.0.7/lld/test/wasm/
H A Dwhole-archive.test6 Should not add symbols from the archive by default as they are not required
13 Should add symbols from the archive if --whole-archive is used
14 RUN: wasm-ld --no-gc-sections -o %t.wasm %t.o --whole-archive %t.a
20 --no-whole-archive should restore default behaviour
21 RUN: wasm-ld --no-gc-sections -o %t.wasm %t.o --whole-archive --no-whole-archive %t.a
24 --whole-archive and --no-whole-archive should affect only archives which follow them
25 RUN: wasm-ld --no-gc-sections -o %t.wasm %t.o %t.a --whole-archive --no-whole-archive
27 RUN: wasm-ld --no-gc-sections -o %t.wasm %t.o --whole-archive %t.a --no-whole-archive
30 --whole-archive should also work with thin archives
33 RUN: wasm-ld --no-gc-sections -o %t.wasm %t.o --whole-archive %tthin.a
/llvm-project-15.0.7/llvm/test/Object/
H A Dnm-archive.test1 RUN: llvm-nm -a %p/Inputs/archive-test.a-coff-i386 \
12 RUN: llvm-nm -a -o %p/Inputs/archive-test.a-coff-i386 \
15 COFF-o: {{.*}}/archive-test.a-coff-i386:trivial-object-test.coff-i386: 00000000 d .data
42 Test we don't error with an archive with no symtab.
43 RUN: llvm-nm %p/Inputs/archive-test.a-gnu-no-symtab
46 Or in an archive with no symtab or string table.
47 RUN: llvm-nm %p/Inputs/archive-test.a-gnu-minimal
51 RUN: llvm-nm --print-armap %p/Inputs/archive-test.a-gnu-minimal
53 Don't reject an empty archive.
54 RUN: llvm-nm %p/Inputs/archive-test.a-empty
[all …]
H A Darchive-thin-paths.test4 RUN: mkdir -p archive-thin-paths.dir
5 RUN: echo foo > archive-thin-paths.dir/foo.o
7 RUN: rm -f archive-thin-paths.a
8 RUN: llvm-ar rcsT archive-thin-paths.a archive-thin-paths.dir\foo.o
9 RUN: grep archive-thin-paths.dir/foo.o archive-thin-paths.a
H A Dnm-universal-binary.test11 RUN: llvm-nm --arch=all %p/Inputs/macho-universal-archive.x86_64.i386 \
13 RUN: llvm-nm --arch=all %p/Inputs/macho-universal64-archive.x86_64.i386 \
15 RUN: llvm-nm --arch=i386 %p/Inputs/macho-universal-archive.x86_64.i386 \
17 RUN: llvm-nm -o --arch=all %p/Inputs/macho-universal-archive.x86_64.i386 \
39 CHECK-AR-NEXT: macho-universal-archive.x86_64.i386(hello.o) (for architecture x86_64):
45 CHECK-AR: macho-universal-archive.x86_64.i386(foo.o) (for architecture i386):
50 CHECK-64-AR-NEXT: macho-universal64-archive.x86_64.i386(foo.o) (for architecture i386):
53 CHECK-64-AR: macho-universal64-archive.x86_64.i386(hello.o) (for architecture x86_64):
60 CHECK-AR-i386: macho-universal-archive.x86_64.i386(foo.o):
69 CHECK-AR-o: (for architecture i386):{{.*}}/macho-universal-archive.x86_64.i386:foo.o: 00000008 D _b…
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-strings/
H A Darchive-filename.test1 ## Show that --print-file-name prints just the archive name for an archive and
6 RUN: llvm-ar --format=gnu crs %t/archive.a %t/abcd
7 RUN: llvm-strings -f %t/archive.a | FileCheck %s
8 RUN: llvm-strings --print-file-name %t/archive.a | FileCheck %s
10 CHECK: archive.a: !<arch>
11 CHECK: archive.a: abcd/ 0 0 0 644 4 `
12 CHECK: archive.a: abcd
/llvm-project-15.0.7/lld/test/COFF/
H A Dwholearchive.s3 # RUN: yaml2obj %p/Inputs/export.yaml -o %t.archive.obj
4 # RUN: rm -f %t.archive.lib
5 # RUN: llvm-ar rcs %t.archive.lib %t.archive.obj
8 # RUN: lld-link -dll -out:%t.dll -entry:main %t.main.obj -wholearchive:%t.archive.lib -implib:%t.lib
11 # RUN: lld-link -dll -out:%t.dll -entry:main %t.main.obj -wholearchive %t.archive.lib -implib:%t.lib
14 # RUN: lld-link -dll -out:%t.dll -entry:main %t.main.obj %t.archive.lib -wholearchive:%t.archive.li…
17 # PR43744: Test no inputs except a whole archive.
18 # RUN: lld-link -dll -out:%t.dll -noentry -wholearchive:%t.archive.lib -implib:%t.lib
22 # RUN: cp %t.archive.lib %t.dir/foo.lib
/llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/
H A Dfile-summary-json.test56 ## Test outputting file summary for an archive with a single file.
57 # RUN: rm -f %t.archive-single
58 # RUN: llvm-ar rc %t.archive-single %t.dir/obj
65 # ARCH-SINGLE-NEXT: "{{.*}}.archive-single(obj)": {
67 # ARCH-SINGLE-NEXT: "File": "{{.*}}.archive-single(obj)",
78 # RUN: rm -f %t.archive-multiple
79 # RUN: llvm-ar rc %t.archive-multiple %t.dir/obj %t.dir/obj
86 # ARCH-MULTI-NEXT: "{{.*}}.archive-multiple(obj)": {
88 # ARCH-MULTI-NEXT: "File": "{{.*}}.archive-multiple(obj)",
97 # ARCH-MULTI-NEXT: "{{.*}}.archive-multiple(obj)": {
[all …]
/llvm-project-15.0.7/clang/docs/
H A DClangNvlinkWrapper.rst14 because ``nvlink`` does not support linking of archive files implicitly. It
15 transparently passes every input option and object to ``nvlink`` except archive
16 files. It reads each input archive file to extract the archived cubin files as
22 During linking of heterogeneous device archive libraries with an OpenMP
23 program, the :doc:`ClangOffloadBundler` creates a device specific archive of
24 cubin files. Such an archive is then passed to this wrapper tool to extract
33 containing a set of flags, cubin object files, and zero or more archive
42 1. From each archive file extract all cubin files as temporary files and
47 * All input archive file are replaced with `CubinFiles`
/llvm-project-15.0.7/lld/test/ELF/
H A Darchive-no-index.s2 # Tests error on archive file without a symbol table
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux -o %t.archive.o %S/Inputs/archive.s
6 # RUN: llvm-ar crS %t.a %t.archive.o
10 # RUN: ld.lld -shared %t.archive.o -o %t.so
14 # WARN: warning: {{.*}}.a: archive member '{{.*}}.so' is neither ET_REL nor LLVM bitcode

12345678910>>...12