mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-16 19:00:28 +00:00
Update cheatsheets
This commit is contained in:
21
llvm-as
Normal file
21
llvm-as
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user