| /llvm-project-15.0.7/mlir/lib/Conversion/TosaToArith/ |
| H A D | TosaToArith.cpp | 94 multiply64 = rewriter.create<arith::AddIOp>(loc, multiply64, round); in matchAndRewrite() 105 Value val = rewriter.create<arith::AddIOp>(loc, dir, multiply64); in matchAndRewrite() 190 Value rounded = rewriter.create<arith::AddIOp>(loc, shiftLow, roundDir); in matchAndRewrite() 196 low32 = rewriter.create<arith::AddIOp>(loc, low32, shiftRound); in matchAndRewrite() 197 high32 = rewriter.create<arith::AddIOp>(loc, high32, carry); in matchAndRewrite() 207 Value newLow32 = rewriter.create<arith::AddIOp>(loc, low32, roundBit); in matchAndRewrite() 213 high32 = rewriter.create<arith::AddIOp>(loc, high32, rounded32); in matchAndRewrite() 223 high32 = rewriter.create<arith::AddIOp>(loc, high32, roundBit); in matchAndRewrite() 233 Value result = rewriter.create<arith::AddIOp>(loc, low32, high32); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SCF/Transforms/ |
| H A D | LoopRangeFolding.cpp | 48 if (!isa<arith::AddIOp, arith::MulIOp>(user)) in runOnOperation() 62 if (isa<arith::AddIOp>(user)) { in runOnOperation()
|
| H A D | ParallelLoopTiling.cpp | 149 Value index = b.create<arith::AddIOp>( in tileParallelLoop() 164 auto newIndex = b.create<arith::AddIOp>( in tileParallelLoop() 177 auto newIndex = b.create<arith::AddIOp>(op.getLoc(), std::get<0>(ivs), in tileParallelLoop()
|
| H A D | ForToWhile.cpp | 70 auto ivIncOp = rewriter.create<arith::AddIOp>( in matchAndRewrite()
|
| H A D | LoopPipelining.cpp | 287 Value iv = rewriter.create<arith::AddIOp>( in createKernel()
|
| /llvm-project-15.0.7/mlir/test/python/dialects/ |
| H A D | scf.py | 97 add = arith.AddIOp(one, one) 125 add = arith.AddIOp(if_op.results[0], if_op.results[1])
|
| /llvm-project-15.0.7/mlir/lib/Dialect/GPU/Transforms/ |
| H A D | AllReduceLowering.cpp | 76 Value tmp2 = create<arith::AddIOp>(int32Type, tmp1, tidY); in rewrite() 79 Value invocationIdx = create<arith::AddIOp>(int32Type, tmp3, tidX); in rewrite() 120 create<arith::AddIOp>(int32Type, workgroupSize, subgroupMask); in rewrite() 221 : getFactory<arith::AddIOp>(); in getFactory()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/Transforms/ |
| H A D | ExpandOps.cpp | 41 Value plusOne = rewriter.create<arith::AddIOp>(loc, quotient, one); in matchAndRewrite() 66 Value xPlusA = rewriter.create<arith::AddIOp>(loc, x, a); in matchAndRewrite() 68 Value posRes = rewriter.create<arith::AddIOp>(loc, plusOne, xPlusADivB); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/ |
| H A D | TosaToLinalg.cpp | 69 return rewriter.create<arith::AddIOp>(loc, resultTypes, args); in createLinalgBodyCalculationForElementwiseOp() 742 return rewriter.create<arith::AddIOp>(loc, args); in createLinalgBodyCalculationForReduceOp() 1453 y = rewriter.create<arith::AddIOp>(loc, y, yOffset); in matchAndRewrite() 1454 x = rewriter.create<arith::AddIOp>(loc, x, xOffset); in matchAndRewrite() 1495 iy = rewriter.create<arith::AddIOp>(loc, iy, yOffset); in matchAndRewrite() 1496 ix = rewriter.create<arith::AddIOp>(loc, ix, xOffset); in matchAndRewrite() 1525 Value y1 = rewriter.create<arith::AddIOp>(loc, y0, oneVal); in matchAndRewrite() 1526 Value x1 = rewriter.create<arith::AddIOp>(loc, x0, oneVal); in matchAndRewrite() 1596 Value topAcc = rewriter.create<arith::AddIOp>(loc, y0x0, y0x1); in matchAndRewrite() 1600 Value bottomAcc = rewriter.create<arith::AddIOp>(loc, y1x0, y1x1); in matchAndRewrite() [all …]
|
| H A D | TosaToLinalgNamed.cpp | 84 Value paddedBefore = builder.create<arith::AddIOp>(initDim, padBefore); in getConvOutputDim() 86 Value paddedAfter = builder.create<arith::AddIOp>(paddedBefore, padAfter); in getConvOutputDim() 91 Value addOne = builder.create<arith::AddIOp>(dilated, one); in getConvOutputDim() 296 Value added = nestedBuilder.create<arith::AddIOp>( in matchAndRewrite() 486 Value added = nestedBuilder.create<arith::AddIOp>( in matchAndRewrite() 672 Value added = nestedBuilder.create<arith::AddIOp>( in matchAndRewrite() 856 return rewriter.create<arith::AddIOp>(loc, v, offset)->getResult(0); in matchAndRewrite() 933 scaled = rewriter.create<arith::AddIOp>(loc, scaled, outputZp) in matchAndRewrite()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Transforms/ |
| H A D | RewriteLoop.cpp | 71 auto distance = rewriter.create<mlir::arith::AddIOp>(loc, diff, step); in matchAndRewrite() 96 rewriter.create<mlir::arith::AddIOp>(loc, iv, step); in matchAndRewrite() 240 mlir::Value stepped = rewriter.create<mlir::arith::AddIOp>(loc, iv, step); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SCF/Utils/ |
| H A D | Utils.cpp | 299 Value sum = builder.create<arith::AddIOp>(loc, dividend, divisorMinusOneCst); in ceilDivPositive() 313 Value sum = builder.create<arith::AddIOp>(loc, dividend, divisorMinusOne); in ceilDivPositive() 489 upperBoundUnrolled = boundsBuilder.create<arith::AddIOp>( in loopUnrollByFactor() 530 return b.create<arith::AddIOp>(loc, iv, stride); in loopUnrollByFactor() 582 : insideLoopBuilder.create<arith::AddIOp>(loc, scaled, lowerBound); in normalizeLoop() 851 Value stepped = b.create<arith::AddIOp>(t.getLoc(), iv, forOp.getStep()); in stripmineSink()
|
| /llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/ |
| H A D | Factory.h | 206 builder.template create<mlir::arith::AddIOp>(loc, i.value(), one)); in originateIndices() 217 result.push_back(builder.template create<mlir::arith::AddIOp>( in originateIndices()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Async/Transforms/ |
| H A D | AsyncParallelFor.cpp | 321 Value blockEnd0 = b.create<arith::AddIOp>(blockFirstIndex, blockSize); in createParallelComputeFunction() 336 blockEndCoord[i] = b.create<arith::AddIOp>(blockLastCoord[i], c1); in createParallelComputeFunction() 379 computeBlockInductionVars[loopIdx] = b.create<arith::AddIOp>( in createParallelComputeFunction() 534 Value midIndex = b.create<arith::AddIOp>(start, halfDistance); in createAsyncDispatchFunction()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/Utils/ |
| H A D | Utils.cpp | 97 return b.create<arith::AddIOp>(loc, lhs, rhs); in add()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Transforms/ |
| H A D | Sparsification.cpp | 664 return builder.create<arith::AddIOp>( in genAffine() 763 Value add = builder.create<arith::AddIOp>(loc, codegen.expCount, one); in genInsertionStore() 893 return builder.create<arith::AddIOp>(loc, mul, i); in genAddress() 922 ival = builder.create<arith::AddIOp>(loc, ival, incr); in genIndexValue() 1107 Value p1 = builder.create<arith::AddIOp>(loc, p0, one); in genInit() 1449 Value add = builder.create<arith::AddIOp>(loc, op3, one); in genWhileInduction() 1464 builder.create<arith::AddIOp>(loc, codegen.loops[idx], one)); in genWhileInduction()
|
| H A D | SparseTensorRewriting.cpp | 83 if (isa<arith::AddFOp>(def) || isa<arith::AddIOp>(def)) { in isSumOfMul()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Builder/ |
| H A D | Character.cpp | 457 mlir::Value len = builder.create<mlir::arith::AddIOp>(loc, lhsLen, rhsLen); in createConcatenate() 508 substringLen = builder.create<mlir::arith::AddIOp>(loc, substringLen, one); in createSubstring() 552 builder.create<mlir::arith::AddIOp>(loc, iterWhile.getResult(1), one); in createLenTrim()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToLLVM/ |
| H A D | ArithmeticToLLVM.cpp | 25 using AddIOpLowering = VectorConvertToLLVMPattern<arith::AddIOp, LLVM::AddOp>;
|
| /llvm-project-15.0.7/mlir/lib/Conversion/ShapeToStandard/ |
| H A D | ShapeToStandard.cpp | 619 Value add = b.create<arith::AddIOp>(originalIndex, rank); in matchAndRewrite() 691 BinaryOpConversion<AddOp, arith::AddIOp>, in populateShapeToStandardConversionPatterns()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/ |
| H A D | ArithmeticCanonicalization.td | 22 // AddIOp
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Affine/Utils/ |
| H A D | Utils.cpp | 58 return buildBinaryExpr<arith::AddIOp>(expr); in visitAddExpr() 96 builder.create<arith::AddIOp>(loc, remainder, rhs); in visitModExpr() 181 builder.create<arith::AddIOp>(loc, quotient, oneCst); in visitCeilDivExpr()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/ |
| H A D | Transforms.cpp | 773 auto plusLow = rewriter.createOrFold<arith::AddIOp>( in matchAndRewrite() 775 auto plusHigh = rewriter.createOrFold<arith::AddIOp>( in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SCFToControlFlow/ |
| H A D | SCFToControlFlow.cpp | 318 auto stepped = rewriter.create<arith::AddIOp>(loc, iv, step).getResult(); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Affine/Analysis/ |
| H A D | AffineAnalysis.cpp | 57 .Case([](arith::AddIOp) { return arith::AtomicRMWKind::addi; }) in getSupportedReduction() argument
|