llvm-as
LLVM Intermediate Representation (.ll) to Bitcode (.bc) assembler. tldr-pages
On several platforms
Several platforms
Assemble an IR file
llvm-as -o path/to/out.bc path/to/source.llIdentifyAssemble an IR file and include a module hash in the produced Bitcode file
llvm-as --module-hash -o path/to/out.bc path/to/source.llIdentifyRead an IR file from stdin and assemble it
cat path/to/source.ll | llvm-as -o path/to/out.bcIdentify