LLVM API Documentation
#include <TargetOptions.h>

Definition at line 41 of file TargetOptions.h.
| llvm::TargetOptions::TargetOptions | ( | ) | [inline] |
Definition at line 43 of file TargetOptions.h.
| bool TargetOptions::DisableFramePointerElim | ( | const MachineFunction & | MF | ) | const |
DisableFramePointerElim - This returns true if frame pointer elimination optimization should be disabled for the given machine function.
Definition at line 21 of file TargetOptionsImpl.cpp.
References llvm::MachineFunction::getFrameInfo(), llvm::MachineFrameInfo::hasCalls(), NoFramePointerElim, and NoFramePointerElimNonLeaf.
Referenced by llvm::ARMBaseRegisterInfo::cannotEliminateFrame(), llvm::DwarfDebug::endFunction(), llvm::MipsFrameLowering::hasFP(), llvm::SparcFrameLowering::hasFP(), llvm::XCoreFrameLowering::hasFP(), llvm::MBlazeFrameLowering::hasFP(), llvm::ARMFrameLowering::hasFP(), llvm::SystemZFrameLowering::hasFP(), llvm::MSP430FrameLowering::hasFP(), llvm::X86FrameLowering::hasFP(), llvm::AArch64FrameLowering::hasFP(), and llvm::PPCFrameLowering::needsFP().
| StringRef TargetOptions::getTrapFunctionName | ( | ) | const |
getTrapFunctionName - If this returns a non-empty string, this means isel should lower Intrinsic::trap to a call to the specified function name instead of an ISD::TRAP node.
Definition at line 49 of file TargetOptionsImpl.cpp.
References TrapFuncName.
| bool TargetOptions::HonorSignDependentRoundingFPMath | ( | ) | const |
HonorSignDependentRoundingFPMath - Return true if the codegen must assume that the rounding mode of the FPU can change from its default.
Definition at line 42 of file TargetOptionsImpl.cpp.
References HonorSignDependentRoundingFPMathOption, and UnsafeFPMath.
Referenced by GetNegatedExpression().
| bool TargetOptions::LessPreciseFPMAD | ( | ) | const |
LessPreciseFPMAD - This flag return true when -enable-fp-mad option is specified on the command line. When this flag is off(default), the code generator is not allowed to generate mad (multiply add) if the result is "less precise" than doing those operations individually.
Definition at line 36 of file TargetOptionsImpl.cpp.
References LessPreciseFPMADOption, and UnsafeFPMath.
| bool TargetOptions::operator== | ( | const TargetOptions & | TO | ) |
Definition at line 53 of file TargetOptionsImpl.cpp.
References AllowFPOpFusion, ARE_EQUAL, DisableTailCalls, EnableFastISel, EnableSegmentedStacks, FloatABIType, GuaranteedTailCallOpt, HonorSignDependentRoundingFPMathOption, JITEmitDebugInfo, JITEmitDebugInfoToDisk, NoInfsFPMath, NoNaNsFPMath, NoZerosInBSS, PositionIndependentExecutable, RealignStack, SSPBufferSize, StackAlignmentOverride, TrapFuncName, UnsafeFPMath, UseInitArray, and UseSoftFloat.
AllowFPOpFusion - This flag is set by the -fuse-fp-ops=xxx option. This controls the creation of fused FP ops that store intermediate results in higher precision than IEEE allows (E.g. FMAs).
Fast mode - allows formation of fused FP ops whenever they're profitable. Standard mode - allow fusion only for 'blessed' FP ops. At present the only blessed op is the fmuladd intrinsic. In the future more blessed ops may be added. Strict mode - allow fusion only if/when it can be proven that the excess precision won't effect the result.
Note: This option only controls formation of fused ops by the optimizers. Fused operations that are explicitly specified (e.g. FMA via the llvm.fma.* intrinsic) will always be honored, regardless of the value of this option.
Definition at line 205 of file TargetOptions.h.
Referenced by operator==().
DisableTailCalls - This flag controls whether we will use tail calls. Disabling them may be useful to maintain a correct call stack.
Definition at line 145 of file TargetOptions.h.
Referenced by operator==().
EnableFastISel - This flag enables fast-path instruction selection which trades away generated code quality in favor of reducing compile time.
Definition at line 161 of file TargetOptions.h.
Referenced by LLVMCreateMCJITCompilerForModule(), operator==(), llvm::SelectionDAGISel::runOnMachineFunction(), and llvm::TargetMachine::setFastISel().
Definition at line 169 of file TargetOptions.h.
Referenced by llvm::X86FrameLowering::emitPrologue(), operator==(), and llvm::X86TargetLowering::resetOperationActions().
FloatABIType - This setting is set by -float-abi=xxx option is specfied on the command line. This setting may either be Default, Soft, or Hard. Default selects the target's default behavior. Soft selects the ABI for UseSoftFloat, but does not indicate that FP hardware may not be used. Such a combination is unfortunately popular (e.g. arm-apple-darwin). Hard presumes that the normal FP ABI is used.
Definition at line 187 of file TargetOptions.h.
Referenced by llvm::ARMBaseTargetMachine::ARMBaseTargetMachine(), operator==(), and llvm::X86TargetMachine::X86TargetMachine().
GuaranteedTailCallOpt - This flag is enabled when -tailcallopt is specified on the commandline. When the flag is on, participating targets will perform tail call optimization on all calls which use the fastcc calling convention and which satisfy certain target-independent criteria (being at the end of a function, having the same return type as their parent function, etc.), using an alternate ABI if necessary.
Definition at line 141 of file TargetOptions.h.
Referenced by CalculateParameterAndLinkageAreaSize(), llvm::PPCFrameLowering::eliminateCallFramePseudoInstr(), llvm::PPCFrameLowering::emitEpilogue(), llvm::AArch64TargetLowering::IsEligibleForTailCallOptimization(), llvm::isInTailCallPosition(), llvm::AArch64TargetLowering::LowerCall(), llvm::AArch64TargetLowering::LowerFormalArguments(), llvm::PPCFrameLowering::needsFP(), operator==(), llvm::PPCFrameLowering::processFunctionBeforeCalleeSavedScan(), and llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized().
HonorSignDependentRoundingFPMath - This returns true when the -enable-sign-dependent-rounding-fp-math is specified. If this returns false (the default), the code generator is allowed to assume that the rounding behavior is the default (round-to-zero for all floating point to integer conversions, and round-to-nearest for all other arithmetic truncations). If this is enabled (set to true), the code generator must assume that the rounding mode may dynamically change.
Definition at line 112 of file TargetOptions.h.
Referenced by HonorSignDependentRoundingFPMath(), and operator==().
JITEmitDebugInfo - This flag indicates that the JIT should try to emit debug information and notify a debugger about it.
Definition at line 128 of file TargetOptions.h.
Referenced by operator==().
JITEmitDebugInfoToDisk - This flag indicates that the JIT should write the object files generated by the JITEmitDebugInfo flag to disk. This flag is hidden and is only for debugging the debug info.
Definition at line 133 of file TargetOptions.h.
Referenced by operator==().
LessPreciseFPMAD - This flag is enabled when the -enable-fp-mad is specified on the command line. When this flag is off (the default), the code generator is not allowed to generate mad (multiply add) if the result is "less precise" than doing those operations individually.
Definition at line 82 of file TargetOptions.h.
Referenced by LessPreciseFPMAD().
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.
Definition at line 65 of file TargetOptions.h.
Referenced by DisableFramePointerElim(), and LLVMCreateMCJITCompilerForModule().
NoFramePointerElimNonLeaf - This flag is enabled when the -disable-non-leaf-fp-elim is specified on the command line. If the target supports the frame pointer elimination optimization, this option should disable it for non-leaf functions.
Definition at line 71 of file TargetOptions.h.
Referenced by DisableFramePointerElim().
NoInfsFPMath - This flag is enabled when the -enable-no-infs-fp-math flag is specified on the command line. When this flag is off (the default), the code generator is not allowed to assume the FP arithmetic arguments and results are never +-Infs.
Definition at line 97 of file TargetOptions.h.
Referenced by operator==().
NoNaNsFPMath - This flag is enabled when the -enable-no-nans-fp-math flag is specified on the command line. When this flag is off (the default), the code generator is not allowed to assume the FP arithmetic arguments and results are never NaNs.
Definition at line 103 of file TargetOptions.h.
Referenced by llvm::SelectionDAGBuilder::EmitBranchForMergedCondition(), llvm::MipsTargetLowering::MipsTargetLowering(), and operator==().
NoZerosInBSS - By default some codegens place zero-initialized data to .bss section. This flag disables such behaviour (necessary, e.g. for crt*.o compiling).
Definition at line 124 of file TargetOptions.h.
Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal(), and operator==().
PositionIndependentExecutable - This flag indicates whether the code will eventually be linked into a single executable, despite the PIC relocation model being in use. It's value is undefined (and irrelevant) if the relocation model is anything other than PIC.
Definition at line 167 of file TargetOptions.h.
Referenced by llvm::TargetMachine::getTLSModel(), and operator==().
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.
Definition at line 60 of file TargetOptions.h.
Referenced by llvm::TargetPassConfig::addMachinePasses(), and llvm::TargetMachine::shouldPrintMachineCode().
RealignStack - This flag indicates whether the stack should be automatically realigned, if needed.
Definition at line 152 of file TargetOptions.h.
Referenced by llvm::X86RegisterInfo::canRealignStack(), llvm::ARMBaseRegisterInfo::canRealignStack(), llvm::MachineFunction::MachineFunction(), and operator==().
SSPBufferSize - The minimum size of buffers that will receive stack smashing protection when -fstack-protection is used.
Definition at line 156 of file TargetOptions.h.
Referenced by operator==().
StackAlignmentOverride - Override default stack alignment for target.
Definition at line 148 of file TargetOptions.h.
Referenced by operator==().
| std::string llvm::TargetOptions::TrapFuncName |
getTrapFunctionName - If this returns a non-empty string, this means isel should lower Intrinsic::trap to a call to the specified function name instead of an ISD::TRAP node.
Definition at line 178 of file TargetOptions.h.
Referenced by getTrapFunctionName(), and operator==().
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. UnsafeFPMath implies LessPreciseFPMAD.
Definition at line 91 of file TargetOptions.h.
Referenced by canCombineSinCosLibcall(), GetNegatedExpression(), llvm::SelectionDAG::getNode(), HonorSignDependentRoundingFPMath(), isNegatibleForFree(), LessPreciseFPMAD(), operator==(), llvm::PPCTargetLowering::PerformDAGCombine(), PerformFMinFMaxCombine(), PerformSELECT_CCCombine(), PerformSELECTCombine(), llvm::PPCTargetLowering::PPCTargetLowering(), and llvm::X86TargetLowering::resetOperationActions().
UseInitArray - Use .init_array instead of .ctors for static constructors.
Definition at line 173 of file TargetOptions.h.
Referenced by llvm::MipsTargetObjectFile::Initialize(), and operator==().
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.
Definition at line 119 of file TargetOptions.h.
Referenced by llvm::ARMTargetLowering::ARMTargetLowering(), llvm::MipsSETargetLowering::MipsSETargetLowering(), operator==(), PerformSTORECombine(), and llvm::X86TargetLowering::resetOperationActions().