CC1AsOptions.td revision 263508
1//===--- CC1AsOptions.td - Options for clang -cc1as -----------------------===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10//  This file defines the options accepted by clang -cc1as.
11//
12//===----------------------------------------------------------------------===//
13
14// Include the common option parsing interfaces.
15include "llvm/Option/OptParser.td"
16
17//===----------------------------------------------------------------------===//
18// Target Options
19//===----------------------------------------------------------------------===//
20
21def triple : Separate<["-"], "triple">,
22  HelpText<"Specify target triple (e.g. x86_64-pc-linux-gnu)">;
23def target_cpu : Separate<["-"], "target-cpu">,
24  HelpText<"Target a specific cpu type">;
25def target_feature : Separate<["-"], "target-feature">,
26  HelpText<"Target specific attributes">;
27
28//===----------------------------------------------------------------------===//
29// Language Options
30//===----------------------------------------------------------------------===//
31
32def I : JoinedOrSeparate<["-"], "I">, MetaVarName<"<directory>">,
33  HelpText<"Add directory to include search path">;
34def n : Flag<["-"], "n">,
35  HelpText<"Don't automatically start assembly file with a text section">;
36def msave_temp_labels : Flag<["-"], "msave-temp-labels">,
37  HelpText<"Save temporary labels in the symbol table. "
38           "Note this may change .s semantics, it should almost never be used "
39           "on compiler generated code!">;
40def main_file_name : Separate<["-"], "main-file-name">,
41  HelpText<"Main file name to use for debug info">;
42
43//===----------------------------------------------------------------------===//
44// Frontend Options
45//===----------------------------------------------------------------------===//
46
47def o : Separate<["-"], "o">, MetaVarName<"<path>">,
48  HelpText<"Specify output file">;
49
50def filetype : Separate<["-"], "filetype">,
51    HelpText<"Specify the output file type ('asm', 'null', or 'obj')">;
52
53def help : Flag<["-", "--"], "help">,
54  HelpText<"Print this help text">;
55
56def version : Flag<["-", "--"], "version">,
57  HelpText<"Print the assembler version">;
58def v : Flag<["-"], "v">, Alias<version>;
59
60// Generic forwarding to LLVM options. This should only be used for debugging
61// and experimental features.
62def mllvm : Separate<["-"], "mllvm">,
63  HelpText<"Additional arguments to forward to LLVM's option processing">;
64
65//===----------------------------------------------------------------------===//
66// Transliterate Options
67//===----------------------------------------------------------------------===//
68
69def output_asm_variant : Separate<["-"], "output-asm-variant">,
70    HelpText<"Select the asm variant index to use for output">;
71def show_encoding : Flag<["-"], "show-encoding">,
72    HelpText<"Show instruction encoding information in transliterate mode">;
73def show_inst : Flag<["-"], "show-inst">,
74    HelpText<"Show internal instruction representation in transliterate mode">;
75
76//===----------------------------------------------------------------------===//
77// Assemble Options
78//===----------------------------------------------------------------------===//
79
80def mrelax_all : Flag<["-"], "mrelax-all">,
81    HelpText<"Relax all fixups (for performance testing)">;
82
83def mno_exec_stack : Flag<["-"], "mnoexecstack">,
84    HelpText<"Mark the file as not needing an executable stack">;
85
86def g : Flag<["-"], "g">, HelpText<"Generate source level debug information">;
87
88def fdebug_compilation_dir : Separate<["-"], "fdebug-compilation-dir">,
89  HelpText<"The compilation directory to embed in the debug info.">;
90
91def dwarf_debug_flags : Separate<["-"], "dwarf-debug-flags">,
92  HelpText<"The string to embed in the Dwarf debug flags record.">;
93
94def dwarf_debug_producer : Separate<["-"], "dwarf-debug-producer">,
95  HelpText<"The string to embed in the Dwarf debug AT_producer record.">;
96