1 //===--- CC1AsOptions.td - Options for clang -cc1as -----------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the options accepted by clang -cc1as.
12 //===----------------------------------------------------------------------===//
14 // Include the common option parsing interfaces.
15 include "OptParser.td"
17 //===----------------------------------------------------------------------===//
19 //===----------------------------------------------------------------------===//
21 def triple : Separate<["-"], "triple">,
22 HelpText<"Specify target triple (e.g. x86_64-pc-linux-gnu)">;
23 def target_cpu : Separate<["-"], "target-cpu">,
24 HelpText<"Target a specific cpu type">;
25 def target_feature : Separate<["-"], "target-feature">,
26 HelpText<"Target specific attributes">;
28 //===----------------------------------------------------------------------===//
30 //===----------------------------------------------------------------------===//
32 def I : JoinedOrSeparate<["-"], "I">, MetaVarName<"<directory>">,
33 HelpText<"Add directory to include search path">;
34 def n : Flag<["-"], "n">,
35 HelpText<"Don't automatically start assembly file with a text section">;
36 def L : Flag<["-"], "L">,
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!">;
41 //===----------------------------------------------------------------------===//
43 //===----------------------------------------------------------------------===//
45 def o : Separate<["-"], "o">, MetaVarName<"<path>">,
46 HelpText<"Specify output file">;
48 def filetype : Separate<["-"], "filetype">,
49 HelpText<"Specify the output file type ('asm', 'null', or 'obj')">;
51 def help : Flag<["-", "--"], "help">,
52 HelpText<"Print this help text">;
54 def version : Flag<["-", "--"], "version">,
55 HelpText<"Print the assembler version">;
56 def v : Flag<["-"], "v">, Alias<version>;
58 // Generic forwarding to LLVM options. This should only be used for debugging
59 // and experimental features.
60 def mllvm : Separate<["-"], "mllvm">,
61 HelpText<"Additional arguments to forward to LLVM's option processing">;
63 //===----------------------------------------------------------------------===//
64 // Transliterate Options
65 //===----------------------------------------------------------------------===//
67 def output_asm_variant : Separate<["-"], "output-asm-variant">,
68 HelpText<"Select the asm variant index to use for output">;
69 def show_encoding : Flag<["-"], "show-encoding">,
70 HelpText<"Show instruction encoding information in transliterate mode">;
71 def show_inst : Flag<["-"], "show-inst">,
72 HelpText<"Show internal instruction representation in transliterate mode">;
74 //===----------------------------------------------------------------------===//
76 //===----------------------------------------------------------------------===//
78 def relax_all : Flag<["-"], "relax-all">,
79 HelpText<"Relax all fixups (for performance testing)">;
81 def no_exec_stack : Flag<["--"], "noexecstack">,
82 HelpText<"Mark the file as not needing an executable stack">;
84 def fatal_warnings : Flag<["--"], "fatal-warnings">,
85 HelpText<"Consider warnings as errors">;
87 def g : Flag<["-"], "g">, HelpText<"Generate source level debug information">;
89 def dwarf_debug_flags : Separate<["-"], "dwarf-debug-flags">,
90 HelpText<"The string to embed in the Dwarf debug flags record.">;