1208600Srdivacky//===--- CC1AsOptions.td - Options for clang -cc1as -----------------------===//
2208600Srdivacky//
3208600Srdivacky//                     The LLVM Compiler Infrastructure
4208600Srdivacky//
5208600Srdivacky// This file is distributed under the University of Illinois Open Source
6208600Srdivacky// License. See LICENSE.TXT for details.
7208600Srdivacky//
8208600Srdivacky//===----------------------------------------------------------------------===//
9208600Srdivacky//
10208600Srdivacky//  This file defines the options accepted by clang -cc1as.
11208600Srdivacky//
12208600Srdivacky//===----------------------------------------------------------------------===//
13208600Srdivacky
14208600Srdivacky// Include the common option parsing interfaces.
15263509Sdiminclude "llvm/Option/OptParser.td"
16208600Srdivacky
17208600Srdivacky//===----------------------------------------------------------------------===//
18208600Srdivacky// Target Options
19208600Srdivacky//===----------------------------------------------------------------------===//
20208600Srdivacky
21245431Sdimdef triple : Separate<["-"], "triple">,
22208600Srdivacky  HelpText<"Specify target triple (e.g. x86_64-pc-linux-gnu)">;
23245431Sdimdef target_cpu : Separate<["-"], "target-cpu">,
24235633Sdim  HelpText<"Target a specific cpu type">;
25245431Sdimdef target_feature : Separate<["-"], "target-feature">,
26235633Sdim  HelpText<"Target specific attributes">;
27208600Srdivacky
28208600Srdivacky//===----------------------------------------------------------------------===//
29208600Srdivacky// Language Options
30208600Srdivacky//===----------------------------------------------------------------------===//
31208600Srdivacky
32245431Sdimdef I : JoinedOrSeparate<["-"], "I">, MetaVarName<"<directory>">,
33208600Srdivacky  HelpText<"Add directory to include search path">;
34245431Sdimdef n : Flag<["-"], "n">,
35208600Srdivacky  HelpText<"Don't automatically start assembly file with a text section">;
36263509Sdimdef msave_temp_labels : Flag<["-"], "msave-temp-labels">,
37221345Sdim  HelpText<"Save temporary labels in the symbol table. "
38221345Sdim           "Note this may change .s semantics, it should almost never be used "
39221345Sdim           "on compiler generated code!">;
40252723Sdimdef main_file_name : Separate<["-"], "main-file-name">,
41252723Sdim  HelpText<"Main file name to use for debug info">;
42208600Srdivacky
43208600Srdivacky//===----------------------------------------------------------------------===//
44208600Srdivacky// Frontend Options
45208600Srdivacky//===----------------------------------------------------------------------===//
46208600Srdivacky
47245431Sdimdef o : Separate<["-"], "o">, MetaVarName<"<path>">,
48245431Sdim  HelpText<"Specify output file">;
49208600Srdivacky
50245431Sdimdef filetype : Separate<["-"], "filetype">,
51208600Srdivacky    HelpText<"Specify the output file type ('asm', 'null', or 'obj')">;
52208600Srdivacky
53245431Sdimdef help : Flag<["-", "--"], "help">,
54208600Srdivacky  HelpText<"Print this help text">;
55208600Srdivacky
56245431Sdimdef version : Flag<["-", "--"], "version">,
57208600Srdivacky  HelpText<"Print the assembler version">;
58245431Sdimdef v : Flag<["-"], "v">, Alias<version>;
59208600Srdivacky
60208600Srdivacky// Generic forwarding to LLVM options. This should only be used for debugging
61208600Srdivacky// and experimental features.
62245431Sdimdef mllvm : Separate<["-"], "mllvm">,
63208600Srdivacky  HelpText<"Additional arguments to forward to LLVM's option processing">;
64208600Srdivacky
65208600Srdivacky//===----------------------------------------------------------------------===//
66208600Srdivacky// Transliterate Options
67208600Srdivacky//===----------------------------------------------------------------------===//
68208600Srdivacky
69245431Sdimdef output_asm_variant : Separate<["-"], "output-asm-variant">,
70208600Srdivacky    HelpText<"Select the asm variant index to use for output">;
71245431Sdimdef show_encoding : Flag<["-"], "show-encoding">,
72208600Srdivacky    HelpText<"Show instruction encoding information in transliterate mode">;
73245431Sdimdef show_inst : Flag<["-"], "show-inst">,
74208600Srdivacky    HelpText<"Show internal instruction representation in transliterate mode">;
75208600Srdivacky
76208600Srdivacky//===----------------------------------------------------------------------===//
77208600Srdivacky// Assemble Options
78208600Srdivacky//===----------------------------------------------------------------------===//
79208600Srdivacky
80263509Sdimdef mrelax_all : Flag<["-"], "mrelax-all">,
81208600Srdivacky    HelpText<"Relax all fixups (for performance testing)">;
82218893Sdim
83263509Sdimdef mno_exec_stack : Flag<["-"], "mnoexecstack">,
84221345Sdim    HelpText<"Mark the file as not needing an executable stack">;
85223017Sdim
86245431Sdimdef g : Flag<["-"], "g">, HelpText<"Generate source level debug information">;
87235633Sdim
88252723Sdimdef fdebug_compilation_dir : Separate<["-"], "fdebug-compilation-dir">,
89252723Sdim  HelpText<"The compilation directory to embed in the debug info.">;
90252723Sdim
91245431Sdimdef dwarf_debug_flags : Separate<["-"], "dwarf-debug-flags">,
92235633Sdim  HelpText<"The string to embed in the Dwarf debug flags record.">;
93252723Sdim
94252723Sdimdef dwarf_debug_producer : Separate<["-"], "dwarf-debug-producer">,
95252723Sdim  HelpText<"The string to embed in the Dwarf debug AT_producer record.">;
96