LLVM Intermediate Representation (
.ll) to Bitcode (.bc) assembler. More information: https://llvm.org/docs/CommandGuide/llvm-as.html.
llvm-as -o {{path/to/out.bc}} {{path/to/source.ll}}
llvm-as --module-hash -o {{path/to/out.bc}} {{path/to/source.ll}}
stdin and assemble it:cat {{path/to/source.ll}} | llvm-as -o {{path/to/out.bc}}