Home
last modified time | relevance | path

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

123

/freebsd-src/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.h219 (SubclassOptionalData & ~FastMathFlags::AllowReassoc) | in setHasAllowContract()
220 (B * FastMathFlags::AllowReassoc);
225 (SubclassOptionalData & ~FastMathFlags::NoNaNs) | in setHasApproxFunc()
226 (B * FastMathFlags::NoNaNs);
231 (SubclassOptionalData & ~FastMathFlags::NoInfs) | in setFastMathFlags()
232 (B * FastMathFlags::NoInfs);
237 (SubclassOptionalData & ~FastMathFlags::NoSignedZeros) | in copyFastMathFlags()
238 (B * FastMathFlags::NoSignedZeros);
243 (SubclassOptionalData & ~FastMathFlags::AllowReciprocal) | in isFast()
244 (B * FastMathFlags in isFast()
[all...]
H A DIRBuilderFolder.h47 Value *RHS, FastMathFlags FMF) const = 0;
50 FastMathFlags FMF) const = 0;
H A DNoFolder.h64 FastMathFlags FMF) const override { in FoldBinOpFMF()
69 FastMathFlags FMF) const override { in FoldUnOpFMF()
H A DInstruction.h34 class FastMathFlags;
589 void setFastMathFlags(FastMathFlags FMF);
594 void copyFastMathFlags(FastMathFlags FMF);
623 FastMathFlags getFastMathFlags() const LLVM_READONLY;
33 class FastMathFlags; global() variable
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.h123 FastMathFlags FMF;
297 FastMathFlags getFastMathFlags() const { return FMF; }
299 FastMathFlags &getFastMathFlags() { return FMF; } in clearFastMathFlags()
308 void setFastMathFlags(FastMathFlags NewFMF) { FMF = NewFMF; }
396 FastMathFlags FMF;
1287 FastMathFlags FMF) const { in getConstrainedFPRounding()
1558 FastMathFlags FMF = FMFSource->getFastMathFlags();
1585 FastMathFlags FMF = FMFSource->getFastMathFlags();
1612 FastMathFlags FMF = FMFSource->getFastMathFlags();
1639 FastMathFlags FM
[all...]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h87 Value *simplifyFNegInst(Value *Op, FastMathFlags FMF, const SimplifyQuery &Q);
92 simplifyFAddInst(Value *LHS, Value *RHS, FastMathFlags FMF,
99 simplifyFSubInst(Value *LHS, Value *RHS, FastMathFlags FMF,
106 simplifyFMulInst(Value *LHS, Value *RHS, FastMathFlags FMF,
115 Value *simplifyFMAFMul(Value *LHS, Value *RHS, FastMathFlags FMF,
122 simplifyFDivInst(Value *LHS, Value *RHS, FastMathFlags FMF,
129 simplifyFRemInst(Value *LHS, Value *RHS, FastMathFlags FMF,
161 FastMathFlags FMF, const SimplifyQuery &Q);
211 /// Try to use FastMathFlags when folding the result.
212 Value *simplifyUnOp(unsigned Opcode, Value *Op, FastMathFlags FM
[all...]
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.h127 FastMathFlags FMF;
140 FastMathFlags Flags = FastMathFlags(), const IntrinsicInst *I = nullptr,
148 ArrayRef<Type *> Tys, FastMathFlags Flags = FastMathFlags(),
155 FastMathFlags getFlags() const { return FMF; } in getScalarizationCost()
1482 /// for a given \p Opcode and set of FastMathFlags \p FMF.
1483 static bool requiresOrderedReduction(std::optional<FastMathFlags> FMF) {
1490 /// value using the operation denoted by \p Opcode. The FastMathFlags
1512 unsigned Opcode, VectorType *Ty, std::optional<FastMathFlags> FM
[all...]
H A DTargetFolder.h98 FastMathFlags FMF) const override { in FoldBinOpFMF()
111 FastMathFlags FMF) const override { in FoldUnOpFMF()
/freebsd-src/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp278 bool canOptimizeWithRsq(const FPMathOperator *SqrtOp, FastMathFlags DivFMF,
279 FastMathFlags SqrtFMF) const;
282 FastMathFlags DivFMF, FastMathFlags SqrtFMF,
286 FastMathFlags FMF, const Instruction *CtxI) const;
291 FastMathFlags DivFMF, FastMathFlags SqrtFMF,
301 FastMathFlags FMF) const;
303 FastMathFlags FMF) const;
815 FastMathFlags FM in emitFrexpDiv()
[all...]
H A DAMDGPUTargetTransformInfo.h250 unsigned Opcode, VectorType *Ty, std::optional<FastMathFlags> FMF,
256 FastMathFlags FMF,
/freebsd-src/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h178 FastMathFlags FMF,
182 std::optional<FastMathFlags> FMF,
187 FastMathFlags FMF,
/freebsd-src/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h215 std::optional<FastMathFlags> FMF,
220 FastMathFlags FMF);
223 FastMathFlags FMF,
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandReductions.cpp58 FastMathFlags FMF = in getRK()
59 isa<FPMathOperator>(II) ? II->getFastMathFlags() : FastMathFlags{}; in getRK()
/freebsd-src/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h284 std::optional<FastMathFlags> FMF,
288 FastMathFlags FMF,
295 FastMathFlags FMF,
/freebsd-src/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()
768 InstDesc &Prev, FastMathFlags FuncFMF) { in isRecurrenceInstr()
845 FastMathFlags FMF; in isReductionPHI()
1038 FastMathFlags FMF) const { in getRecurrenceIdentity()
H A DInstructionSimplify.cpp59 static Value *simplifyFPUnOp(unsigned, Value *, const FastMathFlags &,
63 static Value *simplifyBinOp(unsigned, Value *, Value *, const FastMathFlags &,
4069 FastMathFlags FMF, const SimplifyQuery &Q, in simplifyFCmpInst()
4297 FastMathFlags FMF, const SimplifyQuery &Q) { in simplifyWithOpReplaced()
5547 static Value *simplifyFNegInst(Value *Op, FastMathFlags FMF, in propagateNaN()
5560 Value *llvm::simplifyFNegInst(Value *Op, FastMathFlags FMF, in propagateNaN()
5609 static Constant *simplifyFPOp(ArrayRef<Value *> Ops, FastMathFlags FMF, in simplifyFPOp()
5651 simplifyFAddInst(Value *Op0, Value *Op1, FastMathFlags FMF, in simplifyFAddInst()
5717 simplifyFSubInst(Value *Op0, Value *Op1, FastMathFlags FMF, in simplifyFSubInst()
5783 static Value *simplifyFMAFMul(Value *Op0, Value *Op1, FastMathFlags FM in simplifyFMAFMul()
[all...]
H A DTargetTransformInfo.cpp88 FastMathFlags Flags, in IntrinsicCostAttributes()
108 FastMathFlags Flags, in IntrinsicCostAttributes()
1150 unsigned Opcode, VectorType *Ty, std::optional<FastMathFlags> FMF, in getMemcpyLoopLoweringType()
1159 Intrinsic::ID IID, VectorType *Ty, FastMathFlags FMF, in getMemcpyLoopResidualLoweringType()
1169 FastMathFlags FMF, TTI::TargetCostKind CostKind) const { in getInlineCallPenalty()
/freebsd-src/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h193 FastMathFlags FMF,
395 std::optional<FastMathFlags> FMF,
/freebsd-src/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp560 void Instruction::setFastMathFlags(FastMathFlags FMF) { in copyIRFlags()
565 void Instruction::copyFastMathFlags(FastMathFlags FMF) { in copyIRFlags()
610 FastMathFlags Instruction::getFastMathFlags() const { in getOpcodeName()
684 FastMathFlags FM = getFastMathFlags(); in getOpcodeName()
H A DOperator.cpp260 void FastMathFlags::print(raw_ostream &O) const {

123