mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-18 21:35:24 +02:00
llvm-as: add page (#6496)
This commit is contained in:
parent
7d02084cb7
commit
42030c2c9f
1 changed files with 16 additions and 0 deletions
16
pages/common/llvm-as.md
Normal file
16
pages/common/llvm-as.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# 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}}`
|
Loading…
Add table
Reference in a new issue