| /llvm-project-15.0.7/clang/test/Driver/ |
| H A D | rocm-device-libs.cl | 139 // COMMON-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/opencl.bc" 140 // COMMON-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/ocml.bc" 141 // COMMON-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/ockl.bc" 143 // GFX900-DEFAULT-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_daz_opt_off.bc" 144 // GFX803-DEFAULT-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_daz_opt_on.bc" 145 // GFX700-DEFAULT-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_daz_opt_on.bc" 146 // COMMON-DAZ-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_daz_opt_on.bc" 173 // WAVE64: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_wavefrontsize64_on.bc" 174 // WAVE32: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_wavefrontsize64_off.bc" 176 // GFX900: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_isa_version_900.bc" [all …]
|
| H A D | hip-device-libs.hip | 95 // RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode \ 101 // RUN: env HIP_DEVICE_LIB_PATH=%S/Inputs/rocm/amdgcn/bitcode \ 184 // ALL-SAME: "-mlink-builtin-bitcode" "{{.*}}hip.bc" 185 // ALL-SAME: "-mlink-builtin-bitcode" "{{.*}}ocml.bc" 186 // ALL-SAME: "-mlink-builtin-bitcode" "{{.*}}ockl.bc" 196 // INST-SAME: "-mlink-builtin-bitcode" "{{.*}}instrument.bc" 198 // FAST: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc" 203 // FINITE: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc" 208 // UNSAFE: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc" 213 // DIVSQRT: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc" [all …]
|
| H A D | hipspv-device-libs.hip | 23 // HIP-PATH: "-mlink-builtin-bitcode" {{".*/hipspv/lib/hip-device-lib/hipspv-spirv64.bc"}} 24 // HIP-DEV-LIB-PATH-NOT: "-mlink-builtin-bitcode" {{".*/hipspv/lib/hip-device-lib/hipspv-spirv64.bc… 25 // HIP-DEV-LIB-PATH: "-mlink-builtin-bitcode" {{".*/hipspv-dev-lib/hipspv-spirv64.bc"}} 26 // HIP-DEV-LIB: "-mlink-builtin-bitcode" {{".*/hipspv-dev-lib/a/a.bc"}} 27 // HIP-DEV-LIB-SAME: "-mlink-builtin-bitcode" {{".*/hipspv-dev-lib/b/b.bc"}}
|
| H A D | hip-sanitize-options.hip | 53 // CHECK-NOT: {{"[^"]*clang[^"]*".* "-fcuda-is-device".* "-mlink-bitcode-file" ".*asanrtl.bc"}} 57 …]*".* "-emit-obj".* "-fcuda-is-device".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-mlink-builtin-bi… 62 …* "-emit-llvm-bc".* "-fcuda-is-device".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-mlink-builtin-bi… 70 // XNACK-DAG: {{"[^"]*clang[^"]*".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-target-cpu" "gfx900".*… 79 // XNACKNEG-NOT: {{"[^"]*clang[^"]*".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-target-cpu" "gfx900… 80 // XNACKNEG-NOT: {{"[^"]*clang[^"]*".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-target-cpu" "gfx906… 90 // NOGPUNEG-NOT: {{"[^"]*clang[^"]*".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-target-cpu" "gfx900… 97 // NOGPUNEG-NOT: {{"[^"]*clang[^"]*".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-target-cpu" "gfx900… 98 // NOGPUNEG-NOT: {{"[^"]*clang[^"]*".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-target-cpu" "gfx900… 99 // NOGPUNEG-NOT: {{"[^"]*clang[^"]*".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-target-cpu" "gfx906…
|
| /llvm-project-15.0.7/llvm/test/Bitcode/ |
| H A D | thinlto-index-disassembled-by-llvm-dis.ll | 1 ; Tests that `llvm-dis` could disassemble ThinLTO minimized bitcode 2 ; (e.g., bitcode generated by `opt --thin-link-bitcode-file=<minimized-bitcode>`, 3 ; or `clang -Xclang -fthin-link-bitcode=<minimized-bitcode>`) 5 ; %t.o is the thin-lto ready bitcode, and %t.thinlink.bc is the minimized bitcode. 6 ; RUN: opt -thinlto-bc %s -thin-link-bitcode-file=%t.thinlink.bc -o %t.o 8 ; With default options, `llvm-dis` returns invalid record for ThinLTO minimized bitcode. 13 ; Tests that `llvm-dis` could disassemble minimized bitcode with `--print-thinlto-index-only`, and … 16 ; Tests that `llvm-dis` could disassemble ThinLTO-ready bitcode with `--print-thinlto-index-only`,
|
| /llvm-project-15.0.7/clang/test/Frontend/ |
| H A D | x86-embed-bitcode.ll | 4 ; RUN: -fembed-bitcode=all -x ir %s -o - \ 7 ; RUN: -fembed-bitcode=marker -x ir %s -o - \ 10 ; RUN: -fembed-bitcode=all -x ir %s -o - \ 13 ; RUN: -fembed-bitcode=marker -x ir %s -o - \ 16 ; RUN: -fembed-bitcode=bitcode -x ir %s -o - \ 23 ; RUN: -fembed-bitcode=all -x ir %t.bc -o - \ 26 ; RUN: -fembed-bitcode=bitcode -x ir %t.bc -o - \ 29 ; RUN: -fembed-bitcode=marker -x ir %t.bc -o - \ 32 ; run through -fembed-bitcode twice and make sure it doesn't crash 34 ; RUN: -fembed-bitcode=all -x ir %s -o - \ [all …]
|
| H A D | embed-bitcode.ll | 5 ; RUN: -fembed-bitcode=all -x ir %s -o - \ 8 ; RUN: -fembed-bitcode=marker -x ir %s -o - \ 11 ; RUN: -fembed-bitcode=all -x ir %s -o - \ 18 ; RUN: -fembed-bitcode=all -x ir %t.bc -o - \ 21 ; RUN: -fembed-bitcode=bitcode -x ir %t.bc -o - \ 24 ; RUN: -fembed-bitcode=marker -x ir %t.bc -o - \ 27 ; run through -fembed-bitcode twice and make sure it doesn't crash 29 ; RUN: -fembed-bitcode=all -x ir %s -o - \ 31 ; RUN: -fembed-bitcode=all -x ir - -o /dev/null 33 ; check the magic number of bitcode at the beginning of the string [all …]
|
| /llvm-project-15.0.7/llvm/test/Object/ |
| H A D | nm-bitcode.test | 3 # clang -O -fembed-bitcode -c -o macho-bitcode-x86_64.o test.c 4 # clang -O -fembed-bitcode-marker -c -o macho-bitcode-marker-x86_64.o test.c 6 RUN: llvm-nm -a %p/Inputs/macho-bitcode-x86_64.o \ 9 RUN: llvm-nm -a %p/Inputs/macho-bitcode-marker-x86_64.o \
|
| /llvm-project-15.0.7/llvm/test/Transforms/ThinLTOBitcodeWriter/ |
| H A D | no-type-md.ll | 1 ; Generate bitcode files with summary, as well as minimized bitcode without 3 ; RUN: opt -thinlto-bc -thin-link-bitcode-file=%t.thinlink.bc -o %t.bc %s 8 ; thin link bitcode files are identical 10 ; Copy the minimized bitcode to the regular bitcode path so the module 11 ; paths in the index are the same (save and restore the regular bitcode 22 ; Copy the minimized bitcode to the regular bitcode path so the module
|
| H A D | split.ll | 1 ; Generate bitcode files with summary, as well as minimized bitcode without 3 ; RUN: opt -thinlto-bc -thin-link-bitcode-file=%t2 -thinlto-split-lto-unit -o %t %s 15 ; thin link bitcode files are identical 17 ; Copy the minimized bitcode to the regular bitcode path so the module 23 ; ERROR: llvm-modextract: error: module index out of range; bitcode file contains 2 module(s)
|
| /llvm-project-15.0.7/llvm/docs/CommandGuide/ |
| H A D | llvm-link.rst | 1 llvm-link - LLVM bitcode linker 14 :program:`llvm-link` takes several LLVM bitcode files and links them together 15 into a single LLVM bitcode file. It writes the output file to standard output, 24 to write raw bitcode output if the output stream is a terminal. With this 25 option, :program:`llvm-link` will write raw bitcode regardless of the output 35 Write output in LLVM intermediate language (instead of bitcode). 40 output bitcode file to standard error. 49 This typically includes a message for each bitcode file linked in and for each
|
| H A D | llvm-bcanalyzer.rst | 1 llvm-bcanalyzer - LLVM bitcode analyzer 14 The :program:`llvm-bcanalyzer` command is a small utility for analyzing bitcode 15 files. The tool reads a bitcode file (such as generated with the 17 the bitcode file. The tool can also dump a low level but human readable 18 version of the bitcode file. This tool is probably not of much interest or 33 Causes :program:`llvm-bcanalyzer` to dump the bitcode in a human readable 35 provides details about the encoding of the bitcode file. 64 The size, in bytes, of the entire bitcode file. 116 The total number of blocks of any kind in the bitcode file. 120 The total number of function definitions in the bitcode file. [all …]
|
| H A D | llvm-extract.rst | 15 it from the specified LLVM bitcode file. It is primarily used as a debugging 18 In addition to extracting the bitcode of the specified function, 31 Extract the alias named *function-name* from the LLVM bitcode. May be 36 Extract the alias matching *alias-regular-expr* from the LLVM bitcode. 54 refuse to write raw bitcode output if the output stream is a terminal. With 55 this option, :program:`llvm-extract` will write raw bitcode regardless of the 60 Extract the function named *function-name* from the LLVM bitcode. May be 65 Extract the function(s) matching *function-regular-expr* from the LLVM bitcode. 71 Extract the global variable named *global-name* from the LLVM bitcode. May be 77 bitcode. All global variables matching the regular expression will be [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/MachO/ |
| H A D | universal-object.test | 30 ## Case 4: try to copy a universal object file contaning a bitcode slice. 31 # RUN: echo 'target triple = "arm64-apple-ios8.0.0"' | llvm-as -o %t.bitcode 32 # RUN: llvm-lipo %t.bitcode %t.x86_64 -create -output %t.universal.containing.bitcode 33 # RUN: not llvm-objcopy %t.universal.containing.bitcode %t.universal.containing.bitcode.copy 2>&1 \ 37 # RUN: llvm-ar cr %t.archive.universal.bitcode %t.universal.containing.bitcode 38 # RUN: not llvm-objcopy %t.archive.universal.bitcode %t.archive.universal.bitcode.copy 2>&1 \
|
| /llvm-project-15.0.7/lld/test/ELF/lto/ |
| H A D | bitcode-wrapper.ll | 3 ;; The LLVM bitcode format allows for an optional wrapper header. This test 4 ;; shows that LLD can handle bitcode wrapped in this way, and also that an 27 ; ERR1: error: [[FILE]]: Invalid bitcode wrapper header 33 ; ERR2: error: [[FILE]]: file doesn't start with bitcode header 47 bitcode = input.read() 51 header = struct.pack('<IIIII', 0x0B17C0DE, 0, offset, len(bitcode), 0) 55 output.write(bitcode)
|
| /llvm-project-15.0.7/llvm/test/ThinLTO/X86/ |
| H A D | lazyload_metadata.ll | 1 ; Do setup work for all below tests: generate bitcode and combined index 2 ; RUN: opt -module-summary %s -o %t.bc -bitcode-mdindex-threshold=0 3 ; RUN: opt -module-summary %p/Inputs/lazyload_metadata.ll -o %t2.bc -bitcode-mdindex-threshold=0 15 ; CHECK: [[#LAZY_RECORDS:]] bitcode-reader - Number of Metadata records loaded 16 ; CHECK: 2 bitcode-reader - Number of MDStrings loaded 19 ; CHECK: [[#LAZY_RECORDS+9]] bitcode-reader - Number of Metadata records loaded 20 ; CHECK: 7 bitcode-reader - Number of MDStrings loaded
|
| H A D | distributed_import.ll | 3 ; Generate bitcode files with summary, as well as minimized bitcode containing just the summary 4 ; RUN: opt -thinlto-bc %s -thin-link-bitcode-file=%t1.thinlink.bc -o %t1.bc 5 ; RUN: opt -thinlto-bc %p/Inputs/distributed_import.ll -thin-link-bitcode-file=%t2.thinlink.bc -o %… 8 ; First perform the thin link on the normal bitcode file. 26 ; Copy the minimized bitcode to the regular bitcode path so the module 27 ; paths in the index are the same (save the regular bitcode for use again 34 ; Next perform the thin link on the minimized bitcode files, and compare dumps
|
| /llvm-project-15.0.7/lld/test/MachO/ |
| H A D | icf-safe.ll | 11 ; RUN: llvm-as %s -o %t/icf-bitcode.o 12 ; RUN: %lld -arch arm64 -lSystem --icf=safe -dylib -o %t/icf-safe-bitcode.dylib %t/icf-bitcode.o 13 ; RUN: %lld -arch arm64 -lSystem --icf=all -dylib -o %t/icf-all-bitcode.dylib %t/icf-bitcode.o 14 ; RUN: llvm-objdump %t/icf-safe-bitcode.dylib -d --macho | FileCheck %s --check-prefix=ICFSAFE 15 ; RUN: llvm-objdump %t/icf-all-bitcode.dylib -d --macho | FileCheck %s --check-prefix=ICFALL
|
| H A D | lto-common-symbol-resolution.ll | 4 ;; bitcode symbols like regular common symbols, but ld64 gives them different 23 ;; Defined symbols take precedence over common bitcode symbols. 29 ;; Defined symbols have the same precedence as common bitcode symbols within 36 ;; ld64: Weak bitcode symbols have the same precedence as common bitcode symbols. 37 ;; lld: Weak bitcode symbols take precedence over common bitcode symbols. 43 ;; Weak non-bitcode symbols take precedence over common bitcode symbols. 49 ;; ld64: Archive symbols take precedence over common bitcode symbols. 50 ;; lld: Common bitcode symbols take precedence over archive symbols. 58 ;; ld64: Dylib symbols take precedence over common bitcode symbols. 59 ;; lld: Common bitcode symbols take precedence over dylib symbols.
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-ar/ |
| H A D | bitcode.ll | 1 ## Show that when bitcode is added to an archive it is handled correctly. 9 ## Create symtab from bitcode for a new archive. 26 ## Update symtab from bitcode in an existing archive. 41 ## Create symtab from bitcode for a regular archive via MRI script. 46 ## Create symtab from bitcode for a new thin archive. 51 ## Update symtab from bitcode in an existing thin archive. 60 ## Create symtab from bitcode for a thin archive via MRI script. 65 ## Create symtab from bitcode from another archive. 71 ## Create symtab from bitcode from another archive via MRI script. 76 ## Create symtab from bitcode from another thin archive. [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/ |
| H A D | tool-name.test | 36 # RUN: ln -s llvm-bitcode-strip %t/llvm-bitcode-strip-10 37 # RUN: ln -s llvm-bitcode-strip %t/bitcode_strip.exe 39 # RUN: llvm-bitcode-strip --help | FileCheck --check-prefix=BITCODE-STRIP %s 40 # RUN: %t/llvm-bitcode-strip-10 --help | FileCheck --check-prefix=BITCODE-STRIP %s 43 # BITCODE-STRIP: OVERVIEW: llvm-bitcode-strip tool
|
| /llvm-project-15.0.7/llvm/bindings/ocaml/bitwriter/ |
| H A D | llvm_bitwriter.mli | 11 This interface provides an OCaml API for the LLVM bitcode writer, the 14 (** [write_bitcode_file m path] writes the bitcode for module [m] to the file at 20 (** [write_bitcode_to_fd ~unbuffered fd m] writes the bitcode for module 28 the bitcode for module [m]. *) 33 (** [output_bitcode ~unbuffered c m] writes the bitcode for module [m]
|
| /llvm-project-15.0.7/llvm/test/tools/gold/X86/ |
| H A D | thinlto_object_suffix_replace.ll | 4 ; Generate bitcode file with summary, as well as a minimized bitcode without 6 ; RUN: opt -thinlto-bc %s -thin-link-bitcode-file=%t1.thinlink.bc -o %t1.o 8 ; First perform the thin link on the normal bitcode file, and save the 17 ; Next perform the thin link on the minimized bitcode file, and compare dump 20 ; Make sure it isn't inadvertently using the regular bitcode file.
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-link/ |
| H A D | archive-non-bitcode.ll | 3 # RUN: echo "This is not a bitcode file" > %t.not_bitcode.txt 6 # RUN: llvm-link -ignore-non-bitcode %t.a %t.empty.lib -o %t.linked.bc 2>&1 | FileCheck --check-pre… 9 # CHECK_ERROR_BITCODE: error: member of archive is not a bitcode file 10 # CHECK_IGNORE_NON_BITCODE-NOT: is not a bitcode file
|
| /llvm-project-15.0.7/llvm/test/Bindings/OCaml/ |
| H A D | diagnostic_handler.ml | 3 * RUN: %t/executable %t/bitcode.bc | FileCheck %s 5 * RUN: %t/executable %t/bitcode.bc | FileCheck %s 25 (* corrupt the bitcode *) 28 output_string oc "not a bitcode file\n"; 36 (* CHECK: Diagnostic handler called: Invalid bitcode signature
|