Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(84)

Side by Side Diff: lib/Target/TargetMachine.cpp

Issue 91042: Implement LLVM JIT side of GDB JIT debugging interface (Closed) SVN Base: http://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: Synced with TOT. Created 2 months, 2 weeks ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 //===-- TargetMachine.cpp - General Target Information ---------------------==// 1 //===-- TargetMachine.cpp - General Target Information ---------------------==//
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 describes the general parts of a Target machine. 10 // This file describes the general parts of a Target machine.
(...skipping 17 matching lines...) Expand all
28 bool NoExcessFPPrecision; 28 bool NoExcessFPPrecision;
29 bool UnsafeFPMath; 29 bool UnsafeFPMath;
30 bool FiniteOnlyFPMathOption; 30 bool FiniteOnlyFPMathOption;
31 bool HonorSignDependentRoundingFPMathOption; 31 bool HonorSignDependentRoundingFPMathOption;
32 bool UseSoftFloat; 32 bool UseSoftFloat;
33 FloatABI::ABIType FloatABIType; 33 FloatABI::ABIType FloatABIType;
34 bool NoImplicitFloat; 34 bool NoImplicitFloat;
35 bool NoZerosInBSS; 35 bool NoZerosInBSS;
36 bool DwarfExceptionHandling; 36 bool DwarfExceptionHandling;
37 bool SjLjExceptionHandling; 37 bool SjLjExceptionHandling;
38 bool JITEmitDebugInfo;
38 bool UnwindTablesMandatory; 39 bool UnwindTablesMandatory;
39 Reloc::Model RelocationModel; 40 Reloc::Model RelocationModel;
40 CodeModel::Model CMModel; 41 CodeModel::Model CMModel;
41 bool PerformTailCallOpt; 42 bool PerformTailCallOpt;
42 unsigned StackAlignment; 43 unsigned StackAlignment;
43 bool RealignStack; 44 bool RealignStack;
44 bool DisableJumpTables; 45 bool DisableJumpTables;
45 bool StrongPHIElim; 46 bool StrongPHIElim;
46 bool AsmVerbosityDefault(false); 47 bool AsmVerbosityDefault(false);
47 } 48 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 static cl::opt<bool, true> 108 static cl::opt<bool, true>
108 EnableDwarfExceptionHandling("enable-eh", 109 EnableDwarfExceptionHandling("enable-eh",
109 cl::desc("Emit DWARF exception handling (default if target supports)"), 110 cl::desc("Emit DWARF exception handling (default if target supports)"),
110 cl::location(DwarfExceptionHandling), 111 cl::location(DwarfExceptionHandling),
111 cl::init(false)); 112 cl::init(false));
112 static cl::opt<bool, true> 113 static cl::opt<bool, true>
113 EnableSjLjExceptionHandling("enable-sjlj-eh", 114 EnableSjLjExceptionHandling("enable-sjlj-eh",
114 cl::desc("Emit SJLJ exception handling (default if target supports)"), 115 cl::desc("Emit SJLJ exception handling (default if target supports)"),
115 cl::location(SjLjExceptionHandling), 116 cl::location(SjLjExceptionHandling),
116 cl::init(false)); 117 cl::init(false));
118 // In debug builds, make this default to true.
119 #ifdef NDEBUG
120 #define EMIT_DEBUG false
121 #else
122 #define EMIT_DEBUG true
123 #endif
124 static cl::opt<bool, true>
125 EmitJitDebugInfo("jit-emit-debug",
126 cl::desc("Emit debug information to debugger"),
127 cl::location(JITEmitDebugInfo),
128 cl::init(EMIT_DEBUG));
129 #undef EMIT_DEBUG
117 static cl::opt<bool, true> 130 static cl::opt<bool, true>
118 EnableUnwindTables("unwind-tables", 131 EnableUnwindTables("unwind-tables",
119 cl::desc("Generate unwinding tables for all functions"), 132 cl::desc("Generate unwinding tables for all functions"),
120 cl::location(UnwindTablesMandatory), 133 cl::location(UnwindTablesMandatory),
121 cl::init(false)); 134 cl::init(false));
122 135
123 static cl::opt<llvm::Reloc::Model, true> 136 static cl::opt<llvm::Reloc::Model, true>
124 DefRelocationModel("relocation-model", 137 DefRelocationModel("relocation-model",
125 cl::desc("Choose relocation model"), 138 cl::desc("Choose relocation model"),
126 cl::location(RelocationModel), 139 cl::location(RelocationModel),
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 /// the code generator is not allowed to assume that FP arithmetic arguments 249 /// the code generator is not allowed to assume that FP arithmetic arguments
237 /// and results are never NaNs or +-Infs. 250 /// and results are never NaNs or +-Infs.
238 bool FiniteOnlyFPMath() { return UnsafeFPMath || FiniteOnlyFPMathOption; } 251 bool FiniteOnlyFPMath() { return UnsafeFPMath || FiniteOnlyFPMathOption; }
239 252
240 /// HonorSignDependentRoundingFPMath - Return true if the codegen must assume 253 /// HonorSignDependentRoundingFPMath - Return true if the codegen must assume
241 /// that the rounding mode of the FPU can change from its default. 254 /// that the rounding mode of the FPU can change from its default.
242 bool HonorSignDependentRoundingFPMath() { 255 bool HonorSignDependentRoundingFPMath() {
243 return !UnsafeFPMath && HonorSignDependentRoundingFPMathOption; 256 return !UnsafeFPMath && HonorSignDependentRoundingFPMathOption;
244 } 257 }
245 } 258 }
246
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r497