Home
last modified time | relevance | path

Searched refs:FDiv (Results 1 – 25 of 71) sorted by relevance

123

/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXTargetTransformInfo.cpp323 return {Instruction::FDiv, FTZ_Any}; in simplifyNvvmIntrinsic()
325 return {Instruction::FDiv, FTZ_MustBeOff}; in simplifyNvvmIntrinsic()
327 return {Instruction::FDiv, FTZ_MustBeOn}; in simplifyNvvmIntrinsic()
410 Instruction::FDiv, ConstantFP::get(II->getArgOperand(0)->getType(), 1), in simplifyNvvmIntrinsic()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DIRBuilderTest.cpp528 Instruction *FDiv, *FAdd, *FCmp, *FCall; in TEST_F() local
587 FDiv = cast<Instruction>(F); in TEST_F()
588 EXPECT_TRUE(FDiv->hasAllowReciprocal()); in TEST_F()
595 FDiv = cast<Instruction>(F); in TEST_F()
596 EXPECT_FALSE(FDiv->hasAllowReciprocal()); in TEST_F()
607 FDiv = cast<Instruction>(F); in TEST_F()
608 EXPECT_TRUE(FDiv->hasAllowReciprocal()); in TEST_F()
700 FDiv = cast<Instruction>(F); in TEST_F()
702 FDiv->setHasAllowReciprocal(true); in TEST_F()
705 FDiv->copyFastMathFlags(FAdd); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp760 bool AMDGPUCodeGenPrepare::visitFDiv(BinaryOperator &FDiv) { in visitFDiv() argument
762 Type *Ty = FDiv.getType()->getScalarType(); in visitFDiv()
773 const FPMathOperator *FPOp = cast<const FPMathOperator>(&FDiv); in visitFDiv()
786 IRBuilder<> Builder(FDiv.getParent(), std::next(FDiv.getIterator())); in visitFDiv()
788 Builder.SetCurrentDebugLocation(FDiv.getDebugLoc()); in visitFDiv()
790 Value *Num = FDiv.getOperand(0); in visitFDiv()
791 Value *Den = FDiv.getOperand(1); in visitFDiv()
794 if (auto *VT = dyn_cast<FixedVectorType>(FDiv.getType())) { in visitFDiv()
824 FDiv.replaceAllUsesWith(NewFDiv); in visitFDiv()
825 NewFDiv->takeName(&FDiv); in visitFDiv()
[all …]
/llvm-project-15.0.7/mlir/test/Conversion/SPIRVToLLVM/
H A Darithmetic-ops-to-llvm.mlir94 // spv.FDiv
100 %0 = spv.FDiv %arg0, %arg1 : f32
107 %0 = spv.FDiv %arg0, %arg1 : vector<3xf64>
/llvm-project-15.0.7/mlir/test/Dialect/SPIRV/IR/
H A Darithmetic-ops.mlir16 // spv.FDiv
20 // CHECK: spv.FDiv
21 %0 = spv.FDiv %arg, %arg : f32
H A Dcooperative-matrix-ops.mlir97 // CHECK: {{%.*}} = spv.FDiv {{%.*}}, {{%.*}} : !spv.coopmatrix<8x16xf32, Subgroup>
98 %r = spv.FDiv %a, %b : !spv.coopmatrix<8x16xf32, Subgroup>
/llvm-project-15.0.7/mlir/test/Target/SPIRV/
H A Darithmetic-ops.mlir15 // CHECK: {{%.*}} = spv.FDiv {{%.*}}, {{%.*}} : vector<4xf32>
16 %0 = spv.FDiv %arg0, %arg1 : vector<4xf32>
H A Dcooperative-matrix-ops.mlir90 // CHECK: {{%.*}} = spv.FDiv {{%.*}}, {{%.*}} : !spv.coopmatrix<8x16xf32, Subgroup>
91 %r = spv.FDiv %a, %b : !spv.coopmatrix<8x16xf32, Subgroup>
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsOs16.cpp85 case Instruction::FDiv: in needsFP()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVArithmeticOps.td78 def SPV_FDivOp : SPV_ArithmeticBinaryOp<"FDiv", SPV_Float, []> {
94 fdiv-op ::= ssa-id `=` `spv.FDiv` ssa-use, ssa-use
101 %4 = spv.FDiv %0, %1 : f32
102 %5 = spv.FDiv %2, %3 : vector<4xf32>
/llvm-project-15.0.7/llvm/lib/FuzzMutate/
H A DOperations.cpp49 Ops.push_back(binOpDescriptor(1, Instruction::FDiv)); in describeFuzzerFloatOps()
114 case Instruction::FDiv: in binOpDescriptor()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSpeculativeExecution.cpp243 case Instruction::FDiv: in ComputeSpeculationCost()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstrainedOps.def55 DAG_INSTRUCTION(FDiv, 2, 1, experimental_constrained_fdiv, FDIV)
H A DInstruction.def155 HANDLE_BINARY_INST(21, FDiv , BinaryOperator)
H A DOperator.h308 case Instruction::FDiv: in classof()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp431 assert((Opcode == Instruction::FMul || Opcode == Instruction::FDiv) && in foldFPSignBitOps()
516 ConstantFoldBinaryOpOperands(Instruction::FDiv, C, C1, DL); in visitFMul()
523 ConstantFoldBinaryOpOperands(Instruction::FDiv, C1, C, DL); in visitFMul()
1244 Instruction::FDiv, ConstantFP::get(I.getType(), 1.0), C, DL); in foldFDivConstantDivisor()
1271 NewC = ConstantFoldBinaryOpOperands(Instruction::FDiv, C, C2, DL); in foldFDivConstantDividend()
H A DInstCombineAddSub.cpp2261 Instruction *FDiv = in foldFNegIntoConstant() local
2269 FDiv->setHasNoSignedZeros(FMF.noSignedZeros() && OpFMF.noSignedZeros()); in foldFNegIntoConstant()
2270 FDiv->setHasNoInfs(FMF.noInfs() && OpFMF.noInfs()); in foldFNegIntoConstant()
2271 return FDiv; in foldFNegIntoConstant()
2439 Value *FDiv = Builder.CreateFDivFMF(X, Y, &I); in visitFSub() local
2440 return BinaryOperator::CreateFAddFMF(Op0, FDiv, &I); in visitFSub()
/llvm-project-15.0.7/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp394 case 3:{Op = (isFloat?Instruction::FDiv : Instruction::SDiv); break; } in Act()
395 case 4:{Op = (isFloat?Instruction::FDiv : Instruction::UDiv); break; } in Act()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp814 case Instruction::FDiv: in getConstantValue()
829 case Instruction::FDiv: in getConstantValue()
856 case Instruction::FDiv: in getConstantValue()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DConvertFromLLVMIR.cpp619 INST(FDiv, FDiv), in lookupOperationNameFromOpcode()
800 case llvm::Instruction::FDiv: in processInstruction()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h347 case Instruction::FDiv: // 0.0 / X (doesn't simplify, but it is safe) in getSafeVectorConstantForBinop()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp476 Opcode == Instruction::FMul || Opcode == Instruction::FDiv) in getArithmeticInstrCost()
551 Opcode == Instruction::FMul || Opcode == Instruction::FDiv) { in getArithmeticInstrCost()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h492 case Instruction::FDiv:
1039 case Instruction::FDiv: in getUserCost()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVPlanRecipes.cpp429 Opcode == Instruction::FDiv || Opcode == Instruction::FRem || in setFastMathFlags()
509 case Instruction::FDiv: in execute()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DCFLGraph.h577 case Instruction::FDiv: in visitConstantExpr()

123