llvm-dis.rst 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. llvm-dis - LLVM disassembler
  2. ============================
  3. .. program:: llvm-dis
  4. SYNOPSIS
  5. --------
  6. **llvm-dis** [*options*] [*filename*]
  7. DESCRIPTION
  8. -----------
  9. The **llvm-dis** command is the LLVM disassembler. It takes an LLVM
  10. bitcode file and converts it into human-readable LLVM assembly language.
  11. If filename is omitted or specified as ``-``, **llvm-dis** reads its
  12. input from standard input.
  13. If the input is being read from standard input, then **llvm-dis**
  14. will send its output to standard output by default. Otherwise, the
  15. output will be written to a file named after the input file, with
  16. a ``.ll`` suffix added (any existing ``.bc`` suffix will first be
  17. removed). You can override the choice of output file using the
  18. **-o** option.
  19. OPTIONS
  20. -------
  21. **-f**
  22. Enable binary output on terminals. Normally, **llvm-dis** will refuse to
  23. write raw bitcode output if the output stream is a terminal. With this option,
  24. **llvm-dis** will write raw bitcode regardless of the output device.
  25. **-help**
  26. Print a summary of command line options.
  27. **-o** *filename*
  28. Specify the output file name. If *filename* is -, then the output is sent
  29. to standard output.
  30. EXIT STATUS
  31. -----------
  32. If **llvm-dis** succeeds, it will exit with 0. Otherwise, if an error
  33. occurs, it will exit with a non-zero value.
  34. SEE ALSO
  35. --------
  36. :manpage:`llvm-as(1)`