Home
last modified time | relevance | path

Searched refs:FMF (Results 1 – 25 of 27) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h148 Value *SimplifyFNegInst(Value *Op, FastMathFlags FMF,
160 Value *SimplifyFAddInst(Value *LHS, Value *RHS, FastMathFlags FMF,
164 Value *SimplifyFSubInst(Value *LHS, Value *RHS, FastMathFlags FMF,
168 Value *SimplifyFMulInst(Value *LHS, Value *RHS, FastMathFlags FMF,
175 Value *SimplifyFMAFMul(Value *LHS, Value *RHS, FastMathFlags FMF,
188 Value *SimplifyFDivInst(Value *LHS, Value *RHS, FastMathFlags FMF,
198 Value *SimplifyFRemInst(Value *LHS, Value *RHS, FastMathFlags FMF,
228 FastMathFlags FMF, const SimplifyQuery &Q);
274 Value *SimplifyUnOp(unsigned Opcode, Value *Op, FastMathFlags FMF,
284 FastMathFlags FMF, const SimplifyQuery &Q);
H A DIVDescriptors.h71 FastMathFlags FMF, Instruction *ExactFP, Type *RT, in RecurrenceDescriptor() argument
74 : StartValue(Start), LoopExitInstr(Exit), Kind(K), FMF(FMF), in RecurrenceDescriptor()
119 InstDesc &Prev, FastMathFlags FMF);
142 FastMathFlags FMF);
152 FastMathFlags FMF,
184 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags()
251 FastMathFlags FMF; variable
H A DTargetTransformInfo.h123 FastMathFlags FMF; variable
150 FastMathFlags getFlags() const { return FMF; } in getFlags()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DIVDescriptors.cpp287 FastMathFlags FMF = FastMathFlags::getFast(); in AddReductionVar() local
344 FMF &= CurFMF; in AddReductionVar()
500 RecurrenceDescriptor RD(RdxStart, ExitInstruction, Kind, FMF, in AddReductionVar()
596 InstDesc &Prev, FastMathFlags FMF) { in isRecurrenceInstr() argument
628 (FMF.noNaNs() && FMF.noSignedZeros() && isFPMinMaxRecurrenceKind(Kind))) in isRecurrenceInstr()
654 FastMathFlags FMF; in isReductionPHI() local
655 FMF.setNoNaNs( in isReductionPHI()
657 FMF.setNoSignedZeros( in isReductionPHI()
660 if (AddReductionVar(Phi, RecurKind::Add, TheLoop, FMF, RedDes, DB, AC, DT)) { in isReductionPHI()
664 if (AddReductionVar(Phi, RecurKind::Mul, TheLoop, FMF, RedDes, DB, AC, DT)) { in isReductionPHI()
[all …]
H A DInstructionSimplify.cpp3650 FastMathFlags FMF, const SimplifyQuery &Q, in SimplifyFCmpInst() argument
3673 if (FMF.noNaNs() || in SimplifyFCmpInst()
3815 if ((FMF.noNaNs() || isKnownNeverNaN(LHS, Q.TLI)) && in SimplifyFCmpInst()
3847 FastMathFlags FMF, const SimplifyQuery &Q) { in SimplifyFCmpInst() argument
3848 return ::SimplifyFCmpInst(Predicate, LHS, RHS, FMF, Q, RecursionLimit); in SimplifyFCmpInst()
4770 static Value *simplifyFNegInst(Value *Op, FastMathFlags FMF, in simplifyFNegInst() argument
4783 Value *llvm::SimplifyFNegInst(Value *Op, FastMathFlags FMF, in SimplifyFNegInst() argument
4785 return ::simplifyFNegInst(Op, FMF, Q, RecursionLimit); in SimplifyFNegInst()
4802 FastMathFlags FMF, in simplifyFPOp() argument
4812 if (FMF.noNaNs() && (IsNan || IsUndef)) in simplifyFPOp()
[all …]
H A DValueTracking.cpp4893 auto FMF = FP->getFastMathFlags(); in canCreateUndefOrPoison() local
4894 if (FMF.noNaNs() || FMF.noInfs()) in canCreateUndefOrPoison()
5467 static bool isKnownNonNaN(const Value *V, FastMathFlags FMF) { in isKnownNonNaN() argument
5468 if (FMF.noNaNs()) in isKnownNonNaN()
5817 FastMathFlags FMF, in matchSelectPattern() argument
5856 if (!FMF.noSignedZeros() && !isKnownNonZero(CmpLHS) && in matchSelectPattern()
5870 bool LHSSafe = isKnownNonNaN(CmpLHS, FMF); in matchSelectPattern()
5871 bool RHSSafe = isKnownNonNaN(CmpRHS, FMF); in matchSelectPattern()
5992 (!FMF.noSignedZeros() && !isKnownNonZero(CmpLHS) && in matchSelectPattern()
6131 FastMathFlags FMF; in matchDecomposedSelectPattern() local
[all …]
H A DTargetTransformInfo.cpp63 FMF = FPMO->getFastMathFlags(); in IntrinsicCostAttributes()
75 : II(I), RetTy(RTy), IID(Id), FMF(Flags), ScalarizationCost(ScalarCost) { in IntrinsicCostAttributes()
95 : II(I), RetTy(RTy), IID(Id), FMF(Flags), ScalarizationCost(ScalarCost) { in IntrinsicCostAttributes()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DExpandReductions.cpp108 FastMathFlags FMF = in expandReductions() local
116 Builder.setFastMathFlags(FMF); in expandReductions()
125 if (!FMF.allowReassoc()) in expandReductions()
162 !FMF.noNaNs()) in expandReductions()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/AsmParser/
H A DLLParser.h207 FastMathFlags FMF; in EatFastMathFlagsIfPresent() local
210 case lltok::kw_fast: FMF.setFast(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
211 case lltok::kw_nnan: FMF.setNoNaNs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
212 case lltok::kw_ninf: FMF.setNoInfs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
213 case lltok::kw_nsz: FMF.setNoSignedZeros(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
214 case lltok::kw_arcp: FMF.setAllowReciprocal(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
216 FMF.setAllowContract(true); in EatFastMathFlagsIfPresent()
219 case lltok::kw_reassoc: FMF.setAllowReassoc(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
220 case lltok::kw_afn: FMF.setApproxFunc(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
221 default: return FMF; in EatFastMathFlagsIfPresent()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DOperator.h192 FastMathFlags FMF; in getFast() local
193 FMF.setFast(); in getFast()
194 return FMF; in getFast()
308 void setFastMathFlags(FastMathFlags FMF) { in setFastMathFlags() argument
309 SubclassOptionalData |= FMF.Flags; in setFastMathFlags()
314 void copyFastMathFlags(FastMathFlags FMF) { in copyFastMathFlags() argument
315 SubclassOptionalData = FMF.Flags; in copyFastMathFlags()
H A DIRBuilder.h127 FastMathFlags FMF; variable
294 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags()
296 FastMathFlags &getFastMathFlags() { return FMF; } in getFastMathFlags()
299 void clearFastMathFlags() { FMF.clear(); } in clearFastMathFlags()
305 void setFastMathFlags(FastMathFlags NewFMF) { FMF = NewFMF; } in setFastMathFlags()
391 FastMathFlags FMF; variable
399 : Builder(B), FMF(B.FMF), FPMathTag(B.DefaultFPMathTag), in FastMathFlagGuard()
408 Builder.FMF = FMF; in ~FastMathFlagGuard()
1135 FastMathFlags FMF) const { in setFPAttrs() argument
1140 I->setFastMathFlags(FMF); in setFPAttrs()
[all …]
H A DInstruction.h435 void setFastMathFlags(FastMathFlags FMF);
440 void copyFastMathFlags(FastMathFlags FMF);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DInstruction.cpp209 void Instruction::setFastMathFlags(FastMathFlags FMF) { in setFastMathFlags() argument
211 cast<FPMathOperator>(this)->setFastMathFlags(FMF); in setFastMathFlags()
214 void Instruction::copyFastMathFlags(FastMathFlags FMF) { in copyFastMathFlags() argument
216 cast<FPMathOperator>(this)->copyFastMathFlags(FMF); in copyFastMathFlags()
H A DIRBuilder.cpp818 FastMathFlags UseFMF = FMF; in CreateConstrainedFPBinOp()
851 FastMathFlags UseFMF = FMF; in CreateConstrainedFPCast()
893 return Insert(setFPAttrs(new FCmpInst(P, LHS, RHS), FPMathTag, FMF), Name); in CreateFCmpHelper()
948 setFPAttrs(Sel, nullptr /* MDNode* */, FMF); in CreateSelect()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp1170 FastMathFlags FMF; in getDecodedFastMathFlags() local
1172 FMF.setFast(); in getDecodedFastMathFlags()
1174 FMF.setAllowReassoc(); in getDecodedFastMathFlags()
1176 FMF.setNoNaNs(); in getDecodedFastMathFlags()
1178 FMF.setNoInfs(); in getDecodedFastMathFlags()
1180 FMF.setNoSignedZeros(); in getDecodedFastMathFlags()
1182 FMF.setAllowReciprocal(); in getDecodedFastMathFlags()
1184 FMF.setAllowContract(true); in getDecodedFastMathFlags()
1186 FMF.setApproxFunc(); in getDecodedFastMathFlags()
1187 return FMF; in getDecodedFastMathFlags()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp755 FastMathFlags FMF = FPOp->getFastMathFlags(); in visitFDiv() local
756 const bool AllowInaccurateRcp = HasUnsafeFPMath || FMF.approxFunc(); in visitFDiv()
765 Builder.setFastMathFlags(FMF); in visitFDiv()
1020 FastMathFlags FMF; in expandDivRem32() local
1021 FMF.setFast(); in expandDivRem32()
1022 Builder.setFastMathFlags(FMF); in expandDivRem32()
H A DAMDGPUTargetTransformInfo.cpp756 FastMathFlags FMF = ICA.getFlags(); in getIntrinsicInstrCost() local
772 IntrinsicCostAttributes Attrs(ICA.getID(), RetTy, ICA.getArgTypes(), FMF, I, in getIntrinsicInstrCost()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h1304 FastMathFlags FMF = ICA.getFlags(); in getIntrinsicInstrCost() local
1381 IntrinsicCostAttributes Attrs(IID, RetTy, Args[0]->getType(), FMF, I, 1); in getIntrinsicInstrCost()
1387 IID, RetTy, {Args[0]->getType(), Args[1]->getType()}, FMF, I, 1); in getIntrinsicInstrCost()
1448 IntrinsicCostAttributes Attrs(IID, RetTy, ICA.getArgTypes(), FMF, I, in getIntrinsicInstrCost()
1463 FastMathFlags FMF = ICA.getFlags(); in getTypeBasedIntrinsicInstrCost() local
1517 IntrinsicCostAttributes ScalarAttrs(IID, ScalarRetTy, ScalarTys, FMF); in getTypeBasedIntrinsicInstrCost()
1699 IntrinsicCostAttributes Attrs(OverflowOp, OpTy, {RetTy, RetTy}, FMF, in getTypeBasedIntrinsicInstrCost()
1720 IntrinsicCostAttributes Attrs(OverflowOp, OpTy, {RetTy, RetTy}, FMF, in getTypeBasedIntrinsicInstrCost()
1921 IntrinsicCostAttributes Attrs(IID, RetTy->getScalarType(), ScalarTys, FMF); in getTypeBasedIntrinsicInstrCost()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCodeGenFunction.cpp124 llvm::FastMathFlags FMF; in SetFastMathFlags() local
125 FMF.setAllowReassoc(FPFeatures.getAllowFPReassociate()); in SetFastMathFlags()
126 FMF.setNoNaNs(FPFeatures.getNoHonorNaNs()); in SetFastMathFlags()
127 FMF.setNoInfs(FPFeatures.getNoHonorInfs()); in SetFastMathFlags()
128 FMF.setNoSignedZeros(FPFeatures.getNoSignedZero()); in SetFastMathFlags()
129 FMF.setAllowReciprocal(FPFeatures.getAllowReciprocal()); in SetFastMathFlags()
130 FMF.setApproxFunc(FPFeatures.getAllowApproxFunc()); in SetFastMathFlags()
131 FMF.setAllowContract(FPFeatures.allowFPContractAcrossStatement()); in SetFastMathFlags()
132 Builder.setFastMathFlags(FMF); in SetFastMathFlags()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp301 FastMathFlags FMF = I.getFastMathFlags(); in ClearSubclassDataAfterReassociation() local
303 I.setFastMathFlags(FMF); in ClearSubclassDataAfterReassociation()
830 FastMathFlags FMF; in SimplifySelectsFeedingBinaryOp() local
833 FMF = I.getFastMathFlags(); in SimplifySelectsFeedingBinaryOp()
834 Builder.setFastMathFlags(FMF); in SimplifySelectsFeedingBinaryOp()
844 True = SimplifyBinOp(Opcode, B, E, FMF, Q); in SimplifySelectsFeedingBinaryOp()
845 False = SimplifyBinOp(Opcode, C, F, FMF, Q); in SimplifySelectsFeedingBinaryOp()
856 True = SimplifyBinOp(Opcode, B, RHS, FMF, Q); in SimplifySelectsFeedingBinaryOp()
857 False = SimplifyBinOp(Opcode, C, RHS, FMF, Q); in SimplifySelectsFeedingBinaryOp()
861 True = SimplifyBinOp(Opcode, LHS, E, FMF, Q); in SimplifySelectsFeedingBinaryOp()
[all …]
H A DInstCombineSelect.cpp2958 auto FMF = in visitSelectInst() local
2960 Builder.setFastMathFlags(FMF); in visitSelectInst()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/AsmParser/
H A DLLParser.cpp6188 FastMathFlags FMF = EatFastMathFlagsIfPresent(); in parseInstruction() local
6192 if (FMF.any()) in parseInstruction()
6193 Inst->setFastMathFlags(FMF); in parseInstruction()
6217 FastMathFlags FMF = EatFastMathFlagsIfPresent(); in parseInstruction() local
6221 if (FMF.any()) in parseInstruction()
6222 Inst->setFastMathFlags(FMF); in parseInstruction()
6249 FastMathFlags FMF = EatFastMathFlagsIfPresent(); in parseInstruction() local
6253 if (FMF.any()) in parseInstruction()
6254 Inst->setFastMathFlags(FMF); in parseInstruction()
6275 FastMathFlags FMF = EatFastMathFlagsIfPresent(); in parseInstruction() local
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DPartialInlining.cpp885 FastMathFlags FMF; in computeBBInlineCost() local
890 FMF = FPMO->getFastMathFlags(); in computeBBInlineCost()
892 IntrinsicCostAttributes ICA(IID, II->getType(), Tys, FMF); in computeBBInlineCost()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1836 FastMathFlags FMF = CI->getFastMathFlags(); in optimizeFMinFMax() local
1837 FMF.setNoSignedZeros(); in optimizeFMinFMax()
1838 B.setFastMathFlags(FMF); in optimizeFMinFMax()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp3517 FastMathFlags FMF; in getVectorCallCosts() local
3519 FMF = FPCI->getFastMathFlags(); in getVectorCallCosts()
3521 IntrinsicCostAttributes CostAttrs(ID, VecTy, Arguments, VecTys, FMF, in getVectorCallCosts()

12