llvm-as Command Examples

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}}

cat {{path/to/source.ll}} | llvm-as -o {{path/to/out.bc}}