snippetbashTip
llvm-as — LLVM Intermediate Representation (`.ll`) to Bitcode (`.bc`) assembler. More information: <https://ll
Viewed 0 times
llvmcommandcliintermediaterepresentationllvm-asassemblerbitcode
Problem
How to use the
llvm-as command: LLVM Intermediate Representation (.ll) to Bitcode (.bc) assembler. More information: <https://llvm.org/docs/CommandGuide/llvm-as.html>.Solution
llvm-as — LLVM Intermediate Representation (.ll) to Bitcode (.bc) assembler. More information: <https://llvm.org/docs/CommandGuide/llvm-as.html>.Assemble an IR file:
llvm-as -o {{path/to/out.bc}} {{path/to/source.ll}}Assemble 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.ll}}Read an IR file from
stdin and assemble it:cat {{path/to/source.ll}} | llvm-as -o {{path/to/out.bc}}Code Snippets
Assemble an IR file
llvm-as -o {{path/to/out.bc}} {{path/to/source.ll}}Assemble 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.ll}}Read an IR file from `stdin` and assemble it
cat {{path/to/source.ll}} | llvm-as -o {{path/to/out.bc}}Context
tldr-pages: common/llvm-as
Revisions (0)
No revisions yet.