• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "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 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!">;
40
41//===----------------------------------------------------------------------===//
42// Frontend Options
43//===----------------------------------------------------------------------===//
44
45def o : Separate<"-o">, MetaVarName<"<path>">, HelpText<"Specify output file">;
46
47def filetype : Separate<"-filetype">,
48    HelpText<"Specify the output file type ('asm', 'null', or 'obj')">;
49
50def help : Flag<"-help">,
51  HelpText<"Print this help text">;
52def _help : Flag<"--help">, Alias<help>;
53
54def version : Flag<"-version">,
55  HelpText<"Print the assembler version">;
56def _version : Flag<"--version">, Alias<version>;
57def v : Flag<"-v">, Alias<version>;
58
59// Generic forwarding to LLVM options. This should only be used for debugging
60// and experimental features.
61def mllvm : Separate<"-mllvm">,
62  HelpText<"Additional arguments to forward to LLVM's option processing">;
63
64//===----------------------------------------------------------------------===//
65// Transliterate Options
66//===----------------------------------------------------------------------===//
67
68def output_asm_variant : Separate<"-output-asm-variant">,
69    HelpText<"Select the asm variant index to use for output">;
70def show_encoding : Flag<"-show-encoding">,
71    HelpText<"Show instruction encoding information in transliterate mode">;
72def show_inst : Flag<"-show-inst">,
73    HelpText<"Show internal instruction representation in transliterate mode">;
74
75//===----------------------------------------------------------------------===//
76// Assemble Options
77//===----------------------------------------------------------------------===//
78
79def relax_all : Flag<"-relax-all">,
80    HelpText<"Relax all fixups (for performance testing)">;
81
82def no_exec_stack : Flag<"--noexecstack">,
83    HelpText<"Mark the file as not needing an executable stack">;
84
85def fatal_warnings : Flag<"--fatal-warnings">,
86    HelpText<"Consider warnings as errors">;
87
88def g : Flag<"-g">, HelpText<"Generate source level debug information">;
89
90def dwarf_debug_flags : Separate<"-dwarf-debug-flags">,
91  HelpText<"The string to embed in the Dwarf debug flags record.">;
92