/llvm-project/clang/test/Driver/ |
H A D | rocm-device-libs.cl | 125 // RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode \ 130 // RUN: env HIP_DEVICE_LIB_PATH=%S/Inputs/rocm/amdgcn/bitcode %clang -### -target amdgcn-amd-amdhsa… 148 // ASAN-SAME: "-mlink-bitcode-file" "{{.*}}/amdgcn/bitcode/asanrtl.bc" 149 // COMMON-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/opencl.bc" 150 // COMMON-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/ocml.bc" 151 // COMMON-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/ockl.bc" 153 // GFX900-DEFAULT-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_daz_opt_off.bc" 154 // GFX803-DEFAULT-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_daz_opt_on.bc" 155 // GFX700-DEFAULT-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_daz_opt_on.bc" 156 // COMMON-DAZ-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_daz_opt_on.bc" [all …]
|
H A D | hip-device-libs.hip | 98 // RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode \ 105 // RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode \ 111 // RUN: env HIP_DEVICE_LIB_PATH=%S/Inputs/rocm/amdgcn/bitcode \ 118 // RUN: env HIP_DEVICE_LIB_PATH=%S/Inputs/rocm/amdgcn/bitcode \ 165 // RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode-no-abi-ver \ 178 // RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode-no-abi-ver \ 191 // RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode-no-abi-ver \ 204 // RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode-no-abi-ver \ 211 // RESDIR-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR:[^"]+(/|\\\\)rocm_resource_dir(/|\\\\)lib(64)?(/|\\\\)amdgcn(/|\\\\).*]]hip.bc" 212 // ROCMDIR-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DI [all...] |
H A D | hip-sanitize-options.hip | 51 // CHECK-NOT: {{"[^"]*clang[^"]*".* "-fcuda-is-device".* "-mlink-bitcode-file" ".*asanrtl.bc"}} 55 …]*".* "-emit-obj".* "-fcuda-is-device".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-mlink-builtin-bi… 60 …* "-emit-llvm-bc".* "-fcuda-is-device".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-mlink-builtin-bi… 68 // XNACK-DAG: {{"[^"]*clang[^"]*".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-target-cpu" "gfx900".*… 77 // XNACKNEG-NOT: {{"[^"]*clang[^"]*".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-target-cpu" "gfx900… 78 // XNACKNEG-NOT: {{"[^"]*clang[^"]*".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-target-cpu" "gfx906… 88 // NOGPUNEG-NOT: {{"[^"]*clang[^"]*".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-target-cpu" "gfx900… 95 // NOGPUNEG-NOT: {{"[^"]*clang[^"]*".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-target-cpu" "gfx900… 96 // NOGPUNEG-NOT: {{"[^"]*clang[^"]*".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-target-cpu" "gfx900… 97 // NOGPUNEG-NOT: {{"[^"]*clang[^"]*".* "-mlink-bitcode-file" ".*asanrtl.bc".* "-target-cpu" "gfx906…
|
H A D | hipspv-device-libs.hip | 22 // HIP-PATH: "-mlink-builtin-bitcode" {{".*/hipspv/lib/hip-device-lib/hipspv-spirv64.bc"}} 23 // HIP-DEV-LIB-PATH-NOT: "-mlink-builtin-bitcode" {{".*/hipspv/lib/hip-device-lib/hipspv-spirv64.bc… 24 // HIP-DEV-LIB-PATH: "-mlink-builtin-bitcode" {{".*/hipspv-dev-lib/hipspv-spirv64.bc"}} 25 // HIP-DEV-LIB: "-mlink-builtin-bitcode" {{".*/hipspv-dev-lib/a/a.bc"}} 26 // HIP-DEV-LIB-SAME: "-mlink-builtin-bitcode" {{".*/hipspv-dev-lib/b/b.bc"}}
|
/llvm-project/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/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 - \ 14 ; RUN: -fembed-bitcode=all -x ir %s -o - \ 21 ; RUN: -fembed-bitcode=all -x ir %t.bc -o - \ 24 ; RUN: -fembed-bitcode=bitcode -x ir %t.bc -o - \ 27 ; RUN: -fembed-bitcode=marker -x ir %t.bc -o - \ 30 ; run through -fembed-bitcode twice and make sure it doesn't crash 32 ; RUN: -fembed-bitcode=all -x ir %s -o - \ 34 ; RUN: -fembed-bitcode=all -x ir - -o /dev/null [all …]
|
/llvm-project/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/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/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 94 Preserve the use-list order when writing LLVM bitcode. 100 .. option:: --ignore-non-bitcode [all …]
|
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 19 utility except for those working directly with the bitcode file format. Most 33 Causes :program:`llvm-bcanalyzer` to dump the bitcode in a human readable 35 provides details about the encoding of the bitcode file. 55 This just provides the name of the module for which bitcode analysis is being 60 The bitcode version (not LLVM version) of the file read by the analyzer. [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/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/llvm/test/tools/llvm-reduce/ |
H A D | file-output-type.test | 11 # A .bc input file should default to bitcode output, in reduced.bc (with bitcode intermediates) 17 # A .bc input file with a requested .bc output should produce bitcode 33 # Make sure an explicit -output-bitcode produces bitcode output regardless of suffix 34 # RUN: llvm-reduce -output-bitcode -o %t.2_no_suffix --delta-passes=instructions --test FileCheck -… 38 # Make sure an explicit -output-bitcode overrides .ll suffix 39 # RUN: llvm-reduce -output-bitcode -o %t.2.ll --delta-passes=instructions --test FileCheck --test-a… 43 # Make sure MIR ignores requests for bitcode 44 # RUN: llvm-reduce -output-bitcode --delta-passes=instructions -o %t.3 --test FileCheck --test-arg …
|
/llvm-project/lld/test/ELF/lto/ |
H A D | bitcode-wrapper.ll | 5 ;; The LLVM bitcode format allows for an optional wrapper header. This test 6 ;; shows that LLD can handle bitcode wrapped in this way, and also that an 29 ; ERR1: error: [[FILE]]: Invalid bitcode wrapper header 35 ; ERR2: error: [[FILE]]: file doesn't start with bitcode header 49 bitcode = input.read() 53 header = struct.pack('<IIIII', 0x0B17C0DE, 0, offset, len(bitcode), 0) 57 output.write(bitcode)
|
/llvm-project/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/lld/test/MachO/ |
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.
|
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 -h --macho | FileCheck %s --check-prefixes=ICFSAFE,CHECK 15 ; RUN: llvm-objdump %t/icf-all-bitcode.dylib -d -h --macho | FileCheck %s --check-prefixes=ICFALL,CHECK
|
H A D | thinlto-object-suffix-replace.ll | 6 ;; Generate bitcode file with summary, as well as a minimized bitcode without 8 ; RUN: opt --thinlto-bc %s -thin-link-bitcode-file=1.thinlink.bc -o 1.o 10 ;; First perform the thin link on the normal bitcode file, and save the 15 ;; Next perform the thin link on the minimized bitcode file, and compare dump 18 ;; Make sure it isn't inadvertently using the regular bitcode file.
|
/llvm-project/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/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/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/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.
|