Home
last modified time | relevance | path

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

/NextBSD/contrib/llvm/include/llvm/Analysis/
HDInstructionSimplify.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,
298 const FastMathFlags &FMF, const DataLayout &DL,
/NextBSD/contrib/llvm/lib/AsmParser/
HDLLParser.h176 FastMathFlags FMF; in EatFastMathFlagsIfPresent() local
179 case lltok::kw_fast: FMF.setUnsafeAlgebra(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
180 case lltok::kw_nnan: FMF.setNoNaNs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
181 case lltok::kw_ninf: FMF.setNoInfs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
182 case lltok::kw_nsz: FMF.setNoSignedZeros(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
183 case lltok::kw_arcp: FMF.setAllowReciprocal(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
184 default: return FMF; in EatFastMathFlagsIfPresent()
186 return FMF; in EatFastMathFlagsIfPresent()
HDLLParser.cpp4521 FastMathFlags FMF = EatFastMathFlagsIfPresent(); in ParseInstruction() local
4525 if (FMF.any()) in ParseInstruction()
4526 Inst->setFastMathFlags(FMF); in ParseInstruction()
4548 FastMathFlags FMF = EatFastMathFlagsIfPresent(); in ParseInstruction() local
4552 if (FMF.any()) in ParseInstruction()
4553 Inst->setFastMathFlags(FMF); in ParseInstruction()
/NextBSD/contrib/llvm/include/llvm/IR/
HDOperator.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()
HDIRBuilder.h60 FastMathFlags FMF; variable
64 : Context(context), DefaultFPMathTag(FPMathTag), FMF() { in Context()
169 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags()
172 void clearFastMathFlags() { FMF.clear(); } in clearFastMathFlags()
178 void SetFastMathFlags(FastMathFlags NewFMF) { FMF = NewFMF; } in SetFastMathFlags()
210 FastMathFlags FMF; variable
219 : Builder(B), FMF(B.FMF), FPMathTag(B.DefaultFPMathTag) {} in FastMathFlagGuard()
222 Builder.FMF = FMF; in ~FastMathFlagGuard()
695 FastMathFlags FMF) const { in AddFPMathAttributes() argument
700 I->setFastMathFlags(FMF); in AddFPMathAttributes()
[all …]
HDInstruction.h260 void setFastMathFlags(FastMathFlags FMF);
265 void copyFastMathFlags(FastMathFlags FMF);
/NextBSD/contrib/llvm/lib/Analysis/
HDInstructionSimplify.cpp788 static Value *SimplifyFAddInst(Value *Op0, Value *Op1, FastMathFlags FMF, in SimplifyFAddInst() argument
807 (FMF.noSignedZeros() || CannotBeNegativeZero(Op0))) in SimplifyFAddInst()
820 if ((FMF.noNaNs() || FSub->hasNoNaNs()) && in SimplifyFAddInst()
821 (FMF.noInfs() || FSub->hasNoInfs())) in SimplifyFAddInst()
830 static Value *SimplifyFSubInst(Value *Op0, Value *Op1, FastMathFlags FMF, in SimplifyFSubInst() argument
846 (FMF.noSignedZeros() || CannotBeNegativeZero(Op0))) in SimplifyFSubInst()
854 if (FMF.noSignedZeros() && match(Op1, m_FSub(m_AnyZero(), m_Value(X)))) in SimplifyFSubInst()
859 if (FMF.noNaNs() && Op0 == Op1) in SimplifyFSubInst()
867 FastMathFlags FMF, in SimplifyFMulInst() argument
886 if (FMF.noNaNs() && FMF.noSignedZeros() && match(Op1, m_AnyZero())) in SimplifyFMulInst()
[all …]
/NextBSD/contrib/llvm/lib/IR/
HDInstruction.cpp135 void Instruction::setFastMathFlags(FastMathFlags FMF) { in setFastMathFlags() argument
137 cast<FPMathOperator>(this)->setFastMathFlags(FMF); in setFastMathFlags()
140 void Instruction::copyFastMathFlags(FastMathFlags FMF) { in copyFastMathFlags() argument
142 cast<FPMathOperator>(this)->copyFastMathFlags(FMF); in copyFastMathFlags()
/NextBSD/contrib/llvm/tools/clang/lib/CodeGen/
HDCodeGenFunction.cpp61 llvm::FastMathFlags FMF; in CodeGenFunction() local
63 FMF.setUnsafeAlgebra(); in CodeGenFunction()
65 FMF.setNoNaNs(); in CodeGenFunction()
66 FMF.setNoInfs(); in CodeGenFunction()
69 FMF.setNoNaNs(); in CodeGenFunction()
72 FMF.setNoSignedZeros(); in CodeGenFunction()
75 FMF.setAllowReciprocal(); in CodeGenFunction()
77 Builder.SetFastMathFlags(FMF); in CodeGenFunction()
/NextBSD/contrib/llvm/lib/Bitcode/Reader/
HDBitcodeReader.cpp701 FastMathFlags FMF; in getDecodedFastMathFlags() local
703 FMF.setUnsafeAlgebra(); in getDecodedFastMathFlags()
705 FMF.setNoNaNs(); in getDecodedFastMathFlags()
707 FMF.setNoInfs(); in getDecodedFastMathFlags()
709 FMF.setNoSignedZeros(); in getDecodedFastMathFlags()
711 FMF.setAllowReciprocal(); in getDecodedFastMathFlags()
712 return FMF; in getDecodedFastMathFlags()
3492 FastMathFlags FMF = getDecodedFastMathFlags(Record[OpNum]); in parseFunctionBody() local
3493 if (FMF.any()) in parseFunctionBody()
3494 I->setFastMathFlags(FMF); in parseFunctionBody()
[all …]
/NextBSD/contrib/llvm/lib/CodeGen/SelectionDAG/
HDSelectionDAGBuilder.cpp2146 FastMathFlags FMF; in visitBinary() local
2157 FMF = FPOp->getFastMathFlags(); in visitBinary()
2164 Flags.setAllowReciprocal(FMF.allowReciprocal()); in visitBinary()
2165 Flags.setNoInfs(FMF.noInfs()); in visitBinary()
2166 Flags.setNoNaNs(FMF.noNaNs()); in visitBinary()
2167 Flags.setNoSignedZeros(FMF.noSignedZeros()); in visitBinary()
2168 Flags.setUnsafeAlgebra(FMF.unsafeAlgebra()); in visitBinary()
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstructionCombining.cpp154 FastMathFlags FMF = I.getFastMathFlags(); in ClearSubclassDataAfterReassociation() local
156 I.setFastMathFlags(FMF); in ClearSubclassDataAfterReassociation()