llvm-dis.rst 1.3 KB

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