| /llvm-project/llvm/test/tools/llvm-reduce/ |
| H A D | operands-skip-intrinsics.ll | 8 declare ptr @fptr.keep() 10 declare ptr @llvm.intrin.keep() 22 ; CHECK: %intrin.ptr.keep = call ptr @llvm.intrin.keep() 25 ; CHECK: call void @func(i32 1, ptr @fptr.keep) 27 ; CHECK: call void @func(i32 3, ptr %intrin.ptr.keep) 28 ; CHECK: call void @func(i32 4, ptr %intrin.ptr.keep) 32 %func.ptr.keep = call ptr @fptr.keep() 34 %intrin.ptr.keep = call ptr @llvm.intrin.keep() 35 %gep = getelementptr i8, ptr %intrin.ptr.keep, i64 128 39 call void @func(i32 1, ptr %func.ptr.keep) [all …]
|
| /llvm-project/llvm/test/tools/llvm-objcopy/wasm/ |
| H A D | only-keep-debug.test | 1 ## Test that only debug sections are kept with --only-keep-debug. 3 # RUN: llvm-strip --only-keep-debug %t.wasm -o %t2.wasm 6 ## Test that keep-section overrides only-keep-debug. 7 # RUN: llvm-strip --only-keep-debug --keep-section=foo %t.wasm -o %t3.wasm 10 ## Test that keep-section overrides only-keep-debug, even for known sections. 11 # RUN: llvm-strip --only-keep-debug --keep [all...] |
| H A D | basic-keep.test | 1 ## 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 D | basic-only-section.test | 6 ## 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=producers %t %t2
|
| /llvm-project/llvm/test/tools/llvm-objcopy/ELF/ |
| H A D | wildcard-flags.test | 18 ## --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: 67 # RUN: llvm-objcopy --discard-all --keep-symbols=%t-fstar.txt %t.o %t.ksym.5.o [all …]
|
| H A D | keep-global-symbols.test | 3 # 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 D | keep-file-symbols.test | 2 # 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 D | keep-global-symbols-mix-globalize.test | 3 # 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 D | keep-symbol.test | 2 # 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 D | keep-many.test | 2 # 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 D | keep-only-section.test | 2 # 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/lld/test/wasm/ |
| H A D | strip-all.s | 13 ## Test --keep-section=name preserver the name section 14 # RUN: wasm-ld --strip-all --keep-section=name -o %t3.wasm %t.start.o 20 ## Test --keep-section can be specified more than once 21 # RUN: wasm-ld --strip-all --keep-section=name --keep-section=target_features -o %t4.wasm %t.start.o
|
| /llvm-project/llvm/test/DebugInfo/ |
| H A D | symbolize-filter-markup-context-line-elision.test | 6 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/llvm/test/CodeGen/AMDGPU/GlobalISel/ |
| H A D | combine-trunc-shift.mir | 89 ; CHECK-NEXT: %keep:_(s32) = G_MERGE_VALUES %trunc(s16), %foo(s16) 90 ; CHECK-NEXT: $vgpr0 = COPY %keep(s32) 97 %keep:_(s32) = G_MERGE_VALUES %trunc, %foo 98 $vgpr0 = COPY %keep 115 ; CHECK-NEXT: %keep:_(s32) = G_MERGE_VALUES %trunc(s16), %foo(s16) 116 ; CHECK-NEXT: $vgpr0 = COPY %keep(s32) 123 %keep:_(s32) = G_MERGE_VALUES %trunc, %foo 124 $vgpr0 = COPY %keep 142 ; CHECK-NEXT: %keep:_(s32) = G_MERGE_VALUES %trunc(s16), %foo(s16) 143 ; CHECK-NEXT: $vgpr0 = COPY %keep(s32) [all …]
|
| /llvm-project/clang/test/Modules/ |
| H A D | prune-non-affecting-module-map-files.m | 32 // RUN: mv %t/cache %t/cache-explicit-no-a-keep 37 // RUN: mv %t/cache %t/cache-explicit-a-keep 40 // RUN: not diff %t/cache-explicit-no-a-keep/c.pcm %t/cache-explicit-a-keep/c.pcm 47 // RUN: mv %t/cache %t/cache-implicit-no-a-keep 59 // RUN: mv %t/cache %t/cache-implicit-a-keep 62 // RUN: not diff %t/cache-implicit-no-a-keep/c.pcm %t/cache-implicit-a-keep/c.pcm
|
| /llvm-project/lld/test/ELF/ |
| H A D | icf-keep-unique.s | 5 # 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 D | text-section-prefix.s | 2 ## -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 D | emit-relocs-gc.s | 11 ## 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 D | input-section-flags-keep.s | 12 # CHECK: Name: keep 20 .global keep symbol 21 keep: label
|
| /llvm-project/llvm/test/tools/llvm-profdata/ |
| H A D | sample-fs.test | 3 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/llvm/test/tools/llvm-objcopy/COFF/ |
| H A D | only-keep-debug.test | 1 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/llvm/test/tools/llvm-ar/ |
| H A D | delete.test | 4 # 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/llvm/tools/llvm-objcopy/ |
| H A D | CommonOpts.td | 78 defm keep_section : Eq<"keep-section", "Keep <section>">, 81 defm keep_symbol : Eq<"keep-symbol", "When removing symbols, do not remove <symbol>">, 85 HelpText<"Alias for --keep-symbol">; 87 def keep_file_symbols : Flag<["--"], "keep-file-symbols">, 90 def keep_undefined : Flag<["--"], "keep-undefined">, 94 : Flag<["--"], "only-keep-debug">,
|
| /llvm-project/lldb/test/Shell/ObjectFile/ELF/ |
| H A D | minidebuginfo-set-and-hit-breakpoint.test | 3 # 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/llvm/test/tools/dsymutil/X86/ |
| H A D | keep-func.test | 24 …-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
|