blob: 5b64199e0213912371bab3d3146748514204a8de [file] [log] [blame]
Daniel Dunbar8adfcff2009-11-19 07:19:04 +00001//===--- 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.
15include "OptParser.td"
16
17// Target Options
18
19def target_abi : Separate<"-target-abi">,
20 HelpText<"Target a particular ABI type">;
Daniel Dunbar31db76c2009-11-20 01:46:44 +000021def mcpu : Separate<"-mcpu">,
Daniel Dunbar8adfcff2009-11-19 07:19:04 +000022 HelpText<"Target a specific cpu type (-mcpu=help for details)">;
Daniel Dunbar31db76c2009-11-20 01:46:44 +000023def target_feature : Separate<"-target-feature">,
Daniel Dunbar8adfcff2009-11-19 07:19:04 +000024 HelpText<"Target specific attributes">;
Daniel Dunbar31db76c2009-11-20 01:46:44 +000025def triple : Separate<"-triple">,
Daniel Dunbar8adfcff2009-11-19 07:19:04 +000026 HelpText<"Specify target triple (e.g. i686-apple-darwin9)">;
Daniel Dunbar50a44872009-11-20 17:23:30 +000027
28// CodeGen Options
29
30def disable_llvm_optzns : Flag<"-disable-llvm-optzns">,
31 HelpText<"Don't run LLVM optimization passes">;
32def disable_red_zone : Flag<"-disable-red-zone">,
33 HelpText<"Do not emit code that uses the red zone.">;
34def g : Flag<"-g">, HelpText<"Generate source level debug information">;
35def fno_common : Flag<"-fno-common">,
36 HelpText<"Compile common globals like normal definitions">;
37def no_implicit_float : Flag<"-no-implicit-float">,
38 HelpText<"Don't generate implicit floating point instructions (x86-only)">;
39def fno_merge_all_constants : Flag<"-fno-merge-all-constants">,
40 HelpText<"Disallow merging of constants.">;
41def O : Joined<"-O">, HelpText<"Optimization level">;
42def Os : Flag<"-Os">, HelpText<"Optimize for size">;