Home
last modified time | relevance | path

Searched refs:FastMathFlags (Results 1 – 25 of 61) sorted by relevance

123

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DFMF.h20 class FastMathFlags {
26 FastMathFlags(unsigned F) { in FastMathFlags() function
49 FastMathFlags() = default;
51 static FastMathFlags getFast() { in getFast()
52 FastMathFlags FMF; in getFast()
99 void operator&=(const FastMathFlags &OtherFlags) {
102 void operator|=(const FastMathFlags &OtherFlags) {
105 bool operator!=(const FastMathFlags &OtherFlags) const {
113 inline FastMathFlags operator|(FastMathFlags LHS, FastMathFlags RHS) {
118 inline FastMathFlags operator&(FastMathFlags LHS, FastMathFlags RHS) {
[all …]
H A DOperator.h188 (B * FastMathFlags::AllowReassoc); in setHasAllowReassoc()
194 (B * FastMathFlags::NoNaNs); in setHasNoNaNs()
200 (B * FastMathFlags::NoInfs); in setHasNoInfs()
206 (B * FastMathFlags::NoSignedZeros); in setHasNoSignedZeros()
212 (B * FastMathFlags::AllowReciprocal); in setHasAllowReciprocal()
218 (B * FastMathFlags::AllowContract); in setHasAllowContract()
224 (B * FastMathFlags::ApproxFunc); in setHasApproxFunc()
229 void setFastMathFlags(FastMathFlags FMF) { in setFastMathFlags()
235 void copyFastMathFlags(FastMathFlags FMF) { in copyFastMathFlags()
288 FastMathFlags getFastMathFlags() const { in getFastMathFlags()
[all …]
H A DIRBuilderFolder.h46 Value *RHS, FastMathFlags FMF) const = 0;
49 FastMathFlags FMF) const = 0;
H A DNoFolder.h64 FastMathFlags FMF) const override { in FoldBinOpFMF()
69 FastMathFlags FMF) const override { in FoldUnOpFMF()
H A DInstruction.h33 class FastMathFlags; variable
554 void setFastMathFlags(FastMathFlags FMF);
559 void copyFastMathFlags(FastMathFlags FMF);
588 FastMathFlags getFastMathFlags() const LLVM_READONLY;
H A DFPEnv.h83 inline bool canIgnoreSNaN(fp::ExceptionBehavior EB, FastMathFlags FMF) { in canIgnoreSNaN()
H A DConstantFolder.h87 FastMathFlags FMF) const override { in FoldBinOpFMF()
92 FastMathFlags FMF) const override { in FoldUnOpFMF()
H A DIRBuilder.h126 FastMathFlags FMF;
294 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags()
296 FastMathFlags &getFastMathFlags() { return FMF; } in getFastMathFlags()
393 FastMathFlags FMF;
1276 FastMathFlags FMF) const { in setFPAttrs()
1547 FastMathFlags FMF = FMFSource->getFastMathFlags();
1574 FastMathFlags FMF = FMFSource->getFastMathFlags();
1601 FastMathFlags FMF = FMFSource->getFastMathFlags();
1628 FastMathFlags FMF = FMFSource->getFastMathFlags();
1654 FastMathFlags FMF = FMFSource->getFastMathFlags();
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h85 Value *simplifyFNegInst(Value *Op, FastMathFlags FMF, const SimplifyQuery &Q);
90 simplifyFAddInst(Value *LHS, Value *RHS, FastMathFlags FMF,
97 simplifyFSubInst(Value *LHS, Value *RHS, FastMathFlags FMF,
104 simplifyFMulInst(Value *LHS, Value *RHS, FastMathFlags FMF,
113 Value *simplifyFMAFMul(Value *LHS, Value *RHS, FastMathFlags FMF,
120 simplifyFDivInst(Value *LHS, Value *RHS, FastMathFlags FMF,
127 simplifyFRemInst(Value *LHS, Value *RHS, FastMathFlags FMF,
159 FastMathFlags FMF, const SimplifyQuery &Q);
205 Value *simplifyUnOp(unsigned Opcode, Value *Op, FastMathFlags FMF,
214 Value *simplifyBinOp(unsigned Opcode, Value *LHS, Value *RHS, FastMathFlags FMF,
H A DIVDescriptors.h76 RecurKind K, FastMathFlags FMF, Instruction *ExactFP, in RecurrenceDescriptor()
128 FastMathFlags FuncFMF);
160 Value *getRecurrenceIdentity(RecurKind K, Type *Tp, FastMathFlags FMF) const;
171 FastMathFlags FuncFMF, RecurrenceDescriptor &RedDes,
201 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags()
288 FastMathFlags FMF;
H A DInstSimplifyFolder.h66 FastMathFlags FMF) const override { in FoldBinOpFMF()
71 FastMathFlags FMF) const override { in FoldUnOpFMF()
H A DTargetTransformInfo.h126 FastMathFlags FMF;
139 FastMathFlags Flags = FastMathFlags(), const IntrinsicInst *I = nullptr,
147 ArrayRef<Type *> Tys, FastMathFlags Flags = FastMathFlags(),
154 FastMathFlags getFlags() const { return FMF; } in getFlags()
1462 unsigned Opcode, VectorType *Ty, std::optional<FastMathFlags> FMF,
1466 Intrinsic::ID IID, VectorType *Ty, FastMathFlags FMF = FastMathFlags(),
1484 FastMathFlags FMF,
2033 std::optional<FastMathFlags> FMF,
2040 FastMathFlags FMF,
2684 std::optional<FastMathFlags> FMF, in getArithmeticReductionCost()
[all …]
H A DTargetFolder.h98 FastMathFlags FMF) const override { in FoldBinOpFMF()
111 FastMathFlags FMF) const override { in FoldUnOpFMF()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp278 FastMathFlags SqrtFMF) const;
281 FastMathFlags DivFMF, FastMathFlags SqrtFMF,
290 FastMathFlags DivFMF, FastMathFlags SqrtFMF,
300 FastMathFlags FMF) const;
302 FastMathFlags FMF) const;
902 const FastMathFlags SqrtFMF, const Instruction *CtxI) const { in optimizeWithRsq()
1084 const FastMathFlags DivFMF = FPOp->getFastMathFlags(); in visitFDiv()
1087 FastMathFlags SqrtFMF; in visitFDiv()
1374 FastMathFlags FMF; in expandDivRem32()
2102 FastMathFlags FMF = I.getFastMathFlags(); in visitMinNum()
[all …]
H A DAMDGPUTargetTransformInfo.h249 unsigned Opcode, VectorType *Ty, std::optional<FastMathFlags> FMF,
255 FastMathFlags FMF,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h152 FastMathFlags FMF,
156 std::optional<FastMathFlags> FMF,
161 FastMathFlags FMF,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h212 std::optional<FastMathFlags> FMF,
217 FastMathFlags FMF);
220 FastMathFlags FMF,
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandReductions.cpp106 FastMathFlags FMF = in expandReductions()
107 isa<FPMathOperator>(II) ? II->getFastMathFlags() : FastMathFlags{}; in expandReductions()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h283 std::optional<FastMathFlags> FMF,
287 FastMathFlags FMF,
294 FastMathFlags FMF,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DIVDescriptors.cpp214 PHINode *Phi, RecurKind Kind, Loop *TheLoop, FastMathFlags FuncFMF, in AddReductionVar()
287 FastMathFlags FMF = FastMathFlags::getFast(); in AddReductionVar()
384 FastMathFlags CurFMF = ReduxDesc.getPatternInst()->getFastMathFlags(); in AddReductionVar()
769 InstDesc &Prev, FastMathFlags FuncFMF) { in isRecurrenceInstr()
846 FastMathFlags FMF; in isReductionPHI()
1039 FastMathFlags FMF) const { in getRecurrenceIdentity()
H A DInstructionSimplify.cpp58 static Value *simplifyFPUnOp(unsigned, Value *, const FastMathFlags &,
62 static Value *simplifyBinOp(unsigned, Value *, Value *, const FastMathFlags &,
5510 static Value *simplifyFNegInst(Value *Op, FastMathFlags FMF, in simplifyFNegInst()
5523 Value *llvm::simplifyFNegInst(Value *Op, FastMathFlags FMF, in simplifyFNegInst()
5614 simplifyFAddInst(Value *Op0, Value *Op1, FastMathFlags FMF, in simplifyFAddInst()
5680 simplifyFSubInst(Value *Op0, Value *Op1, FastMathFlags FMF, in simplifyFSubInst()
5790 simplifyFMulInst(Value *Op0, Value *Op1, FastMathFlags FMF, in simplifyFMulInst()
5835 simplifyFDivInst(Value *Op0, Value *Op1, FastMathFlags FMF, in simplifyFDivInst()
5894 simplifyFRemInst(Value *Op0, Value *Op1, FastMathFlags FMF, in simplifyFRemInst()
5939 return simplifyFNegInst(Op, FastMathFlags(), Q, MaxRecurse); in simplifyUnOp()
[all …]
H A DTargetTransformInfo.cpp87 FastMathFlags Flags, in IntrinsicCostAttributes()
107 FastMathFlags Flags, in IntrinsicCostAttributes()
1095 unsigned Opcode, VectorType *Ty, std::optional<FastMathFlags> FMF, in getArithmeticReductionCost()
1104 Intrinsic::ID IID, VectorType *Ty, FastMathFlags FMF, in getMinMaxReductionCost()
1114 FastMathFlags FMF, TTI::TargetCostKind CostKind) const { in getExtendedReductionCost()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h193 FastMathFlags FMF,
389 std::optional<FastMathFlags> FMF,
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp484 void Instruction::setFastMathFlags(FastMathFlags FMF) { in setFastMathFlags()
489 void Instruction::copyFastMathFlags(FastMathFlags FMF) { in copyFastMathFlags()
534 FastMathFlags Instruction::getFastMathFlags() const { in getFastMathFlags()
593 FastMathFlags FM = getFastMathFlags(); in andIRFlags()
H A DOperator.cpp237 void FastMathFlags::print(raw_ostream &O) const { in print()

123