LEFT | RIGHT |
1 //===-- llvm/Target/TargetOptions.h - Target Options ------------*- C++ -*-===// | 1 //===-- llvm/Target/TargetOptions.h - Target Options ------------*- C++ -*-===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // This file defines command line option flags that are shared across various | 10 // This file defines command line option flags that are shared across various |
11 // targets. | 11 // targets. |
12 // | 12 // |
13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
14 | 14 |
15 #ifndef LLVM_TARGET_TARGETOPTIONS_H | 15 #ifndef LLVM_TARGET_TARGETOPTIONS_H |
16 #define LLVM_TARGET_TARGETOPTIONS_H | 16 #define LLVM_TARGET_TARGETOPTIONS_H |
17 | 17 |
18 namespace llvm { | 18 namespace llvm { |
| 19 // Possible float ABI settings. Used with FloatABIType in TargetOptions.h. |
| 20 namespace FloatABI { |
| 21 enum ABIType { |
| 22 Default, // Target-specific (either soft of hard depending on triple, etc)
. |
| 23 Soft, // Soft float. |
| 24 Hard // Hard float. |
| 25 }; |
| 26 } |
| 27 ·· |
19 /// PrintMachineCode - This flag is enabled when the -print-machineinstrs | 28 /// PrintMachineCode - This flag is enabled when the -print-machineinstrs |
20 /// option is specified on the command line, and should enable debugging | 29 /// option is specified on the command line, and should enable debugging |
21 /// output from the code generator. | 30 /// output from the code generator. |
22 extern bool PrintMachineCode; | 31 extern bool PrintMachineCode; |
23 | 32 |
24 /// NoFramePointerElim - This flag is enabled when the -disable-fp-elim is | 33 /// NoFramePointerElim - This flag is enabled when the -disable-fp-elim is |
25 /// specified on the command line. If the target supports the frame pointer | 34 /// specified on the command line. If the target supports the frame pointer |
26 /// elimination optimization, this option should disable it. | 35 /// elimination optimization, this option should disable it. |
27 extern bool NoFramePointerElim; | 36 extern bool NoFramePointerElim; |
28 | 37 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 /// Default selects the target's default behavior. Soft selects the ABI for | 87 /// Default selects the target's default behavior. Soft selects the ABI for |
79 /// UseSoftFloat, but does not inidcate that FP hardware may not be used. | 88 /// UseSoftFloat, but does not inidcate that FP hardware may not be used. |
80 /// Such a combination is unfortunately popular (e.g. arm-apple-darwin). | 89 /// Such a combination is unfortunately popular (e.g. arm-apple-darwin). |
81 /// Hard presumes that the normal FP ABI is used. | 90 /// Hard presumes that the normal FP ABI is used. |
82 extern FloatABI::ABIType FloatABIType; | 91 extern FloatABI::ABIType FloatABIType; |
83 | 92 |
84 /// NoZerosInBSS - By default some codegens place zero-initialized data to | 93 /// NoZerosInBSS - By default some codegens place zero-initialized data to |
85 /// .bss section. This flag disables such behaviour (necessary, e.g. for | 94 /// .bss section. This flag disables such behaviour (necessary, e.g. for |
86 /// crt*.o compiling). | 95 /// crt*.o compiling). |
87 extern bool NoZerosInBSS; | 96 extern bool NoZerosInBSS; |
88 ·· | 97 |
89 /// ExceptionHandling - This flag indicates that exception information should | 98 /// DwarfExceptionHandling - This flag indicates that Dwarf exception |
90 /// be emitted. | 99 /// information should be emitted. |
91 extern bool ExceptionHandling; | 100 extern bool DwarfExceptionHandling; |
| 101 |
| 102 /// SjLjExceptionHandling - This flag indicates that SJLJ exception |
| 103 /// information should be emitted. |
| 104 extern bool SjLjExceptionHandling; |
92 | 105 |
93 /// JITEmitDebugInfo - This flag indicates that the JIT should try to emit | 106 /// JITEmitDebugInfo - This flag indicates that the JIT should try to emit |
94 /// debug information and notify a debugger about it. | 107 /// debug information and notify a debugger about it. |
95 extern bool JITEmitDebugInfo; | 108 extern bool JITEmitDebugInfo; |
96 | 109 |
97 /// UnwindTablesMandatory - This flag indicates that unwind tables should | 110 /// UnwindTablesMandatory - This flag indicates that unwind tables should |
98 /// be emitted for all functions. | 111 /// be emitted for all functions. |
99 extern bool UnwindTablesMandatory; | 112 extern bool UnwindTablesMandatory; |
100 | 113 |
101 /// PerformTailCallOpt - This flag is enabled when -tailcallopt is specified | 114 /// PerformTailCallOpt - This flag is enabled when -tailcallopt is specified |
(...skipping 17 matching lines...) Expand all Loading... |
119 /// compile time. | 132 /// compile time. |
120 extern bool EnableFastISel; | 133 extern bool EnableFastISel; |
121 ·· | 134 ·· |
122 /// StrongPHIElim - This flag enables more aggressive PHI elimination | 135 /// StrongPHIElim - This flag enables more aggressive PHI elimination |
123 /// wth earlier copy coalescing. | 136 /// wth earlier copy coalescing. |
124 extern bool StrongPHIElim; | 137 extern bool StrongPHIElim; |
125 | 138 |
126 } // End llvm namespace | 139 } // End llvm namespace |
127 | 140 |
128 #endif | 141 #endif |
LEFT | RIGHT |