Home
last modified time | relevance | path

Searched refs:UnsafeFPMath (Results 1 – 25 of 31) sorted by relevance

12

/llvm-project-15.0.7/llvm/include/llvm/Target/
H A DTargetOptions.h127 : UnsafeFPMath(false), NoInfsFPMath(false), NoNaNsFPMath(false), in TargetOptions()
163 unsigned UnsafeFPMath : 1; variable
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DTargetOptionsImpl.cpp45 return !UnsafeFPMath && HonorSignDependentRoundingFPMathOption; in HonorSignDependentRoundingFPMath()
H A DCommandFlags.cpp518 Options.UnsafeFPMath = getEnableUnsafeFPMath(); in InitTargetOptionsFromCodeGenFlags()
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dchange-unsafe-fp-math.ll1 ; Check that we can enable/disable UnsafeFPMath via function attributes. An
/llvm-project-15.0.7/clang/unittests/Frontend/
H A DCompilerInvocationTest.cpp696 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 DTargetMachine.cpp59 RESET_OPTION(UnsafeFPMath, "unsafe-fp-math"); in resetTargetOptions()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMSubtarget.cpp247 (Options.UnsafeFPMath || isTargetDarwin())) in initSubtargetFeatures()
H A DARMAsmPrinter.cpp674 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 DAMDGPUInstructions.td123 def UnsafeFPMath : Predicate<"TM.Options.UnsafeFPMath">;
H A DAMDGPUTargetTransformInfo.cpp586 Options.UnsafeFPMath || in getArithmeticInstrCost()
H A DSIInstructions.td885 let OtherPredicates = [UnsafeFPMath] in {
901 } // End OtherPredicates = [UnsafeFPMath]
H A DAMDGPULegalizerInfo.cpp3758 bool AllowInaccurateRcp = MF.getTarget().Options.UnsafeFPMath || in legalizeFastUnsafeFDIV()
3807 bool AllowInaccurateRcp = MF.getTarget().Options.UnsafeFPMath || in legalizeFastUnsafeFDIV64()
H A DSIISelLowering.cpp8857 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 DBackendUtil.cpp394 Options.UnsafeFPMath = LangOpts.UnsafeFPMath; in initTargetOptions()
H A DCGCall.cpp1863 if (LangOpts.UnsafeFPMath) in getDefaultFunctionAttributes()
/llvm-project-15.0.7/clang/lib/Basic/Targets/
H A DAArch64.cpp306 if (Opts.UnsafeFPMath) in getTargetDefines()
H A DARM.cpp905 if (Opts.UnsafeFPMath) in getTargetDefines()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DAttributes.td319 def UnsafeFPMath : StrBoolAttr<"unsafe-fp-math">;
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DLangOptions.def208 COMPATIBLE_LANGOPT(UnsafeFPMath , 1, 0, "Unsafe Floating Point Math")
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp13995 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 DNVPTXISelLowering.cpp97 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 DCombinerHelper.cpp5044 !(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 DPPCISelLowering.cpp425 !(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 DPPCGCodeGeneration.cpp2372 Options.UnsafeFPMath = FastMath; in createKernelASM()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64InstrInfo.cpp4829 return Options.UnsafeFPMath || in isCombineInstrCandidateFP()
4912 return Inst.getParent()->getParent()->getTarget().Options.UnsafeFPMath; in isAssociativeAndCommutative()

12