From 42030c2c9fb35b97654cb42dceb68931e525de80 Mon Sep 17 00:00:00 2001 From: pixel <35269695+pixelcmtd@users.noreply.github.com> Date: Sat, 18 Sep 2021 12:53:12 +0200 Subject: [PATCH] llvm-as: add page (#6496) --- pages/common/llvm-as.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/llvm-as.md diff --git a/pages/common/llvm-as.md b/pages/common/llvm-as.md new file mode 100644 index 0000000000..1b621a3528 --- /dev/null +++ b/pages/common/llvm-as.md @@ -0,0 +1,16 @@ +# llvm-as + +> LLVM Intermediate Representation (`.ll`) to Bitcode (`.bc`) assembler. +> More information: . + +- 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}}`