LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

llvm-cat

Concatenate LLVM bitcode files into a single bitcode file

TLDR

Concatenate bitcode files into a single output
$ llvm-cat -o [output.bc] [file1.bc] [file2.bc]
copy
Concatenate multiple bitcode files using a glob
$ llvm-cat -o [combined.bc] [*.bc]
copy
Produce a module containing embedded modules (binary bundle)
$ llvm-cat -b -o [bundle.bc] [file1.bc] [file2.bc]
copy

SYNOPSIS

llvm-cat [-o output] [-b] files...

DESCRIPTION

llvm-cat concatenates LLVM bitcode files. By default it produces a single bitcode module that contains the linked contents of all inputs. With -b, it produces a bundle in which each input remains a distinct embedded module, useful for tools that operate on multiple modules without merging them.It is part of the LLVM toolchain and is typically used in build systems that need to aggregate bitcode prior to linking, optimization, or analysis with llvm-link, opt, or llc.

PARAMETERS

-o file

Write output bitcode to file (defaults to standard output).
-b
Produce a binary bundle. Embeds each input module as a separate module inside the output, instead of linking them together.
--help
Display help information.

INSTALL

sudo apt install llvm
copy
sudo dnf install llvm
copy
sudo pacman -S llvm
copy
sudo apk add llvm
copy
sudo zypper install llvm
copy
brew install llvm
copy
nix profile install nixpkgs#llvm
copy

SEE ALSO

Copied to clipboard
Kai