Daniel Dunbar | 8adfcff | 2009-11-19 07:19:04 +0000 | [diff] [blame] | 1 | //===--- CC1Options.td - Options for clang -cc1 ---------------------------===// |
| 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 -cc1. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | // Include the common option parsing interfaces. |
| 15 | include "OptParser.td" |
| 16 | |
| 17 | // Target Options |
| 18 | |
| 19 | def target_abi : Separate<"-target-abi">, |
| 20 | HelpText<"Target a particular ABI type">; |
Daniel Dunbar | 31db76c | 2009-11-20 01:46:44 +0000 | [diff] [blame] | 21 | def mcpu : Separate<"-mcpu">, |
Daniel Dunbar | a31100e | 2009-11-20 22:21:52 +0000 | [diff] [blame^] | 22 | HelpText<"Target a specific cpu type ('-mcpu help' for details)">; |
Daniel Dunbar | 31db76c | 2009-11-20 01:46:44 +0000 | [diff] [blame] | 23 | def target_feature : Separate<"-target-feature">, |
Daniel Dunbar | 8adfcff | 2009-11-19 07:19:04 +0000 | [diff] [blame] | 24 | HelpText<"Target specific attributes">; |
Daniel Dunbar | 31db76c | 2009-11-20 01:46:44 +0000 | [diff] [blame] | 25 | def triple : Separate<"-triple">, |
Daniel Dunbar | 8adfcff | 2009-11-19 07:19:04 +0000 | [diff] [blame] | 26 | HelpText<"Specify target triple (e.g. i686-apple-darwin9)">; |
Daniel Dunbar | 50a4487 | 2009-11-20 17:23:30 +0000 | [diff] [blame] | 27 | |
| 28 | // CodeGen Options |
| 29 | |
| 30 | def disable_llvm_optzns : Flag<"-disable-llvm-optzns">, |
| 31 | HelpText<"Don't run LLVM optimization passes">; |
| 32 | def disable_red_zone : Flag<"-disable-red-zone">, |
| 33 | HelpText<"Do not emit code that uses the red zone.">; |
| 34 | def g : Flag<"-g">, HelpText<"Generate source level debug information">; |
| 35 | def fno_common : Flag<"-fno-common">, |
| 36 | HelpText<"Compile common globals like normal definitions">; |
| 37 | def no_implicit_float : Flag<"-no-implicit-float">, |
| 38 | HelpText<"Don't generate implicit floating point instructions (x86-only)">; |
| 39 | def fno_merge_all_constants : Flag<"-fno-merge-all-constants">, |
| 40 | HelpText<"Disallow merging of constants.">; |
| 41 | def O : Joined<"-O">, HelpText<"Optimization level">; |
| 42 | def Os : Flag<"-Os">, HelpText<"Optimize for size">; |