| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXTargetTransformInfo.cpp | 323 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 D | IRBuilderTest.cpp | 528 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 D | AMDGPUCodeGenPrepare.cpp | 760 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 D | arithmetic-ops-to-llvm.mlir | 94 // 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 D | arithmetic-ops.mlir | 16 // spv.FDiv 20 // CHECK: spv.FDiv 21 %0 = spv.FDiv %arg, %arg : f32
|
| H A D | cooperative-matrix-ops.mlir | 97 // 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 D | arithmetic-ops.mlir | 15 // CHECK: {{%.*}} = spv.FDiv {{%.*}}, {{%.*}} : vector<4xf32> 16 %0 = spv.FDiv %arg0, %arg1 : vector<4xf32>
|
| H A D | cooperative-matrix-ops.mlir | 90 // 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 D | MipsOs16.cpp | 85 case Instruction::FDiv: in needsFP()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/ |
| H A D | SPIRVArithmeticOps.td | 78 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 D | Operations.cpp | 49 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 D | SpeculativeExecution.cpp | 243 case Instruction::FDiv: in ComputeSpeculationCost()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | ConstrainedOps.def | 55 DAG_INSTRUCTION(FDiv, 2, 1, experimental_constrained_fdiv, FDIV)
|
| H A D | Instruction.def | 155 HANDLE_BINARY_INST(21, FDiv , BinaryOperator)
|
| H A D | Operator.h | 308 case Instruction::FDiv: in classof()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 431 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 D | InstCombineAddSub.cpp | 2261 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 D | llvm-stress.cpp | 394 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 D | ExecutionEngine.cpp | 814 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 D | ConvertFromLLVMIR.cpp | 619 INST(FDiv, FDiv), in lookupOperationNameFromOpcode() 800 case llvm::Instruction::FDiv: in processInstruction()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/InstCombine/ |
| H A D | InstCombiner.h | 347 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 D | SystemZTargetTransformInfo.cpp | 476 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 D | TargetTransformInfoImpl.h | 492 case Instruction::FDiv: 1039 case Instruction::FDiv: in getUserCost()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanRecipes.cpp | 429 Opcode == Instruction::FDiv || Opcode == Instruction::FRem || in setFastMathFlags() 509 case Instruction::FDiv: in execute()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | CFLGraph.h | 577 case Instruction::FDiv: in visitConstantExpr()
|