2004-07-11 04:15:52 +00:00
|
|
|
//===-- llvm/Target/TargetOptions.h - Target Options ------------*- C++ -*-===//
|
2005-04-21 20:59:05 +00:00
|
|
|
//
|
2004-07-11 04:15:52 +00:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
2005-04-21 20:59:05 +00:00
|
|
|
//
|
2004-07-11 04:15:52 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file defines command line option flags that are shared across various
|
|
|
|
// targets.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_TARGET_TARGETOPTIONS_H
|
|
|
|
#define LLVM_TARGET_TARGETOPTIONS_H
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
/// PrintMachineCode - This flag is enabled when the -print-machineinstrs
|
|
|
|
/// option is specified on the command line, and should enable debugging
|
|
|
|
/// output from the code generator.
|
|
|
|
extern bool PrintMachineCode;
|
|
|
|
|
|
|
|
/// NoFramePointerElim - This flag is enabled when the -disable-fp-elim is
|
|
|
|
/// specified on the command line. If the target supports the frame pointer
|
|
|
|
/// elimination optimization, this option should disable it.
|
|
|
|
extern bool NoFramePointerElim;
|
2005-01-15 06:00:32 +00:00
|
|
|
|
|
|
|
/// NoExcessFPPrecision - This flag is enabled when the
|
|
|
|
/// -disable-excess-fp-precision flag is specified on the command line. When
|
|
|
|
/// this flag is off (the default), the code generator is allowed to produce
|
|
|
|
/// results that are "more precise" than IEEE allows. This includes use of
|
|
|
|
/// FMA-like operations and use of the X86 FP registers without rounding all
|
|
|
|
/// over the place.
|
|
|
|
extern bool NoExcessFPPrecision;
|
|
|
|
|
2005-04-30 04:09:52 +00:00
|
|
|
/// UnsafeFPMath - This flag is enabled when the
|
|
|
|
/// -enable-unsafe-fp-math flag is specified on the command line. When
|
|
|
|
/// this flag is off (the default), the code generator is not allowed to
|
|
|
|
/// produce results that are "less precise" than IEEE allows. This includes
|
|
|
|
/// use of X86 instructions like FSIN and FCOS instead of libcalls.
|
2006-05-23 18:18:46 +00:00
|
|
|
/// UnsafeFPMath implies FiniteOnlyFPMath.
|
2005-04-30 04:09:52 +00:00
|
|
|
extern bool UnsafeFPMath;
|
2006-05-23 06:39:12 +00:00
|
|
|
|
2006-05-23 18:18:46 +00:00
|
|
|
/// FiniteOnlyFPMath - This returns true when the -enable-finite-only-fp-math
|
|
|
|
/// option is specified on the command line. If this returns false (default),
|
2006-05-23 06:39:12 +00:00
|
|
|
/// the code generator is not allowed to assume that FP arithmetic arguments
|
2006-05-23 18:18:46 +00:00
|
|
|
/// and results are never NaNs or +-Infs.
|
|
|
|
extern bool FiniteOnlyFPMathOption;
|
|
|
|
extern bool FiniteOnlyFPMath();
|
2006-12-09 02:41:30 +00:00
|
|
|
|
|
|
|
/// UseSoftFloat - This flag is enabled when the -soft-float flag is specified
|
|
|
|
/// on the command line. When this flag is on, the code generator will
|
|
|
|
/// generate libcalls to the software floating point library instead of
|
|
|
|
/// target FP instructions.
|
|
|
|
extern bool UseSoftFloat;
|
2007-01-17 10:33:08 +00:00
|
|
|
|
2007-01-17 10:40:54 +00:00
|
|
|
/// NoZerosInBSS - By default some codegens place zero-initialized data to
|
|
|
|
/// .bss section. This flag disables such behaviour (necessary, e.g. for
|
|
|
|
/// crt*.o compiling).
|
2007-01-17 10:33:08 +00:00
|
|
|
extern bool NoZerosInBSS;
|
2007-01-29 20:48:32 +00:00
|
|
|
|
|
|
|
/// ExceptionHandling - This flag indicates that exception information should
|
|
|
|
/// be emitted.
|
|
|
|
extern bool ExceptionHandling;
|
|
|
|
|
2004-07-11 04:15:52 +00:00
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
#endif
|