Home
last modified time | relevance | path

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

1234

/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/PowerPC/
Dfmf-propagation.ll4 …rpc64le | FileCheck %s --check-prefix=FMF
9 ; We're also checking debug output to verify that FMF is propagated to the newly created nodes.
10 ; The run with the global unsafe param tests the pre-FMF behavior using regular instructions/nodes.
22 ; FMF-LABEL: fmul_fadd_contract1:
23 ; FMF: # %bb.0:
24 ; FMF-NEXT: xsmaddasp 3, 1, 2
25 ; FMF-NEXT: fmr 1, 3
26 ; FMF-NEXT: blr
45 ; FMF-LABEL: fmul_fadd_contract2:
46 ; FMF: # %bb.0:
[all …]
/external/llvm/unittests/IR/
DIRBuilderTest.cpp144 FastMathFlags FMF; in TEST_F() local
145 Builder.setFastMathFlags(FMF); in TEST_F()
150 FMF.setUnsafeAlgebra(); in TEST_F()
151 Builder.setFastMathFlags(FMF); in TEST_F()
180 FMF.clear(); in TEST_F()
181 FMF.setAllowReciprocal(); in TEST_F()
182 Builder.setFastMathFlags(FMF); in TEST_F()
198 FMF.clear(); in TEST_F()
199 FMF.setAllowReciprocal(); in TEST_F()
200 Builder.setFastMathFlags(FMF); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DIRBuilderTest.cpp165 FastMathFlags FMF; in TEST_F() local
166 Builder.setFastMathFlags(FMF); in TEST_F()
192 FMF.setFast(); in TEST_F()
193 Builder.setFastMathFlags(FMF); in TEST_F()
226 FMF.clear(); in TEST_F()
227 FMF.setAllowReciprocal(); in TEST_F()
228 Builder.setFastMathFlags(FMF); in TEST_F()
244 FMF.clear(); in TEST_F()
245 FMF.setAllowReciprocal(); in TEST_F()
246 Builder.setFastMathFlags(FMF); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DInstructionSimplify.h89 Value *SimplifyFAddInst(Value *LHS, Value *RHS, FastMathFlags FMF,
93 Value *SimplifyFSubInst(Value *LHS, Value *RHS, FastMathFlags FMF,
97 Value *SimplifyFMulInst(Value *LHS, Value *RHS, FastMathFlags FMF,
110 Value *SimplifyFDivInst(Value *LHS, Value *RHS, FastMathFlags FMF,
120 Value *SimplifyFRemInst(Value *LHS, Value *RHS, FastMathFlags FMF,
150 FastMathFlags FMF, const SimplifyQuery &Q);
198 FastMathFlags FMF, const SimplifyQuery &Q);
DTargetTransformInfo.h846 ArrayRef<Value *> Args, FastMathFlags FMF,
853 ArrayRef<Type *> Tys, FastMathFlags FMF,
1137 ArrayRef<Type *> Tys, FastMathFlags FMF,
1140 ArrayRef<Value *> Args, FastMathFlags FMF, unsigned VF) = 0;
1483 FastMathFlags FMF, unsigned ScalarizationCostPassed) override { in getIntrinsicInstrCost() argument
1484 return Impl.getIntrinsicInstrCost(ID, RetTy, Tys, FMF, in getIntrinsicInstrCost()
1488 ArrayRef<Value *> Args, FastMathFlags FMF, unsigned VF) override { in getIntrinsicInstrCost() argument
1489 return Impl.getIntrinsicInstrCost(ID, RetTy, Args, FMF, VF); in getIntrinsicInstrCost()
/external/llvm/include/llvm/Analysis/
DInstructionSimplify.h69 Value *SimplifyFAddInst(Value *LHS, Value *RHS, FastMathFlags FMF,
78 Value *SimplifyFSubInst(Value *LHS, Value *RHS, FastMathFlags FMF,
87 Value *SimplifyFMulInst(Value *LHS, Value *RHS, FastMathFlags FMF,
120 Value *SimplifyFDivInst(Value *LHS, Value *RHS, FastMathFlags FMF,
145 Value *SimplifyFRemInst(Value *LHS, Value *RHS, FastMathFlags FMF,
215 FastMathFlags FMF, const DataLayout &DL,
299 const FastMathFlags &FMF, const DataLayout &DL,
DTargetTransformInfo.h567 ArrayRef<Type *> Tys, FastMathFlags FMF) const;
571 ArrayRef<Value *> Args, FastMathFlags FMF) const;
725 FastMathFlags FMF) = 0;
728 FastMathFlags FMF) = 0;
948 FastMathFlags FMF) override { in getIntrinsicInstrCost() argument
949 return Impl.getIntrinsicInstrCost(ID, RetTy, Tys, FMF); in getIntrinsicInstrCost()
953 FastMathFlags FMF) override { in getIntrinsicInstrCost() argument
954 return Impl.getIntrinsicInstrCost(ID, RetTy, Args, FMF); in getIntrinsicInstrCost()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/AsmParser/
DLLParser.h221 FastMathFlags FMF; in EatFastMathFlagsIfPresent() local
224 case lltok::kw_fast: FMF.setFast(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
225 case lltok::kw_nnan: FMF.setNoNaNs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
226 case lltok::kw_ninf: FMF.setNoInfs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
227 case lltok::kw_nsz: FMF.setNoSignedZeros(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
228 case lltok::kw_arcp: FMF.setAllowReciprocal(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
230 FMF.setAllowContract(true); in EatFastMathFlagsIfPresent()
233 case lltok::kw_reassoc: FMF.setAllowReassoc(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
234 case lltok::kw_afn: FMF.setApproxFunc(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
235 default: return FMF; in EatFastMathFlagsIfPresent()
[all …]
/external/llvm/lib/AsmParser/
DLLParser.h188 FastMathFlags FMF; in EatFastMathFlagsIfPresent() local
191 case lltok::kw_fast: FMF.setUnsafeAlgebra(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
192 case lltok::kw_nnan: FMF.setNoNaNs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
193 case lltok::kw_ninf: FMF.setNoInfs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
194 case lltok::kw_nsz: FMF.setNoSignedZeros(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
195 case lltok::kw_arcp: FMF.setAllowReciprocal(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
196 default: return FMF; in EatFastMathFlagsIfPresent()
198 return FMF; in EatFastMathFlagsIfPresent()
/external/llvm/include/llvm/IR/
DOperator.h256 void setFastMathFlags(FastMathFlags FMF) { in setFastMathFlags() argument
257 SubclassOptionalData |= FMF.Flags; in setFastMathFlags()
262 void copyFastMathFlags(FastMathFlags FMF) { in copyFastMathFlags() argument
263 SubclassOptionalData = FMF.Flags; in copyFastMathFlags()
DIRBuilder.h80 FastMathFlags FMF; variable
87 : Context(context), DefaultFPMathTag(FPMathTag), FMF(), in Context()
193 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags()
196 void clearFastMathFlags() { FMF.clear(); } in clearFastMathFlags()
202 void setFastMathFlags(FastMathFlags NewFMF) { FMF = NewFMF; } in setFastMathFlags()
234 FastMathFlags FMF; variable
243 : Builder(B), FMF(B.FMF), FPMathTag(B.DefaultFPMathTag) {} in FastMathFlagGuard()
246 Builder.FMF = FMF; in ~FastMathFlagGuard()
768 FastMathFlags FMF) const { in AddFPMathAttributes() argument
773 I->setFastMathFlags(FMF); in AddFPMathAttributes()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonTargetTransformInfo.cpp133 ArrayRef<Value*> Args, FastMathFlags FMF, unsigned VF) { in getIntrinsicInstrCost() argument
134 return BaseT::getIntrinsicInstrCost(ID, RetTy, Args, FMF, VF); in getIntrinsicInstrCost()
138 ArrayRef<Type*> Tys, FastMathFlags FMF, in getIntrinsicInstrCost() argument
144 return BaseT::getIntrinsicInstrCost(ID, RetTy, Tys, FMF, in getIntrinsicInstrCost()
DHexagonTargetTransformInfo.h107 ArrayRef<Value*> Args, FastMathFlags FMF, unsigned VF);
109 ArrayRef<Type*> Tys, FastMathFlags FMF,
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/Reassociate/
Dfast-ReassociateVector.ll18 ; Check that a*c+b*c is turned into (a+b)*c - minimum FMF subset version
50 ; Check that a*a*b+a*a*c is turned into a*(a*(b+c)) - minimum FMF subset version
85 ; Check that a*b+a*c+d is turned into a*(b+c)+d - minimum FMF subset version
129 ; Check 47*X + 47*X -> 94*X - minimum FMF subset version
154 ; Check X+X+X -> 3*X - minimum FMF subset version
180 ; Check 127*W+50*W -> 177*W - minimum FMF subset version
207 ; Check X*12*12 -> X*144 - minimum FMF subset version
235 ; Check (b+(a+1234))+-a -> b+1234 - minimum FMF subset version
268 ; Check -(-(z*40)*a) -> a*40*z - minimum FMF subset version
299 ; Check x*y+y*x -> x*y*2 - minimum FMF subset version
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp787 static Value *SimplifyFAddInst(Value *Op0, Value *Op1, FastMathFlags FMF, in SimplifyFAddInst() argument
803 (FMF.noSignedZeros() || CannotBeNegativeZero(Op0, Q.TLI))) in SimplifyFAddInst()
816 if ((FMF.noNaNs() || FSub->hasNoNaNs()) && in SimplifyFAddInst()
817 (FMF.noInfs() || FSub->hasNoInfs())) in SimplifyFAddInst()
826 static Value *SimplifyFSubInst(Value *Op0, Value *Op1, FastMathFlags FMF, in SimplifyFSubInst() argument
839 (FMF.noSignedZeros() || CannotBeNegativeZero(Op0, Q.TLI))) in SimplifyFSubInst()
848 if (FMF.noSignedZeros() && match(Op0, m_AnyZero()) && in SimplifyFSubInst()
853 if (FMF.noNaNs() && Op0 == Op1) in SimplifyFSubInst()
861 FastMathFlags FMF, in SimplifyFMulInst() argument
877 if (FMF.noNaNs() && FMF.noSignedZeros() && match(Op1, m_AnyZero())) in SimplifyFMulInst()
[all …]
DTargetTransformInfo.cpp361 FastMathFlags FMF) const { in getIntrinsicInstrCost()
362 int Cost = TTIImpl->getIntrinsicInstrCost(ID, RetTy, Tys, FMF); in getIntrinsicInstrCost()
369 FastMathFlags FMF) const { in getIntrinsicInstrCost()
370 int Cost = TTIImpl->getIntrinsicInstrCost(ID, RetTy, Args, FMF); in getIntrinsicInstrCost()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DOperator.h299 void setFastMathFlags(FastMathFlags FMF) { in setFastMathFlags() argument
300 SubclassOptionalData |= FMF.Flags; in setFastMathFlags()
305 void copyFastMathFlags(FastMathFlags FMF) { in copyFastMathFlags() argument
306 SubclassOptionalData = FMF.Flags; in copyFastMathFlags()
DIRBuilder.h98 FastMathFlags FMF; variable
211 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags()
214 void clearFastMathFlags() { FMF.clear(); } in clearFastMathFlags()
220 void setFastMathFlags(FastMathFlags NewFMF) { FMF = NewFMF; } in setFastMathFlags()
252 FastMathFlags FMF; variable
257 : Builder(B), FMF(B.FMF), FPMathTag(B.DefaultFPMathTag) {} in FastMathFlagGuard()
263 Builder.FMF = FMF; in ~FastMathFlagGuard()
945 FastMathFlags FMF) const { in setFPAttrs() argument
950 I->setFastMathFlags(FMF); in setFPAttrs()
1164 Instruction *I = setFPAttrs(BinaryOperator::CreateFAdd(L, R), FPMD, FMF);
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DInstructionSimplify.cpp3473 FastMathFlags FMF, const SimplifyQuery &Q, in SimplifyFCmpInst() argument
3495 if (FMF.noNaNs()) { in SimplifyFCmpInst()
3608 FastMathFlags FMF, const SimplifyQuery &Q) { in SimplifyFCmpInst() argument
3609 return ::SimplifyFCmpInst(Predicate, LHS, RHS, FMF, Q, RecursionLimit); in SimplifyFCmpInst()
4334 static Value *SimplifyFAddInst(Value *Op0, Value *Op1, FastMathFlags FMF, in SimplifyFAddInst() argument
4348 (FMF.noSignedZeros() || CannotBeNegativeZero(Op0, Q.TLI))) in SimplifyFAddInst()
4358 if (FMF.noNaNs() && (match(Op0, m_FSub(m_AnyZeroFP(), m_Specific(Op1))) || in SimplifyFAddInst()
4367 static Value *SimplifyFSubInst(Value *Op0, Value *Op1, FastMathFlags FMF, in SimplifyFSubInst() argument
4381 (FMF.noSignedZeros() || CannotBeNegativeZero(Op0, Q.TLI))) in SimplifyFSubInst()
4391 if (FMF.noSignedZeros() && match(Op0, m_AnyZeroFP()) && in SimplifyFSubInst()
[all …]
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.h84 ArrayRef<Type *> Tys, FastMathFlags FMF);
86 ArrayRef<Value *> Args, FastMathFlags FMF);
/external/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h674 ArrayRef<Value *> Args, FastMathFlags FMF) { in getIntrinsicInstrCost() argument
681 FMF); in getIntrinsicInstrCost()
707 ArrayRef<Type *> Tys, FastMathFlags FMF) { in getIntrinsicInstrCost() argument
735 IID, ScalarRetTy, ScalarTys, FMF); in getIntrinsicInstrCost()
770 if (FMF.noNaNs()) in getIntrinsicInstrCost()
775 if (FMF.noNaNs()) in getIntrinsicInstrCost()
883 IID, RetTy->getScalarType(), ScalarTys, FMF); in getIntrinsicInstrCost()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86TargetTransformInfo.h90 ArrayRef<Type *> Tys, FastMathFlags FMF,
93 ArrayRef<Value *> Args, FastMathFlags FMF,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUCodeGenPrepare.cpp429 FastMathFlags FMF = FPOp->getFastMathFlags(); in visitFDiv() local
430 bool UnsafeDiv = HasUnsafeFPMath || FMF.isFast() || in visitFDiv()
431 FMF.allowReciprocal(); in visitFDiv()
438 Builder.setFastMathFlags(FMF); in visitFDiv()
617 FastMathFlags FMF; in expandDivRem32() local
618 FMF.setFast(); in expandDivRem32()
619 Builder.setFastMathFlags(FMF); in expandDivRem32()
/external/llvm/lib/IR/
DInstruction.cpp164 void Instruction::setFastMathFlags(FastMathFlags FMF) { in setFastMathFlags() argument
166 cast<FPMathOperator>(this)->setFastMathFlags(FMF); in setFastMathFlags()
169 void Instruction::copyFastMathFlags(FastMathFlags FMF) { in copyFastMathFlags() argument
171 cast<FPMathOperator>(this)->copyFastMathFlags(FMF); in copyFastMathFlags()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h900 ArrayRef<Value *> Args, FastMathFlags FMF,
930 getIntrinsicInstrCost(IID, RetTy, Types, FMF, ScalarizationCost);
966 return getIntrinsicInstrCost(IID, RetTy, Args[0]->getType(), FMF);
975 Intrinsic::ID IID, Type *RetTy, ArrayRef<Type *> Tys, FastMathFlags FMF,
1006 IID, ScalarRetTy, ScalarTys, FMF);
1041 if (FMF.noNaNs())
1046 if (FMF.noNaNs())
1191 IID, RetTy->getScalarType(), ScalarTys, FMF);

1234