HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

llvm-dis — Convert LLVM bitcode files into human-readable LLVM Intermediate Representation (IR). More informati

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandllvmfilesconvertcliintollvm-disbitcode

Problem

How to use the llvm-dis command: Convert LLVM bitcode files into human-readable LLVM Intermediate Representation (IR). More information: <https://www.llvm.org/docs/CommandGuide/llvm-dis.html>.

Solution

llvm-dis — Convert LLVM bitcode files into human-readable LLVM Intermediate Representation (IR). More information: <https://www.llvm.org/docs/CommandGuide/llvm-dis.html>.

Convert a bitcode file as LLVM IR and write the result to stdout:
llvm-dis {{path/to/input.bc}} -o -


Convert a bitcode file to an LLVM IR file with the same filename:
llvm-dis {{path/to/file.bc}}


Convert a bitcode file to LLVM IR, writing the result to the specified file:
llvm-dis {{path/to/input.bc}} -o {{path/to/output.ll}}

Code Snippets

Convert a bitcode file as LLVM IR and write the result to `stdout`

llvm-dis {{path/to/input.bc}} -o -

Convert a bitcode file to an LLVM IR file with the same filename

llvm-dis {{path/to/file.bc}}

Convert a bitcode file to LLVM IR, writing the result to the specified file

llvm-dis {{path/to/input.bc}} -o {{path/to/output.ll}}

Context

tldr-pages: common/llvm-dis

Revisions (0)

No revisions yet.