| /llvm-project-15.0.7/mlir/test/lib/IR/ |
| H A D | TestMatchers.cpp | 51 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 D | dialects.py | 85 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 D | ComplexToStandard.cpp | 40 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 D | ExpandPatterns.cpp | 38 Value divisor = rewriter.create<arith::AddFOp>(loc, one, exp2x); in convertTanhOp() 44 divisor = rewriter.create<arith::AddFOp>(loc, exp2x, one); in convertTanhOp()
|
| H A D | PolynomialApproximation.cpp | 438 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 D | TestVectorTransforms.cpp | 75 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 D | Utils.cpp | 98 return b.create<arith::AddFOp>(loc, lhs, rhs); in add()
|
| /llvm-project-15.0.7/mlir/test/lib/Dialect/SCF/ |
| H A D | TestSCFUtils.cpp | 61 b.create<arith::AddFOp>(loc, yieldVal, yieldVal)); in runOnOperation()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/ |
| H A D | TosaToLinalg.cpp | 66 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 D | TosaToLinalgNamed.cpp | 318 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 D | SparseTensorRewriting.cpp | 83 if (isa<arith::AddFOp>(def) || isa<arith::AddIOp>(def)) { in isSumOfMul()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/ |
| H A D | LowerToAffineLoops.cpp | 130 using AddOpLowering = BinaryOpLowering<toy::AddOp, arith::AddFOp>;
|
| /llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToLLVM/ |
| H A D | ArithmeticToLLVM.cpp | 45 using AddFOpLowering = VectorConvertToLLVMPattern<arith::AddFOp, LLVM::FAddOp>;
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/ |
| H A D | LowerToAffineLoops.cpp | 130 using AddOpLowering = BinaryOpLowering<toy::AddOp, arith::AddFOp>;
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch5/mlir/ |
| H A D | LowerToAffineLoops.cpp | 130 using AddOpLowering = BinaryOpLowering<toy::AddOp, arith::AddFOp>;
|
| /llvm-project-15.0.7/mlir/lib/Dialect/GPU/Transforms/ |
| H A D | AllReduceLowering.cpp | 220 return isFloatingPoint ? getFactory<arith::AddFOp>() in getFactory()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Affine/Analysis/ |
| H A D | AffineAnalysis.cpp | 55 .Case([](arith::AddFOp) { return arith::AtomicRMWKind::addf; }) in getSupportedReduction() argument
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SCFToOpenMP/ |
| H A D | SCFToOpenMP.cpp | 255 if (matchSimpleReduction<arith::AddFOp, LLVM::FAddOp>(reduction)) { in declareReduction()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Utils/ |
| H A D | Merger.cpp | 986 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 D | SplitReduction.cpp | 36 if (isa<arith::AddFOp>(op)) in getNeutralElement()
|
| /llvm-project-15.0.7/mlir/python/mlir/dialects/linalg/opdsl/lang/ |
| H A D | emitter.py | 418 return arith.AddFOp(lhs, rhs).result
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/IR/ |
| H A D | LinalgInterfaces.cpp | 130 if (!isAddMul<arith::AddFOp, arith::MulFOp>(linalgOp->getRegion(0).front()) && in isContractionInterfaceImpl()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/ |
| H A D | ArithmeticOps.cpp | 563 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 D | ArithmeticToSPIRV.cpp | 873 spirv::ElementwiseOpPattern<arith::AddFOp, spirv::FAddOp>, in populateArithmeticToSPIRVPatterns()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/ |
| H A D | VectorTransforms.cpp | 1321 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()
|