Home
last modified time | relevance | path

Searched refs:AddFOp (Results 1 – 25 of 34) sorted by relevance

12

/llvm-project-15.0.7/mlir/test/lib/IR/
H A DTestMatchers.cpp51 auto p0 = m_Op<arith::AddFOp>(); // using 0-arity matcher in test1()
59 auto p2 = m_Op<arith::AddFOp>(m_Op<arith::AddFOp>(), m_Any()); in test1()
63 auto p3 = m_Op<arith::AddFOp>(m_Any(), m_Op<arith::AddFOp>()); in test1()
67 auto p4 = m_Op<arith::MulFOp>(m_Op<arith::AddFOp>(), m_Any()); in test1()
71 auto p5 = m_Op<arith::MulFOp>(m_Any(), m_Op<arith::AddFOp>()); in test1()
101 auto p10 = m_Op<arith::AddFOp>(a, b); in test1()
105 auto p11 = m_Op<arith::AddFOp>(a, c); in test1()
109 auto p12 = m_Op<arith::AddFOp>(b, a); in test1()
113 auto p13 = m_Op<arith::AddFOp>(c, a); in test1()
117 auto p14 = m_Op<arith::MulFOp>(a, m_Op<arith::AddFOp>(c, b)); in test1()
[all …]
/llvm-project-15.0.7/mlir/test/python/ir/
H A Ddialects.py85 op1 = ctx.dialects.arith.AddFOp(input1, input2)
88 from mlir.dialects.arith import AddFOp
89 AddFOp(input1, op1.result)
/llvm-project-15.0.7/mlir/lib/Conversion/ComplexToStandard/
H A DComplexToStandard.cpp40 Value sqNorm = rewriter.create<arith::AddFOp>(loc, realSqr, imagSqr); in matchAndRewrite()
257 Value rhsRealImagDenom = rewriter.create<arith::AddFOp>( in matchAndRewrite()
260 Value realNumerator1 = rewriter.create<arith::AddFOp>( in matchAndRewrite()
273 Value rhsImagRealDenom = rewriter.create<arith::AddFOp>( in matchAndRewrite()
276 Value realNumerator2 = rewriter.create<arith::AddFOp>( in matchAndRewrite()
518 Value realPlusOne = b.create<arith::AddFOp>(real, one); in matchAndRewrite()
767 Value addAbs = b.create<arith::AddFOp>(absLhs, absArg); in matchAndRewrite()
782 imag, b.create<arith::AddFOp>(resultReal, resultReal)); in matchAndRewrite()
918 Value aaPbb = builder.create<arith::AddFOp>( in powOpConversionImpl()
937 Value q = builder.create<arith::AddFOp>( in powOpConversionImpl()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Math/Transforms/
H A DExpandPatterns.cpp38 Value divisor = rewriter.create<arith::AddFOp>(loc, one, exp2x); in convertTanhOp()
44 divisor = rewriter.create<arith::AddFOp>(loc, exp2x, one); in convertTanhOp()
H A DPolynomialApproximation.cpp438 auto addPi = builder.create<arith::AddFOp>(atan, pi); in matchAndRewrite()
637 x = builder.create<arith::AddFOp>(x, tmp); in logMatchAndRewrite()
655 x = builder.create<arith::AddFOp>(x, y0); in logMatchAndRewrite()
745 Value u = builder.create<arith::AddFOp>(x, cstOne); in matchAndRewrite()
867 Value formula = builder.create<arith::AddFOp>(offset, rationalPoly); in matchAndRewrite()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Vector/
H A DTestVectorTransforms.cpp75 if (isa<arith::AddFOp, arith::SelectOp, arith::CmpFOp>(op)) in getShape()
106 return success(isa<arith::AddFOp, arith::SelectOp, arith::CmpFOp, in filter()
297 return success(isa<arith::AddFOp, vector::FMAOp, in runOnOperation()
394 func.walk([&](arith::AddFOp op) { in runOnOperation()
451 func.walk([&](arith::AddFOp op) { in runOnOperation()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/Utils/
H A DUtils.cpp98 return b.create<arith::AddFOp>(loc, lhs, rhs); in add()
/llvm-project-15.0.7/mlir/test/lib/Dialect/SCF/
H A DTestSCFUtils.cpp61 b.create<arith::AddFOp>(loc, yieldVal, yieldVal)); in runOnOperation()
/llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/
H A DTosaToLinalg.cpp66 return rewriter.create<arith::AddFOp>(loc, resultTypes, args); in createLinalgBodyCalculationForElementwiseOp()
445 auto added = rewriter.create<arith::AddFOp>(loc, resultTypes, exp, one); in createLinalgBodyCalculationForElementwiseOp()
517 auto added = rewriter.create<arith::AddFOp>(loc, args[0], half); in createLinalgBodyCalculationForElementwiseOp()
738 return rewriter.create<arith::AddFOp>(loc, args); in createLinalgBodyCalculationForReduceOp()
1435 y = rewriter.create<arith::AddFOp>(loc, y, yOffset); in matchAndRewrite()
1436 x = rewriter.create<arith::AddFOp>(loc, x, xOffset); in matchAndRewrite()
1564 Value topAcc = rewriter.create<arith::AddFOp>(loc, y0x0, y0x1); in matchAndRewrite()
1568 Value bottomAcc = rewriter.create<arith::AddFOp>(loc, y1x0, y1x1); in matchAndRewrite()
1574 Value result = rewriter.create<arith::AddFOp>(loc, topAcc, bottomAcc); in matchAndRewrite()
H A DTosaToLinalgNamed.cpp318 Value added = nestedBuilder.create<arith::AddFOp>( in matchAndRewrite()
459 Value added = nestedBuilder.create<arith::AddFOp>( in matchAndRewrite()
644 Value added = nestedBuilder.create<arith::AddFOp>( in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Transforms/
H A DSparseTensorRewriting.cpp83 if (isa<arith::AddFOp>(def) || isa<arith::AddIOp>(def)) { in isSumOfMul()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DLowerToAffineLoops.cpp130 using AddOpLowering = BinaryOpLowering<toy::AddOp, arith::AddFOp>;
/llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToLLVM/
H A DArithmeticToLLVM.cpp45 using AddFOpLowering = VectorConvertToLLVMPattern<arith::AddFOp, LLVM::FAddOp>;
/llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/
H A DLowerToAffineLoops.cpp130 using AddOpLowering = BinaryOpLowering<toy::AddOp, arith::AddFOp>;
/llvm-project-15.0.7/mlir/examples/toy/Ch5/mlir/
H A DLowerToAffineLoops.cpp130 using AddOpLowering = BinaryOpLowering<toy::AddOp, arith::AddFOp>;
/llvm-project-15.0.7/mlir/lib/Dialect/GPU/Transforms/
H A DAllReduceLowering.cpp220 return isFloatingPoint ? getFactory<arith::AddFOp>() in getFactory()
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Analysis/
H A DAffineAnalysis.cpp55 .Case([](arith::AddFOp) { return arith::AtomicRMWKind::addf; }) in getSupportedReduction() argument
/llvm-project-15.0.7/mlir/lib/Conversion/SCFToOpenMP/
H A DSCFToOpenMP.cpp255 if (matchSimpleReduction<arith::AddFOp, LLVM::FAddOp>(reduction)) { in declareReduction()
/llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Utils/
H A DMerger.cpp986 if (isa<arith::AddFOp>(def)) in buildTensorExp()
1167 return rewriter.create<arith::AddFOp>(loc, v0, v1); in buildExp()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DSplitReduction.cpp36 if (isa<arith::AddFOp>(op)) in getNeutralElement()
/llvm-project-15.0.7/mlir/python/mlir/dialects/linalg/opdsl/lang/
H A Demitter.py418 return arith.AddFOp(lhs, rhs).result
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/IR/
H A DLinalgInterfaces.cpp130 if (!isAddMul<arith::AddFOp, arith::MulFOp>(linalgOp->getRegion(0).front()) && in isContractionInterfaceImpl()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/
H A DArithmeticOps.cpp563 OpFoldResult arith::AddFOp::fold(ArrayRef<Attribute> operands) { in fold()
2012 return builder.create<arith::AddFOp>(loc, lhs, rhs); in getReductionOp()
/llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToSPIRV/
H A DArithmeticToSPIRV.cpp873 spirv::ElementwiseOpPattern<arith::AddFOp, spirv::FAddOp>, in populateArithmeticToSPIRVPatterns()
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/
H A DVectorTransforms.cpp1321 return rewriter.create<arith::AddFOp>(loc, x, y); in createAdd()
1436 rew.create<arith::AddFOp>(loc, op.getAcc(), mul)); in matchAndRewrite()
2737 combinedResult = rewriter.create<arith::AddFOp>(loc, x, y); in genOperator()

12