Home
last modified time | relevance | path

Searched refs:keep (Results 1 – 25 of 661) sorted by relevance

12345678910>>...27

/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/wasm/
H A Donly-keep-debug.test1 ## Test that only debug sections are kept with --only-keep-debug.
3 # RUN: llvm-strip --only-keep-debug %t
6 ## Test that keep-section overrides only-keep-debug.
8 # RUN: llvm-strip --only-keep-debug --keep-section=foo %t
11 ## Test that keep-section overrides only-keep-debug, even for known sections.
13 # RUN: llvm-strip --only-keep-debug --keep-section=TYPE %t
25 ## Test that remove-section overrides only-keep-debug.
27 # RUN: llvm-strip --only-keep-debug --remove-section=.debug_info %t
H A Dbasic-keep.test1 ## Test that --keep-section keeps a debug section when stripping.
3 # RUN: llvm-objcopy --strip-all --keep-section=.debug_info %t %t2
10 ## Test that keep overrides an explicit removal.
11 # RUN: llvm-objcopy --remove-section=.debug_info --keep-section=.debug_info %t %t2
H A Dbasic-only-section.test6 ## Test that it's the same with only-section + keep-section (for the same section).
7 # RUN: llvm-objcopy --only-section=foo --keep-section=foo %t %t2
21 ## Test that only-section + keep-section keeps both sections.
22 # RUN: llvm-objcopy --only-section=foo --keep-section=linking %t %t2
/llvm-project-15.0.7/polly/lib/External/ppcg/
H A Dopencl_test.sh.in3 keep=no
7 --keep)
8 keep=yes
19 if [ $keep = "yes" ]; then
H A Dpolybench_test.sh.in3 keep=no
8 --keep)
9 keep=yes
25 if [ $keep = "yes" ]; then
107 if [ $keep = "no" ]; then
/llvm-project-15.0.7/llvm/test/DebugInfo/
H A Dsymbolize-filter-markup-context-line-elision.test6 CHECK:keep[[BEGIN:\[{3}]]ELF module #0x0 "a.o"; BuildID=ab [0x0-0x0](r)[[END:\]{3}]]
7 CHECK:keep[[BEGIN]]ELF module #0x1 "b.o"; BuildID=cd[[END]]
10 keep{{{module:0:a.o:elf:ab}}}skip
12 keep{{{module:1:b.o:elf:cd}}}skip
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/ELF/
H A Dkeep-global-symbols.test3 # Tests that only global symbols (via -G/--keep-global-symbols) are kept via
4 # the several different variants of -G/--keep-global-symbol(s).
12 # Global2: Global because of "--keep-global-symbol Global2".
13 # Global3: Global because of "--keep-global-symbols %t-globals1.txt".
14 # Global4: Global because of "--keep-global-symbols %t-globals2.txt".
35 # RUN: --keep-global-symbol Global2 \
36 # RUN: --keep-global-symbols %t-globals1.txt \
37 # RUN: --keep-global-symbols %t-globals2.txt \
45 # RUN: llvm-objcopy --regex --keep-global-symbols %t-globals-regexp.txt %t.o %t.3.o
48 # RUN: llvm-objcopy --regex --keep-global-symbol='^Global[0-9]+([[:space:]]Global6)*$' %t.o %t.4.o
H A Dwildcard-flags.test18 ## --keep-section:
19 # RUN: llvm-objcopy --strip-all --keep-section='.f*' %t.o %t.ksec.1.o
22 # RUN: llvm-strip --strip-all --keep-section='.f*' %t.o -o %t.ksec.2.o
52 ## --keep-symbol:
53 # RUN: llvm-objcopy --discard-all --keep-symbol='f*' %t.o %t.ksym.1.o
56 # RUN: llvm-strip --discard-all --keep-symbol='f*' %t.o -o %t.ksym.2.o
59 # RUN: llvm-objcopy --discard-all -w --keep-symbol='f*' %t.o %t.ksym.3.o
62 # RUN: llvm-strip --discard-all -w --keep-symbol='f*' %t.o -o %t.ksym.4.o
65 ## --keep-symbols:
148 ## --keep-global-symbol:
[all …]
H A Dkeep-file-symbols.test2 # RUN: llvm-objcopy --strip-all --keep-file-symbols %t %t2
4 # RUN: llvm-objcopy --keep-file-symbols --strip-symbol foo %t %t2
7 # RUN: llvm-strip --keep-file-symbols %t -o %t3
9 # RUN: llvm-strip --keep-file-symbols --strip-symbol foo %t -o %t4
12 # RUN: llvm-objcopy --keep-file-symbols --strip-debug %t %t5
14 # RUN: llvm-objcopy --keep-file-symbols --strip-unneeded %t %t6
17 # RUN: llvm-strip --keep-file-symbols --strip-debug %t -o %t7
19 # RUN: llvm-strip --keep-file-symbols --strip-unneeded %t -o %t8
H A Dkeep-global-symbols-mix-globalize.test3 # Tests --keep-global-symbol when used in combination with --globalize-symbol on
8 # RUN: --keep-global-symbol Local2 \
10 # RUN: --keep-global-symbol Weak2 \
12 # RUN: --keep-global-symbol Global2 \
H A Dkeep-symbol.test2 # RUN: llvm-objcopy --discard-all -K foo --keep-symbol bar %t %t2
3 # RUN: llvm-objcopy -K foo -N foo -N bar --keep-symbol bar -N baz %t %t3
12 # RUN: llvm-objcopy --discard-all --keep-symbols %t.symbols %t %t5
13 # RUN: llvm-objcopy -K foo -N foo -N bar --keep-symbols %t.symbols -N baz %t %t6
19 # RUN: llvm-objcopy --discard-all --keep-symbols %t.symbols.regex --regex %t %t7
H A Dkeep-many.test2 # RUN: llvm-objcopy --strip-non-alloc --keep-section=.test --keep-section=.test3 %t %t2
3 # RUN: llvm-objcopy --strip-non-alloc --regex --keep-section='^.test[0-9]+$' %t %t3
H A Dkeep-only-section.test2 # RUN: llvm-objcopy --keep-section=.test2 --only-section=.test %t %t2
3 # RUN: llvm-objcopy -j .test --keep-section=.test2 %t %t3
6 # RUN: llvm-objcopy --regex --keep-section='^.test$' --only-section='^.test[2-3]+$' %t %t4
/llvm-project-15.0.7/lld/test/ELF/
H A Dicf-keep-unique.s5 # RUN: ld.lld %t -o %t2 --keep-unique f2 --keep-unique f4 --keep-unique f5 --icf=all --print-icf-se…
40 # f5 is local, not found by --keep-unique f5
H A Dtext-section-prefix.s2 ## -z keep-text-section-prefix separates text sections with prefix .text.hot,
12 # RUN: ld.lld -z keep-text-section-prefix %t.o -o %t.keep
13 # RUN: llvm-readelf -S %t.keep | FileCheck --check-prefix=KEEP %s
29 # RUN: ld.lld -T %t.lds -z keep-text-section-prefix %t.o -o %t.script
H A Demit-relocs-gc.s11 ## GC collects .bar section and we exclude .rela.bar from output. We keep
12 ## .rela.text because we keep .text. We keep .rela.debug_info because we keep
H A Dinput-section-flags-keep.s12 # CHECK: Name: keep
20 .global keep
21 keep: label
/llvm-project-15.0.7/llvm/test/tools/llvm-profdata/
H A Dsample-fs.test3 1- Show command and keep all the discrimiantor bits
16 2- Show command and keep only the base discriminator bits
26 3- Show command and keep only the base discriminator bits and first pass of FS discriminator
38 4- Merge command and keep all the discrimiantor bits
45 2- Merge command and keep only the base discriminator bits
50 3- Merge command and keep only the base discriminator bits and first pass of FS discriminator
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/COFF/
H A Donly-keep-debug.test1 RUN: yaml2obj %p/Inputs/only-keep-sections.yaml -o %t.in.exe
3 RUN: llvm-objcopy --only-keep-debug %t.in.exe %t.out.exe
7 ## --only-keep-debug suppresses the default --strip-all.
8 RUN: llvm-strip --only-keep-debug %t.in.exe -o %t-strip.out.exe
/llvm-project-15.0.7/llvm/test/tools/llvm-ar/
H A Ddelete.test4 # RUN: yaml2obj %s -o %t-keep.o --docnum=2
10 # RUN: llvm-ar rc %t.a %t1.txt %t-delete.o %t-keep.o %t2.txt
20 # FILE-ADDED-NEXT: keep.o
38 # FILE-DELETED-NEXT: keep.o
/llvm-project-15.0.7/llvm/tools/llvm-objcopy/
H A DCommonOpts.td75 defm keep_section : Eq<"keep-section", "Keep <section>">,
78 defm keep_symbol : Eq<"keep-symbol", "Do not remove symbol <symbol>">,
82 HelpText<"Alias for --keep-symbol">;
84 def keep_file_symbols : Flag<["--"], "keep-file-symbols">,
87 def keep_undefined : Flag<["--"], "keep-undefined">,
91 : Flag<["--"], "only-keep-debug">,
/llvm-project-15.0.7/llvm/test/tools/dsymutil/X86/
H A Dkeep-func.test24 …-path %p/../Inputs %p/../Inputs/private/tmp/keep_func/main.out -o %t.keep.dSYM -keep-function-for-…
26 RUN: llvm-dwarfdump %t.keep.dSYM | FileCheck %s --check-prefix KEEP
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dlo16-hi16-illegal-copy.mir1 # RUN: not llc -march=amdgcn -mcpu=gfx802 -start-before postrapseudos -asm-verbose=0 -amdgpu-keep-1…
2 # RUN: not llc -march=amdgcn -mcpu=gfx802 -start-before postrapseudos -asm-verbose=0 -amdgpu-keep-1…
3 # RUN: not llc -march=amdgcn -mcpu=gfx900 -start-before postrapseudos -asm-verbose=0 -amdgpu-keep-1…
4 # RUN: not llc -march=amdgcn -mcpu=gfx900 -start-before postrapseudos -asm-verbose=0 -amdgpu-keep-1…
/llvm-project-15.0.7/lldb/test/Shell/ObjectFile/ELF/
H A Dminidebuginfo-set-and-hit-breakpoint.test3 # We want to keep the symbol "multiplyByThree" in the .dynamic section and not
27 # because we know what symbol to keep.
32 # RUN: llvm-objcopy --only-keep-debug %t.binary %t.debug
37 # RUN: llvm-objcopy -S --remove-section .gdb_index --remove-section .comment --keep-symbols=%t.keep…
43 # --only-keep-debug starts to work.
54 # RUN: xz --force --keep %t.mini_debuginfo
/llvm-project-15.0.7/llvm/test/CodeGen/WebAssembly/
H A Dload.ll1 …own-unknown -asm-verbose=false -disable-wasm-fallthrough-return-opt -wasm-keep-registers | FileChe…
2 …own-unknown -asm-verbose=false -disable-wasm-fallthrough-return-opt -wasm-keep-registers -fast-ise…
3 …own-unknown -asm-verbose=false -disable-wasm-fallthrough-return-opt -wasm-keep-registers | FileChe…
4 …own-unknown -asm-verbose=false -disable-wasm-fallthrough-return-opt -wasm-keep-registers -fast-ise…

12345678910>>...27