CC1Options.td revision 50a4487683a7e09fb93e8b506181e034241a0ffe
18adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//===--- CC1Options.td - Options for clang -cc1 ---------------------------===//
28adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//
38adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//                     The LLVM Compiler Infrastructure
48adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//
58adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar// This file is distributed under the University of Illinois Open Source
68adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar// License. See LICENSE.TXT for details.
78adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//
88adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//===----------------------------------------------------------------------===//
98adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//
108adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//  This file defines the options accepted by clang -cc1.
118adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//
128adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar//===----------------------------------------------------------------------===//
138adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar
148adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar// Include the common option parsing interfaces.
158adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbarinclude "OptParser.td"
168adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar
178adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar// Target Options
188adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar
198adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbardef target_abi : Separate<"-target-abi">,
208adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar  HelpText<"Target a particular ABI type">;
2131db76cb2dde031ab3262808ac233889daf7d720Daniel Dunbardef mcpu : Separate<"-mcpu">,
228adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar  HelpText<"Target a specific cpu type (-mcpu=help for details)">;
2331db76cb2dde031ab3262808ac233889daf7d720Daniel Dunbardef target_feature : Separate<"-target-feature">,
248adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar  HelpText<"Target specific attributes">;
2531db76cb2dde031ab3262808ac233889daf7d720Daniel Dunbardef triple : Separate<"-triple">,
268adfcff02334455b6f95bc4e1f347204f7c0dd3eDaniel Dunbar  HelpText<"Specify target triple (e.g. i686-apple-darwin9)">;
2750a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar
2850a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar// CodeGen Options
2950a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar
3050a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef disable_llvm_optzns : Flag<"-disable-llvm-optzns">,
3150a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar  HelpText<"Don't run LLVM optimization passes">;
3250a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef disable_red_zone : Flag<"-disable-red-zone">,
3350a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar  HelpText<"Do not emit code that uses the red zone.">;
3450a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef g : Flag<"-g">, HelpText<"Generate source level debug information">;
3550a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef fno_common : Flag<"-fno-common">,
3650a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar  HelpText<"Compile common globals like normal definitions">;
3750a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef no_implicit_float : Flag<"-no-implicit-float">,
3850a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar  HelpText<"Don't generate implicit floating point instructions (x86-only)">;
3950a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef fno_merge_all_constants : Flag<"-fno-merge-all-constants">,
4050a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbar  HelpText<"Disallow merging of constants.">;
4150a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef O : Joined<"-O">, HelpText<"Optimization level">;
4250a4487683a7e09fb93e8b506181e034241a0ffeDaniel Dunbardef Os : Flag<"-Os">, HelpText<"Optimize for size">;
43