llvm-as.pod 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. =pod
  2. =head1 NAME
  3. llvm-as - LLVM assembler
  4. =head1 SYNOPSIS
  5. B<llvm-as> [I<options>] [I<filename>]
  6. =head1 DESCRIPTION
  7. B<llvm-as> is the LLVM assembler. It reads a file containing human-readable
  8. LLVM assembly language, translates it to LLVM bitcode, and writes the result
  9. into a file or to standard output.
  10. If F<filename> is omitted or is C<->, then B<llvm-as> reads its input from
  11. standard input.
  12. If an output file is not specified with the B<-o> option, then
  13. B<llvm-as> sends its output to a file or standard output by following
  14. these rules:
  15. =over
  16. =item *
  17. If the input is standard input, then the output is standard output.
  18. =item *
  19. If the input is a file that ends with C<.ll>, then the output file is of
  20. the same name, except that the suffix is changed to C<.bc>.
  21. =item *
  22. If the input is a file that does not end with the C<.ll> suffix, then the
  23. output file has the same name as the input file, except that the C<.bc>
  24. suffix is appended.
  25. =back
  26. =head1 OPTIONS
  27. =over
  28. =item B<-f>
  29. Enable binary output on terminals. Normally, B<llvm-as> will refuse to
  30. write raw bitcode output if the output stream is a terminal. With this option,
  31. B<llvm-as> will write raw bitcode regardless of the output device.
  32. =item B<-help>
  33. Print a summary of command line options.
  34. =item B<-o> F<filename>
  35. Specify the output file name. If F<filename> is C<->, then B<llvm-as>
  36. sends its output to standard output.
  37. =back
  38. =head1 EXIT STATUS
  39. If B<llvm-as> succeeds, it will exit with 0. Otherwise, if an error
  40. occurs, it will exit with a non-zero value.
  41. =head1 SEE ALSO
  42. L<llvm-dis|llvm-dis>, L<gccas|gccas>
  43. =head1 AUTHORS
  44. Maintained by the LLVM Team (L<http://llvm.org>).
  45. =cut