/llvm-project/llvm/test/tools/llvm-readobj/ELF/ |
H A D | needed-libs.test | 1 ## In this test we check the --needed-libs option. 4 # RUN: llvm-readobj --needed-libs %t1 2>&1 \ 5 …ileCheck %s -DFILE=%t1 --implicit-check-not=warning: --strict-whitespace --check-prefix=NEEDED-LIBS 6 # RUN: llvm-readelf --needed-libs %t1 2>&1 \ 7 …ileCheck %s -DFILE=%t1 --implicit-check-not=warning: --strict-whitespace --check-prefix=NEEDED-LIBS 8 # RUN: llvm-readobj --elf-output-style=JSON --needed-libs --pretty-print %t1 2>&1 \ 14 # NEEDED-LIBS:{{^}}NeededLibraries [{{$}} 15 # NEEDED-LIBS-NEXT: warning: '[[FILE]]': string table at offset 0x78: unable to read the string at… 16 # NEEDED-LIBS-NEXT: warning: '[[FILE]]': string table at offset 0x78: unable to read the string at… 17 # NEEDED-LIBS-NEXT:{{^}} <?>{{$}} [all …]
|
/llvm-project/llvm/test/Linker/ |
H A D | only-needed-named-metadata.ll | 1 ; Without -only-needed we should lazy link linkonce globals, and the 3 ; RUN: llvm-link -S %S/Inputs/only-needed-named-metadata.ll %S/only-needed-named-metadata.ll | File… 7 ; With -only-needed the metadata references should not cause any of the 11 ; Note that doing -only-needed with the comdat shown below leads to a only 13 ; RUN: llvm-link -S -only-needed %S/Inputs/only-needed-named-metadata.ll %S/only-needed-named-metad… 14 ; RUN: llvm-link -S -internalize -only-needed %S/Inputs/only-needed-named-metadata.ll %S/only-neede…
|
H A D | only-needed-dtors1.ll | 1 ; RUN: llvm-link -S %s %p/Inputs/only-needed-dtors.ll | FileCheck %s --ch… 2 ; RUN: llvm-link -S -internalize %s %p/Inputs/only-needed-dtors.ll | FileCheck %s --ch… 3 …lvm-link -S -only-needed %s %p/Inputs/only-needed-dtors.ll | FileCheck %s --check-pre… 4 …lvm-link -S -only-needed -internalize %s %p/Inputs/only-needed-dtors.ll | FileCheck %s --check-pre… 15 ; ONLY-NEEDED-NOT: void @unused()
|
H A D | only-needed-ctors1.ll | 1 ; RUN: llvm-link -S %s %p/Inputs/only-needed-ctors.ll | FileCheck %s --ch… 2 ; RUN: llvm-link -S -internalize %s %p/Inputs/only-needed-ctors.ll | FileCheck %s --ch… 3 …lvm-link -S -only-needed %s %p/Inputs/only-needed-ctors.ll | FileCheck %s --check-pre… 4 …lvm-link -S -only-needed -internalize %s %p/Inputs/only-needed-ctors.ll | FileCheck %s --check-pre… 15 ; ONLY-NEEDED-NOT: void @unused()
|
H A D | only-needed-dtors2.ll | 1 ; RUN: llvm-link -S %s %p/Inputs/only-needed-dtors.ll | FileCheck %s --ch… 2 ; RUN: llvm-link -S -internalize %s %p/Inputs/only-needed-dtors.ll | FileCheck %s --ch… 3 …lvm-link -S -only-needed %s %p/Inputs/only-needed-dtors.ll | FileCheck %s --check-pre… 4 …lvm-link -S -only-needed -internalize %s %p/Inputs/only-needed-dtors.ll | FileCheck %s --check-pre… 28 ; ONLY-NEEDED-NOT: void @unused()
|
H A D | only-needed-ctors2.ll | 1 ; RUN: llvm-link -S %s %p/Inputs/only-needed-ctors.ll | FileCheck %s --ch… 2 ; RUN: llvm-link -S -internalize %s %p/Inputs/only-needed-ctors.ll | FileCheck %s --ch… 3 …lvm-link -S -only-needed %s %p/Inputs/only-needed-ctors.ll | FileCheck %s --check-pre… 4 …lvm-link -S -only-needed -internalize %s %p/Inputs/only-needed-ctors.ll | FileCheck %s --check-pre… 28 ; ONLY-NEEDED-NOT: void @unused()
|
H A D | only-needed-used.ll | 1 ; RUN: llvm-link -S %s %p/Inputs/only-needed-used.ll | FileCheck %s 2 ; RUN: llvm-link -S -internalize %s %p/Inputs/only-needed-used.ll | FileCheck %s 3 ; RUN: llvm-link -S -only-needed %s %p/Inputs/only-needed-used.ll | FileCheck %s 4 ; RUN: llvm-link -S -only-needed -internalize %s %p/Inputs/only-needed-used.ll | FileCheck %s
|
H A D | only-needed-compiler-used.ll | 1 ; RUN: llvm-link -S %s %p/Inputs/only-needed-compiler-used.ll | FileCheck… 2 ; RUN: llvm-link -S -internalize %s %p/Inputs/only-needed-compiler-used.ll | FileCheck… 3 ; RUN: llvm-link -S -only-needed %s %p/Inputs/only-needed-compiler-used.ll | FileCheck… 4 ; RUN: llvm-link -S -only-needed -internalize %s %p/Inputs/only-needed-compiler-used.ll | FileCheck…
|
/llvm-project/clang/test/OpenMP/ |
H A D | error_message.cpp | 100 #pragma omp error message("GPU compiler is needed.") // expected-error {{GPU compiler is needed}} in tmain() 101 #pragma omp error at(compilation) message("GPU compiler is needed.") // expected-error {{GPU compiler is needed}} in tmain() 102 #pragma omp error at(execution) message("GPU compiler is needed.") // no error in tmain() 103 // expected-warning@+1 {{GPU compiler is needed.}} in tmain() 104 #pragma omp error severity(warning) message("GPU compiler is needed.") // expected-warning {{GPU compiler is needed.}} in tmain() 105 #pragma omp error severity(fatal) message("GPU compiler is needed.") // expected-error {{GPU compiler is needed}} in tmain() [all...] |
/llvm-project/lld/test/ELF/ |
H A D | as-needed.s | 10 /// Check if --as-needed actually works. 15 // RUN: ld.lld --as-needed %t.o %t2.so %t3.so %t4.so -o %t2 19 // RUN: ld.lld --as-needed %t2.so %t3.so %t4.so %t.o -o %t2 22 // RUN: ld.lld --as-needed %t.o %t2.so --no-as-needed %t3.so %t4.so -o %t2 35 // CHECK: NEEDED Shared library: [shared1] 36 // CHECK: NEEDED Shared library: [shared2] 37 // CHECK: NEEDED Shared library: [shared3] 39 // CHECK2: NEEDED Shared library: [shared1] 40 // CHECK2-NOT: NEEDED Shared library: [shared2] 41 // CHECK2-NOT: NEEDED Shared library: [shared3]
|
H A D | as-needed-not-in-regular.s | 12 # RUN: ld.lld %t.o %tb.so --as-needed %ta.so -o %t 15 # RUN: ld.lld %t.o %tb.so --as-needed %ta.so --gc-sections -o %t 22 # RUN: ld.lld %t.o %tb.so --as-needed %ta.so --no-as-needed %ta.so -o %t 23 # RUN: llvm-readelf -d %t | FileCheck %s -check-prefix=NEEDED 25 # a.so is needed because one of its occurrences is needed. 26 # NEEDED: a.so
|
H A D | no-soname.s | 9 // CHECK: 0x0000000000000001 NEEDED Shared library: [{{.*}}/no-soname/libfoo.so] 10 // CHECK-NOT: NEEDED 15 // CHECK2: 0x0000000000000001 NEEDED Shared library: [{{.*}}/no-soname/../no-soname/… 16 // CHECK2-NOT: NEEDED 21 // CHECK3: 0x0000000000000001 NEEDED Shared library: [libfoo.so] 22 // CHECK3-NOT: NEEDED 28 // CHECK4: 0x0000000000000001 NEEDED Shared library: [libbar.so] 29 // CHECK4-NOT: NEEDED
|
H A D | push-state.s | 21 // RUN: ld.lld -o %t.exe -push-state -as-needed %t.so %t1.o 22 // RUN: llvm-readobj --dynamic-table %t.exe | FileCheck -check-prefix=AS-NEEDED %s 23 // AS-NEEDED-NOT: NEEDED Shared library: [libfoo] 25 // RUN: ld.lld -o %t.exe -push-state -as-needed -pop-state %t.so %t1.o 26 // RUN: llvm-readobj --dynamic-table %t.exe | FileCheck -check-prefix=NO-AS-NEEDED %s 27 // NO-AS-NEEDED: NEEDED Shared library: [libfoo]
|
H A D | gc-sections-shared.s | 9 # RUN: ld.lld --gc-sections --export-dynamic-symbol foo -o %t %t.o --as-needed %t2.so %t3.so %t4.so 12 # This test the property that we have a needed line for every undefined. 17 # CHECK-NOT: NEEDED 18 # CHECK: (NEEDED) Shared library: [{{.*}}3.so] 19 # CHECK-NOT: NEEDED 27 # RUN: ld.lld --gc-sections --export-dynamic-symbol foo -o %t --as-needed %t2.so %t3.so %t4.so %t.o
|
/llvm-project/openmp/runtime/test/affinity/format/ |
H A D | api2.c | 29 size_t needed, length; in main() local 36 needed = omp_get_affinity_format(buf, BUFFER_SIZE); in main() 38 check(needed == length) in main() 49 size_t needed, needed2; in main() local 54 needed = omp_capture_affinity(my_buf, 512, NULL); in main() 57 check(needed == needed2); in main() 63 needed = omp_capture_affinity(my_buf, 512, second_format); in main() 66 check(needed == needed2); in main()
|
H A D | api.c | 25 size_t needed; in main() local 29 needed = omp_get_affinity_format(buf, BUFFER_SIZE); in main() 31 check(needed == 10) in main() 40 size_t needed = omp_capture_affinity(my_buf, 512, NULL); in main() local 42 check(needed == 10); in main()
|
/llvm-project/clang/test/CodeGen/avr/ |
H A D | avr-flash.c | 4 …static __flash int b[] = {4, 6}; // expected-error {{qualifier 'const' is needed for variables in… in foo() 5 …static __flash1 int c[] = {8, 1}; // expected-error {{qualifier 'const' is needed for variables in… in foo() 6 …static __flash2 int d[] = {8, 1}; // expected-error {{qualifier 'const' is needed for variables in… in foo() 7 …static __flash3 int e[] = {8, 1}; // expected-error {{qualifier 'const' is needed for variables in… in foo() 8 …static __flash4 int f[] = {8, 1}; // expected-error {{qualifier 'const' is needed for variables in… in foo() 9 …static __flash5 int g[] = {8, 1}; // expected-error {{qualifier 'const' is needed for variables in… in foo()
|
/llvm-project/flang/test/Driver/ |
H A D | linker-flags.f90 | 17 ! but it is not needed when compiling Fortran code and they might bring in 34 ! UNIX-F128LIBQUADMATH-SAME: "-lFortranFloat128Math" "--as-needed" "-lquadmath" "--no-as-needed" 42 ! DARWIN-F128LIBQUADMATH-SAME: "-lFortranFloat128Math" "--as-needed" "-lquadmath" "--no-as-needed" 49 ! HAIKU-F128LIBQUADMATH-SAME: "-lFortranFloat128Math" "--as-needed" "-lquadmath" "--no-as-needed" 55 ! MINGW-F128LIBQUADMATH-SAME: "-lFortranFloat128Math" "--as-needed" "-lquadmath" "--no-as-needed"
|
/llvm-project/clang/test/Modules/ |
H A D | pr93497.cppm | 51 extern "C" __attribute__((noinline)) inline int needed() { 70 return needed(); 77 return needed(); 84 return needed(); 98 // CHECK: @needed( 102 // CHECK: @needed( 106 // CHECK: @needed(
|
/llvm-project/llvm/test/tools/llvm-readobj/XCOFF/ |
H A D | needed-libs.test | 1 ## In this test we check the --needed-libs option. 3 # RUN: llvm-readobj --needed-libs %p/Inputs/needed-libs-32.o \ 4 # RUN: %p/Inputs/needed-libs-64.o %p/Inputs/needed-libs-empty.o |\
|
/llvm-project/llvm/test/tools/llvm-ifs/ |
H A D | strip-needed.test | 1 ## Test --strip-needed flag 3 # RUN: llvm-ifs --input-format=IFS --strip-needed --output-ifs=- %s | FileCheck %s 8 # RUN: llvm-ifs --input-format=IFS --strip-needed --output-elf=- %s | \ 9 # RUN: obj2yaml | FileCheck %s --check-prefix=FROM-ELF-STRIP-NEEDED 26 # FROM-ELF-STRIP-NEEDED-NOT: DT_NEEDED
|
/llvm-project/mlir/test/lib/Dialect/LLVM/ |
H A D | TestLowerToLLVM.cpp | 59 // Convert SCF to CF (always needed). in buildTestLowerToLLVM() 64 // Convert vector to LLVM (always needed). in buildTestLowerToLLVM() 68 // Convert Math to LLVM (always needed). in buildTestLowerToLLVM() 74 // Convert MemRef to LLVM (always needed). in buildTestLowerToLLVM() 76 // Convert Func to LLVM (always needed). in buildTestLowerToLLVM() 78 // Convert Arith to LLVM (always needed). in buildTestLowerToLLVM() 80 // Convert CF to LLVM (always needed). in buildTestLowerToLLVM() 82 // Convert Index to LLVM (always needed). 84 // Convert remaining unrealized_casts (always needed).
|
/llvm-project/llvm/docs/CommandGuide/ |
H A D | llvm-config.rst | 15 print the compiler flags, linker flags and object libraries needed to link 50 Print the C compiler flags needed to use LLVM headers. 62 Print the C preprocessor flags needed to use LLVM headers. 66 Print the C++ compiler flags needed to use LLVM headers. 90 Print the flags needed to link against LLVM libraries. 110 Print all the libraries needed to link against the specified LLVM 135 Print all the system libraries needed to link against the specified LLVM
|
/llvm-project/libcxx/src/include/ |
H A D | config_elast.h | 25 // No _LIBCPP_ELAST needed for LLVM libc 29 // No _LIBCPP_ELAST needed on NuttX 31 // No _LIBCPP_ELAST needed on Fuchsia 33 // No _LIBCPP_ELAST needed on WASI 35 // No _LIBCPP_ELAST needed on Emscripten 39 // No _LIBCPP_ELAST needed on Apple
|
/llvm-project/clang/test/Driver/ |
H A D | freebsd.c | 7 // CHECK-ARM64: "--eh-frame-hdr" "-dynamic-linker" "{{.*}}ld-elf{{.*}}" "-o" "a.out" "{{.*}}crt1.o" "{{.*}}crti.o" "{{.*}}crtbegin.o" "-L[[SYSROOT]]/usr/lib" "{{.*}}.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "{{.*}}crtend.o" "{{.*}}crtn.o" 15 // CHECK-PPC: "--eh-frame-hdr" "-dynamic-linker" "{{.*}}ld-elf{{.*}}" "-o" "a.out" "{{.*}}crt1.o" "{{.*}}crti.o" "{{.*}}crtbegin.o" "-L[[SYSROOT]]/usr/lib" "{{.*}}.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "{{.*}}crtend.o" "{{.*}}crtn.o" 23 // CHECK-PPC64: "--eh-frame-hdr" "-dynamic-linker" "{{.*}}ld-elf{{.*}}" "-o" "a.out" "{{.*}}crt1.o" "{{.*}}crti.o" "{{.*}}crtbegin.o" "-L[[SYSROOT]]/usr/lib" "{{.*}}.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" " [all...] |