Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DOperator.h185 (B * FastMathFlags::AllowReassoc); in setHasAllowReassoc()
191 (B * FastMathFlags::NoNaNs); in setHasNoNaNs()
197 (B * FastMathFlags::NoInfs); in setHasNoInfs()
203 (B * FastMathFlags::NoSignedZeros); in setHasNoSignedZeros()
209 (B * FastMathFlags::AllowReciprocal); in setHasAllowReciprocal()
215 (B * FastMathFlags::AllowContract); in setHasAllowContract()
221 (B * FastMathFlags::ApproxFunc); in setHasApproxFunc()
226 void setFastMathFlags(FastMathFlags FMF) { in setFastMathFlags()
232 void copyFastMathFlags(FastMathFlags FMF) { in copyFastMathFlags()
285 FastMathFlags getFastMathFlags() const { in getFastMathFlags()
[all …]
H A DFMF.h21 class FastMathFlags {
27 FastMathFlags(unsigned F) { in FastMathFlags() function
50 FastMathFlags() = default;
52 static FastMathFlags getFast() { in getFast()
53 FastMathFlags FMF; in getFast()
100 void operator&=(const FastMathFlags &OtherFlags) {
103 void operator|=(const FastMathFlags &OtherFlags) {
106 bool operator!=(const FastMathFlags &OtherFlags) const {
114 inline raw_ostream &operator<<(raw_ostream &O, FastMathFlags FMF) {
H A DIRBuilderFolder.h46 Value *RHS, FastMathFlags FMF) const = 0;
49 FastMathFlags FMF) const = 0;
H A DInstruction.h33 class FastMathFlags; variable
433 void setFastMathFlags(FastMathFlags FMF);
438 void copyFastMathFlags(FastMathFlags FMF);
467 FastMathFlags getFastMathFlags() const;
H A DNoFolder.h64 FastMathFlags FMF) const override { in FoldBinOpFMF()
69 FastMathFlags FMF) const override { in FoldUnOpFMF()
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.h125 FastMathFlags FMF;
277 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags()
279 FastMathFlags &getFastMathFlags() { return FMF; } in getFastMathFlags()
288 void setFastMathFlags(FastMathFlags NewFMF) { FMF = NewFMF; } in setFastMathFlags()
374 FastMathFlags FMF;
1152 FastMathFlags FMF) const { in setFPAttrs()
1426 FastMathFlags FMF = FMFSource->getFastMathFlags();
1453 FastMathFlags FMF = FMFSource->getFastMathFlags();
1480 FastMathFlags FMF = FMFSource->getFastMathFlags();
1532 FastMathFlags FMF = FMFSource->getFastMathFlags();
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h147 Value *simplifyFNegInst(Value *Op, FastMathFlags FMF, const SimplifyQuery &Q);
159 simplifyFAddInst(Value *LHS, Value *RHS, FastMathFlags FMF,
166 simplifyFSubInst(Value *LHS, Value *RHS, FastMathFlags FMF,
173 simplifyFMulInst(Value *LHS, Value *RHS, FastMathFlags FMF,
182 Value *simplifyFMAFMul(Value *LHS, Value *RHS, FastMathFlags FMF,
198 simplifyFDivInst(Value *LHS, Value *RHS, FastMathFlags FMF,
211 simplifyFRemInst(Value *LHS, Value *RHS, FastMathFlags FMF,
243 FastMathFlags FMF, const SimplifyQuery &Q);
289 Value *simplifyUnOp(unsigned Opcode, Value *Op, FastMathFlags FMF,
298 Value *simplifyBinOp(unsigned Opcode, Value *LHS, Value *RHS, FastMathFlags FMF,
H A DIVDescriptors.h74 RecurKind K, FastMathFlags FMF, Instruction *ExactFP, in RecurrenceDescriptor()
126 FastMathFlags FuncFMF);
158 Value *getRecurrenceIdentity(RecurKind K, Type *Tp, FastMathFlags FMF) const;
169 FastMathFlags FuncFMF, RecurrenceDescriptor &RedDes,
199 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags()
285 FastMathFlags FMF;
H A DInstSimplifyFolder.h66 FastMathFlags FMF) const override { in FoldBinOpFMF()
71 FastMathFlags FMF) const override { in FoldUnOpFMF()
H A DTargetFolder.h98 FastMathFlags FMF) const override { in FoldBinOpFMF()
111 FastMathFlags FMF) const override { in FoldUnOpFMF()
H A DTargetTransformInfo.h124 FastMathFlags FMF;
137 FastMathFlags Flags = FastMathFlags(), const IntrinsicInst *I = nullptr,
145 ArrayRef<Type *> Tys, FastMathFlags Flags = FastMathFlags(),
152 FastMathFlags getFlags() const { return FMF; } in getFlags()
1228 static bool requiresOrderedReduction(Optional<FastMathFlags> FMF) { in requiresOrderedReduction()
1257 unsigned Opcode, VectorType *Ty, Optional<FastMathFlags> FMF,
1771 Optional<FastMathFlags> FMF,
2333 Optional<FastMathFlags> FMF, in getArithmeticReductionCost()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DExpandReductions.cpp106 FastMathFlags FMF = in expandReductions()
107 isa<FPMathOperator>(II) ? II->getFastMathFlags() : FastMathFlags{}; in expandReductions()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DIVDescriptors.cpp217 PHINode *Phi, RecurKind Kind, Loop *TheLoop, FastMathFlags FuncFMF, in AddReductionVar()
290 FastMathFlags FMF = FastMathFlags::getFast(); in AddReductionVar()
387 FastMathFlags CurFMF = ReduxDesc.getPatternInst()->getFastMathFlags(); in AddReductionVar()
763 InstDesc &Prev, FastMathFlags FuncFMF) { in isRecurrenceInstr()
832 FastMathFlags FMF; in isReductionPHI()
1052 FastMathFlags FMF) const { in getRecurrenceIdentity()
H A DInstructionSimplify.cpp57 static Value *simplifyFPUnOp(unsigned, Value *, const FastMathFlags &,
61 static Value *simplifyBinOp(unsigned, Value *, Value *, const FastMathFlags &,
5070 static Value *simplifyFNegInst(Value *Op, FastMathFlags FMF, in simplifyFNegInst()
5083 Value *llvm::simplifyFNegInst(Value *Op, FastMathFlags FMF, in simplifyFNegInst()
5137 simplifyFAddInst(Value *Op0, Value *Op1, FastMathFlags FMF, in simplifyFAddInst()
5199 simplifyFSubInst(Value *Op0, Value *Op1, FastMathFlags FMF, in simplifyFSubInst()
5294 simplifyFMulInst(Value *Op0, Value *Op1, FastMathFlags FMF, in simplifyFMulInst()
5339 simplifyFDivInst(Value *Op0, Value *Op1, FastMathFlags FMF, in simplifyFDivInst()
5394 simplifyFRemInst(Value *Op0, Value *Op1, FastMathFlags FMF, in simplifyFRemInst()
5439 return simplifyFNegInst(Op, FastMathFlags(), Q, MaxRecurse); in simplifyUnOp()
[all …]
H A DTargetTransformInfo.cpp77 FastMathFlags Flags, in IntrinsicCostAttributes()
97 FastMathFlags Flags, in IntrinsicCostAttributes()
958 unsigned Opcode, VectorType *Ty, Optional<FastMathFlags> FMF, in getArithmeticReductionCost()
/llvm-project-15.0.7/llvm/lib/IR/
H A DInstruction.cpp239 void Instruction::setFastMathFlags(FastMathFlags FMF) { in setFastMathFlags()
244 void Instruction::copyFastMathFlags(FastMathFlags FMF) { in copyFastMathFlags()
289 FastMathFlags Instruction::getFastMathFlags() const { in getFastMathFlags()
336 FastMathFlags FM = getFastMathFlags(); in andIRFlags()
H A DOperator.cpp230 void FastMathFlags::print(raw_ostream &O) const { in print()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/LLVMIR/
H A DLLVMToLLVMIRTranslation.cpp148 static llvm::FastMathFlags getFastmathFlags(FastmathFlagsInterface &op) { in getFastmathFlags()
149 using llvmFMF = llvm::FastMathFlags; in getFastmathFlags()
162 llvm::FastMathFlags ret; in getFastmathFlags()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.h212 unsigned Opcode, VectorType *Ty, Optional<FastMathFlags> FMF,
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h111 Optional<FastMathFlags> FMF,
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h365 Optional<FastMathFlags> FMF,
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h194 Optional<FastMathFlags> FMF,
/llvm-project-15.0.7/llvm/include/llvm/AsmParser/
H A DLLParser.h202 FastMathFlags EatFastMathFlagsIfPresent() { in EatFastMathFlagsIfPresent()
203 FastMathFlags FMF; in EatFastMathFlagsIfPresent()

123