| /llvm-project-15.0.7/llvm/include/llvm/Target/ |
| H A D | TargetOptions.h | 127 : UnsafeFPMath(false), NoInfsFPMath(false), NoNaNsFPMath(false), in TargetOptions() 163 unsigned UnsafeFPMath : 1; variable
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | TargetOptionsImpl.cpp | 45 return !UnsafeFPMath && HonorSignDependentRoundingFPMathOption; in HonorSignDependentRoundingFPMath()
|
| H A D | CommandFlags.cpp | 518 Options.UnsafeFPMath = getEnableUnsafeFPMath(); in InitTargetOptionsFromCodeGenFlags()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | change-unsafe-fp-math.ll | 1 ; Check that we can enable/disable UnsafeFPMath via function attributes. An
|
| /llvm-project-15.0.7/clang/unittests/Frontend/ |
| H A D | CompilerInvocationTest.cpp | 696 ASSERT_FALSE(Invocation.getLangOpts()->UnsafeFPMath); in TEST_F() 717 ASSERT_TRUE(Invocation.getLangOpts()->UnsafeFPMath); in TEST_F() 738 ASSERT_TRUE(Invocation.getLangOpts()->UnsafeFPMath); in TEST_F() 758 ASSERT_TRUE(Invocation.getLangOpts()->UnsafeFPMath); in TEST_F()
|
| /llvm-project-15.0.7/llvm/lib/Target/ |
| H A D | TargetMachine.cpp | 59 RESET_OPTION(UnsafeFPMath, "unsafe-fp-math"); in resetTargetOptions()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMSubtarget.cpp | 247 (Options.UnsafeFPMath || isTargetDarwin())) in initSubtargetFeatures()
|
| H A D | ARMAsmPrinter.cpp | 674 else if (!TM.Options.UnsafeFPMath) in emitAttributes() 709 else if (!TM.Options.UnsafeFPMath) { in emitAttributes()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstructions.td | 123 def UnsafeFPMath : Predicate<"TM.Options.UnsafeFPMath">;
|
| H A D | AMDGPUTargetTransformInfo.cpp | 586 Options.UnsafeFPMath || in getArithmeticInstrCost()
|
| H A D | SIInstructions.td | 885 let OtherPredicates = [UnsafeFPMath] in { 901 } // End OtherPredicates = [UnsafeFPMath]
|
| H A D | AMDGPULegalizerInfo.cpp | 3758 bool AllowInaccurateRcp = MF.getTarget().Options.UnsafeFPMath || in legalizeFastUnsafeFDIV() 3807 bool AllowInaccurateRcp = MF.getTarget().Options.UnsafeFPMath || in legalizeFastUnsafeFDIV64()
|
| H A D | SIISelLowering.cpp | 8857 DAG.getTarget().Options.UnsafeFPMath; in lowerFastUnsafeFDIV64() 10792 if ((Options.AllowFPOpFusion == FPOpFusion::Fast || Options.UnsafeFPMath || in getFusedOpcode() 11215 if (Options.AllowFPOpFusion == FPOpFusion::Fast || Options.UnsafeFPMath || in performFMACombine()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | BackendUtil.cpp | 394 Options.UnsafeFPMath = LangOpts.UnsafeFPMath; in initTargetOptions()
|
| H A D | CGCall.cpp | 1863 if (LangOpts.UnsafeFPMath) in getDefaultFunctionAttributes()
|
| /llvm-project-15.0.7/clang/lib/Basic/Targets/ |
| H A D | AArch64.cpp | 306 if (Opts.UnsafeFPMath) in getTargetDefines()
|
| H A D | ARM.cpp | 905 if (Opts.UnsafeFPMath) in getTargetDefines()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Attributes.td | 319 def UnsafeFPMath : StrBoolAttr<"unsafe-fp-math">;
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | LangOptions.def | 208 COMPATIBLE_LANGOPT(UnsafeFPMath , 1, 0, "Unsafe Floating Point Math")
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 13995 Options.UnsafeFPMath || HasFMAD); in visitFADDForFMACombine() 14207 Options.UnsafeFPMath || HasFMAD); in visitFSUBForFMACombine() 14525 bool HasFMAD = Options.UnsafeFPMath && in visitFMULForFMADistributiveCombine() 14679 if (((Options.UnsafeFPMath && Options.NoSignedZerosFPMath) || in visitFADD() 14860 if (((Options.UnsafeFPMath && Options.NoSignedZerosFPMath) || in visitFSUB() 14915 if (Options.UnsafeFPMath || Flags.hasAllowReassociation()) { in visitFMUL() 15058 if (Options.UnsafeFPMath) { in visitFMA() 15152 bool UnsafeMath = DAG.getTarget().Options.UnsafeFPMath; in combineRepeatedFPDivisors() 15248 if (Options.UnsafeFPMath || Flags.hasAllowReciprocal()) { in visitFDIV() 15342 (Options.UnsafeFPMath || Flags.hasAllowReassociation())) in visitFDIV() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXISelLowering.cpp | 97 if (getTargetMachine().Options.UnsafeFPMath) in getDivF32Level() 110 return !getTargetMachine().Options.UnsafeFPMath; in usePrecSqrtF32() 4463 if (MF.getTarget().Options.UnsafeFPMath) in allowUnsafeFPMath()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CombinerHelper.cpp | 5044 !(Options.UnsafeFPMath || MI.getFlag(MachineInstr::MIFlag::FmReassoc))) in canCombineFMadOrFMA() 5057 Options.UnsafeFPMath || HasFMAD; in canCombineFMadOrFMA()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelLowering.cpp | 425 !(TM.Options.UnsafeFPMath && Subtarget.hasFRSQRTE() && in PPCTargetLowering() 430 !(TM.Options.UnsafeFPMath && Subtarget.hasFRSQRTES() && in PPCTargetLowering() 543 if (TM.Options.UnsafeFPMath) { in PPCTargetLowering() 998 if (TM.Options.UnsafeFPMath) { in PPCTargetLowering() 8552 !DAG.getTarget().Options.UnsafeFPMath) { in LowerINT_TO_FP() 16763 (Options.AllowFPOpFusion == FPOpFusion::Fast || Options.UnsafeFPMath)); in isProfitableToHoist()
|
| /llvm-project-15.0.7/polly/lib/CodeGen/ |
| H A D | PPCGCodeGeneration.cpp | 2372 Options.UnsafeFPMath = FastMath; in createKernelASM()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64InstrInfo.cpp | 4829 return Options.UnsafeFPMath || in isCombineInstrCandidateFP() 4912 return Inst.getParent()->getParent()->getTarget().Options.UnsafeFPMath; in isAssociativeAndCommutative()
|