| /llvm-project/mlir/lib/Conversion/ComplexToStandard/ |
| H A D | ComplexToStandard.cpp | 35 Value one = b.create<arith::ConstantOp>(real.getType(), in computeAbs() 38 Value absReal = b.create<math::AbsFOp>(real, fmf); in computeAbs() 39 Value absImag = b.create<math::AbsFOp>(imag, fmf); in computeAbs() 41 Value max = b.create<arith::MaximumFOp>(absReal, absImag, fmf); in computeAbs() 42 Value min = b.create<arith::MinimumFOp>(absReal, absImag, fmf); in computeAbs() 47 Value ratio = b.create<arith::DivFOp>(min, max, fmfWithNaNInf); in computeAbs() 48 Value ratioSq = b.create<arith::MulFOp>(ratio, ratio, fmfWithNaNInf); in computeAbs() 49 Value ratioSqPlusOne = b.create<arith::AddFOp>(ratioSq, one, fmfWithNaNInf); in computeAbs() 53 ratioSqPlusOne = b.create<math::RsqrtOp>(ratioSqPlusOne, fmfWithNaNInf); in computeAbs() 54 min = b.create<mat in computeAbs() [all...] |
| /llvm-project/mlir/lib/Dialect/Bufferization/Transforms/ |
| H A D | LowerDeallocations.cpp | 68 builder.create<memref::DeallocOp>(loc, adaptor.getMemrefs()[0]); in rewriteOneMemrefNoRetainCase() 69 builder.create<scf::YieldOp>(loc); in rewriteOneMemrefNoRetainCase() 112 Value memrefAsIdx = rewriter.create<memref::ExtractAlignedPointerAsIndexOp>( in rewriteOneMemrefMultipleRetainCase() 116 rewriter.create<memref::ExtractAlignedPointerAsIndexOp>(op->getLoc(), in rewriteOneMemrefMultipleRetainCase() 118 Value doesNotAlias = rewriter.create<arith::CmpIOp>( in rewriteOneMemrefMultipleRetainCase() 126 prev = rewriter.create<arith::AndIOp>(op->getLoc(), prev, doesNotAlias); in rewriteOneMemrefMultipleRetainCase() 130 Value shouldDealloc = rewriter.create<arith::AndIOp>( in rewriteOneMemrefMultipleRetainCase() 133 rewriter.create<scf::IfOp>( in rewriteOneMemrefMultipleRetainCase() 135 builder.create<memref::DeallocOp>(loc, adaptor.getMemrefs()[0]); in rewriteOneMemrefMultipleRetainCase() 136 builder.create<sc in rewriteOneMemrefMultipleRetainCase() [all...] |
| /llvm-project/clang/test/SemaOpenACC/ |
| H A D | compute-construct-create-clause.cpp | 17 #pragma acc parallel create(LocalInt) in uses() 19 #pragma acc serial create(LocalInt) in uses() 21 #pragma acc kernels create(LocalInt) in uses() 25 #pragma acc parallel create(LocalInt, LocalPointer, LocalArray) in uses() 27 #pragma acc parallel create(LocalArray[2:1]) in uses() 31 #pragma acc parallel create(LocalComposite2.ScalarMember, LocalComposite2.ScalarMember) in uses() 35 #pragma acc parallel create(1 + IntParam) in uses() 39 #pragma acc parallel create(+IntParam) in uses() 43 #pragma acc parallel create(PointerParam[2:]) in uses() 47 #pragma acc parallel create(ArrayParam[2:5]) in uses() [all …]
|
| H A D | compute-construct-create-clause.c | 16 #pragma acc parallel create(LocalInt) in uses() 18 #pragma acc serial create(LocalInt) in uses() 20 #pragma acc kernels create(LocalInt) in uses() 23 // expected-warning@+1{{OpenACC clause name 'pcreate' is a deprecated clause name and is now an alias for 'create'}} in uses() 27 // expected-warning@+1{{OpenACC clause name 'present_or_create' is a deprecated clause name and is now an alias for 'create'}} in uses() 32 #pragma acc parallel create(LocalInt, LocalPointer, LocalArray) in uses() 34 #pragma acc parallel create(LocalArray[2:1]) in uses() 36 #pragma acc parallel create(zero:LocalArray[2:1]) in uses() 39 #pragma acc parallel create(LocalComposite.ScalarMember, LocalComposite.ScalarMember) in uses() 43 #pragma acc parallel create( in uses() [all...] |
| /llvm-project/mlir/lib/Dialect/Math/Transforms/ |
| H A D | ExpandPatterns.cpp | 35 return b.create<arith::ConstantOp>(loc, in createFloatConst() 39 return b.create<arith::ConstantOp>(loc, attr); in createFloatConst() 52 return b.create<arith::ConstantOp>(loc, in createIntConst() 56 return b.create<arith::ConstantOp>(loc, attr); in createIntConst() 64 Value fixedConvert = b.create<arith::FPToSIOp>(i64Ty, operand); in createTruncatedFPValue() 65 Value fpFixedConvert = b.create<arith::SIToFPOp>(opType, fixedConvert); in createTruncatedFPValue() 68 return b.create<math::CopySignOp>(fpFixedConvert, operand); in createTruncatedFPValue() 77 Value exp = b.create<math::ExpOp>(operand); in convertSinhOp() 78 Value neg = b.create<arith::NegFOp>(operand); in convertSinhOp() 79 Value nexp = b.create<mat in convertSinhOp() [all...] |
| H A D | PolynomialApproximation.cpp | 76 return shape ? builder.create<BroadcastOp>(type, value) : value; in broadcast() 134 builder.create<vector::ShapeCastOp>(expandedType, operand); in handleMultidimensionalVectors() 152 builder.create<vector::ExtractOp>(tuple.value(), offsets); in handleMultidimensionalVectors() 160 Value result = builder.create<arith::ConstantOp>( in handleMultidimensionalVectors() 164 result = builder.create<vector::InsertOp>(results[i], result, in handleMultidimensionalVectors() 168 return builder.create<vector::ShapeCastOp>( in handleMultidimensionalVectors() 173 // Helper functions to create constants. in handleMultidimensionalVectors() 180 return builder.create<arith::ConstantOp>( in floatCst() 185 return builder.create<arith::ConstantOp>(builder.getF32FloatAttr(value)); in floatCst() 189 return builder.create<arit in f32Cst() [all...] |
| /llvm-project/mlir/lib/Conversion/TosaToArith/ |
| H A D | TosaToArith.cpp | 55 return rewriter.create<arith::ConstantOp>( in getConstantValue() 81 Value shift32 = rewriter.create<arith::ExtUIOp>(loc, i32Ty, op.getShift()); in matchAndRewrite() 86 value64 = rewriter.create<arith::ExtSIOp>(loc, i64Ty, value); in matchAndRewrite() 88 rewriter.create<arith::ExtSIOp>(loc, i64Ty, multiplier32); in matchAndRewrite() 90 rewriter.create<arith::MulIOp>(loc, value64, multiplier64); in matchAndRewrite() 93 Value shift64 = rewriter.create<arith::ExtUIOp>(loc, i64Ty, shift32); in matchAndRewrite() 94 Value round = rewriter.create<arith::ShLIOp>(loc, one64, shift64); in matchAndRewrite() 95 round = rewriter.create<arith::ShRUIOp>(loc, round, one64); in matchAndRewrite() 96 multiply64 = rewriter.create<arith::AddIOp>(loc, multiply64, round); in matchAndRewrite() 103 Value positive = rewriter.create<arit in matchAndRewrite() [all...] |
| /llvm-project/mlir/lib/Conversion/TosaToLinalg/ |
| H A D | TosaToLinalg.cpp | 45 return rewriter.create<arith::ConstantOp>( in createConstFromIntAttribute() 58 return rewriter.create<math::AbsFOp>(loc, resultTypes, args); in createLinalgBodyCalculationForElementwiseOp() 61 auto zero = rewriter.create<arith::ConstantOp>( in createLinalgBodyCalculationForElementwiseOp() 63 auto neg = rewriter.create<arith::SubIOp>(loc, zero, args[0]); in createLinalgBodyCalculationForElementwiseOp() 64 return rewriter.create<arith::MaxSIOp>(loc, args[0], neg); in createLinalgBodyCalculationForElementwiseOp() 69 return rewriter.create<arith::AddFOp>(loc, resultTypes, args); in createLinalgBodyCalculationForElementwiseOp() 72 return rewriter.create<arith::AddIOp>(loc, resultTypes, args); in createLinalgBodyCalculationForElementwiseOp() 76 return rewriter.create<arith::SubFOp>(loc, resultTypes, args); in createLinalgBodyCalculationForElementwiseOp() 79 return rewriter.create<arith::SubIOp>(loc, resultTypes, args); in createLinalgBodyCalculationForElementwiseOp() 83 return rewriter.create<arit in createLinalgBodyCalculationForElementwiseOp() [all...] |
| H A D | TosaToLinalgNamed.cpp | 63 Value padValue = rewriter.create<arith::ConstantOp>(loc, padAttr); in applyPad() 65 return rewriter.create<tensor::PadOp>( in applyPad() 76 .create<linalg::GenericOp>( in linalgIntBroadcastExtSIAdd() 83 biasVal = builder.create<arith::ExtSIOp>(loc, resType, biasVal); in linalgIntBroadcastExtSIAdd() 85 Value added = builder.create<arith::AddIOp>(loc, biasVal, args[1]); in linalgIntBroadcastExtSIAdd() 86 builder.create<linalg::YieldOp>(loc, added); in linalgIntBroadcastExtSIAdd() 135 .create<linalg::GenericOp>( in linalgBroadcastAndMaybeExtSI() 142 biasVal = builder.create<arith::ExtSIOp>(loc, resType, biasVal); 144 builder.create<linalg::YieldOp>(loc, biasVal); in reifyConstantDim() 151 return builder.create<arit [all...] |
| /llvm-project/mlir/lib/Dialect/Async/Transforms/ |
| H A D | AsyncParallelFor.cpp | 201 coords[i] = b.create<arith::RemSIOp>(index, tripCounts[i]); in delinearize() 202 index = b.create<arith::DivSIOp>(index, tripCounts[i]); in delinearize() 261 func::FuncOp func = func::FuncOp::create( in createParallelComputeFunction() 286 Value c0 = b.create<arith::ConstantIndexOp>(0); in createParallelComputeFunction() 287 Value c1 = b.create<arith::ConstantIndexOp>(1); in createParallelComputeFunction() 294 return b.create<arith::ConstantOp>(attr); in createParallelComputeFunction() 313 tripCount = b.create<arith::MulIOp>(tripCount, tripCounts[i]); in createParallelComputeFunction() 317 Value blockFirstIndex = b.create<arith::MulIOp>(blockIndex, blockSize); in createParallelComputeFunction() 321 Value blockEnd0 = b.create<arith::AddIOp>(blockFirstIndex, blockSize); in createParallelComputeFunction() 322 Value blockEnd1 = b.create<arit in createParallelComputeFunction() [all...] |
| /llvm-project/mlir/lib/Conversion/MathToFuncs/ |
| H A D | MathToFuncs.cpp | 124 Value result = rewriter.create<arith::ConstantOp>( in matchAndRewrite() 132 rewriter.create<vector::ExtractOp>(loc, input, positions)); in matchAndRewrite() 134 rewriter.create<Op>(loc, vecType.getElementType(), operands); in matchAndRewrite() 136 rewriter.create<vector::InsertOp>(loc, scalarOp, result, positions); in matchAndRewrite() 198 auto funcOp = builder.create<func::FuncOp>(funcName, funcType); in createElementIPowIFunc() 211 Value zeroValue = builder.create<arith::ConstantOp>( in createElementIPowIFunc() 213 Value oneValue = builder.create<arith::ConstantOp>( in createElementIPowIFunc() 215 Value minusOneValue = builder.create<arith::ConstantOp>( in createElementIPowIFunc() 224 builder.create<arith::CmpIOp>(arith::CmpIPredicate::eq, pArg, zeroValue); in createElementIPowIFunc() 226 builder.create<fun in createElementIPowIFunc() [all...] |
| /llvm-project/flang/unittests/Optimizer/Builder/Runtime/ |
| H A D | TransformationalTest.cpp | 19 mlir::Value result = builder.create<fir::UndefOp>(loc, seqTy); in testGenBesselJn() 20 mlir::Value n1 = builder.create<fir::UndefOp>(loc, i32Ty); in testGenBesselJn() 21 mlir::Value n2 = builder.create<fir::UndefOp>(loc, i32Ty); in testGenBesselJn() 22 mlir::Value x = builder.create<fir::UndefOp>(loc, realTy); in testGenBesselJn() 23 mlir::Value bn1 = builder.create<fir::UndefOp>(loc, realTy); in testGenBesselJn() 24 mlir::Value bn2 = builder.create<fir::UndefOp>(loc, realTy); in testGenBesselJn() 42 mlir::Value result = builder.create<fir::UndefOp>(loc, seqTy); in testGenBesselJnX0() 43 mlir::Value n1 = builder.create<fir::UndefOp>(loc, i32Ty); in testGenBesselJnX0() 44 mlir::Value n2 = builder.create<fir::UndefOp>(loc, i32Ty); in testGenBesselJnX0() 62 mlir::Value result = builder.create<fir::UndefOp>(loc, seqTy); in testGenBesselYn() [all …]
|
| H A D | CharacterTest.cpp | 18 mlir::Value result = firBuilder->create<fir::UndefOp>(loc, boxTy); in TEST_F() 19 mlir::Value string = firBuilder->create<fir::UndefOp>(loc, boxTy); in TEST_F() 26 mlir::Value result = firBuilder->create<fir::UndefOp>(loc, boxTy); in TEST_F() 27 mlir::Value string = firBuilder->create<fir::UndefOp>(loc, boxTy); in TEST_F() 36 mlir::Value lhsBuff = builder.create<fir::UndefOp>(loc, type); in checkCharCompare1() 37 mlir::Value lhsLen = builder.create<fir::UndefOp>(loc, i32Ty); in checkCharCompare1() 38 mlir::Value rhsBuff = builder.create<fir::UndefOp>(loc, type); in checkCharCompare1() 39 mlir::Value rhsLen = builder.create<fir::UndefOp>(loc, i32Ty); in checkCharCompare1() 75 mlir::Value lhsBuff = builder.create<fir::UndefOp>(loc, boxCharTy); in checkCharCompare2() 76 mlir::Value lhsLen = builder.create<fir::UndefOp>(loc, i32Ty); in checkCharCompare2() [all …]
|
| /llvm-project/mlir/lib/Dialect/SparseTensor/Transforms/ |
| H A D | SparseBufferRewriting.cpp | 97 func = builder.create<func::FuncOp>( in getMangledSortHelperFunc() 114 Value iOffset = builder.create<arith::MulIOp>(loc, args[0], cstep); in forEachIJPairInXs() 115 Value jOffset = builder.create<arith::MulIOp>(loc, args[1], cstep); in forEachIJPairInXs() 119 Value i = builder.create<arith::AddIOp>(loc, ak, iOffset); in forEachIJPairInXs() 120 Value j = builder.create<arith::AddIOp>(loc, ak, jOffset); in forEachIJPairInXs() 168 Value vi = builder.create<memref::LoadOp>(loc, buffer, i); in createSwap() 169 Value vj = builder.create<memref::LoadOp>(loc, buffer, j); in createSwap() 170 builder.create<memref::StoreOp>(loc, vj, buffer, i); in createSwap() 171 builder.create<memref::StoreOp>(loc, vi, buffer, j); in createSwap() 178 /// each pair is create vi [all...] |
| /llvm-project/mlir/lib/Conversion/ShapeToStandard/ |
| H A D | ShapeToStandard.cpp | 85 Value one = lb.create<arith::ConstantIndexOp>(1); in getBroadcastedDim() 90 Value outOfBounds = lb.create<arith::CmpIOp>(arith::CmpIPredicate::ult, in getBroadcastedDim() 94 lb.create<IfOp>( in getBroadcastedDim() 97 b.create<scf::YieldOp>(loc, broadcastedDim); in getBroadcastedDim() 107 Value lesserRankOperandDimension = b.create<arith::SubIOp>( in getBroadcastedDim() 109 Value lesserRankOperandExtent = b.create<tensor::ExtractOp>( in getBroadcastedDim() 113 b.create<arith::CmpIOp>(loc, arith::CmpIPredicate::eq, in getBroadcastedDim() 115 Value dim = b.create<arith::SelectOp>( in getBroadcastedDim() 117 b.create<scf::YieldOp>(loc, dim); in getBroadcastedDim() 136 Value zero = lb.create<arith::ConstantIndexOp>(0); in matchAndRewrite() [all …]
|
| /llvm-project/mlir/lib/Dialect/GPU/Transforms/ |
| H A D | AllReduceLowering.cpp | 77 Value tmp1 = create<arith::MulIOp>(int32Type, tidZ, dimY); in rewrite() 78 Value tmp2 = create<arith::AddIOp>(int32Type, tmp1, tidY); in rewrite() 79 Value tmp3 = create<arith::MulIOp>(int32Type, tmp2, dimX); in rewrite() 80 Value tmp4 = create<arith::MulIOp>(int32Type, dimX, dimY); in rewrite() 81 Value invocationIdx = create<arith::AddIOp>(int32Type, tmp3, tidX); in rewrite() 82 Value workgroupSize = create<arith::MulIOp>(int32Type, tmp4, dimZ); in rewrite() 86 create<arith::ConstantIntOp>(kSubgroupSize - 1, int32Type); in rewrite() 87 Value laneId = create<arith::AndIOp>(invocationIdx, subgroupMask); in rewrite() 89 create<arith::CmpIOp>(arith::CmpIPredicate::eq, laneId, in rewrite() 90 create<arith::ConstantIntOp>(0, int32Type)); in rewrite() [all …]
|
| /llvm-project/mlir/lib/Dialect/Arith/Transforms/ |
| H A D | ExpandOps.cpp | 31 return rewriter.create<arith::ConstantOp>( in createConst() 35 return rewriter.create<arith::ConstantOp>(loc, attr); in createConst() 51 rewriter.create<arith::CmpIOp>(loc, arith::CmpIPredicate::eq, a, zero); in matchAndRewrite() 53 Value minusOne = rewriter.create<arith::SubIOp>(loc, a, one); in matchAndRewrite() 54 Value quotient = rewriter.create<arith::DivUIOp>(loc, minusOne, b); in matchAndRewrite() 55 Value plusOne = rewriter.create<arith::AddIOp>(loc, quotient, one); in matchAndRewrite() 77 rewriter.create<arith::CmpIOp>(loc, arith::CmpIPredicate::sgt, b, zero); in matchAndRewrite() 78 Value x = rewriter.create<arith::SelectOp>(loc, compare, minusOne, plusOne); in matchAndRewrite() 80 Value xPlusA = rewriter.create<arith::AddIOp>(loc, x, a); in matchAndRewrite() 81 Value xPlusADivB = rewriter.create<arith::DivSIOp>(loc, xPlusA, b); in matchAndRewrite() [all …]
|
| /llvm-project/flang/include/flang/Optimizer/Builder/ |
| H A D | Factory.h | 52 auto load = builder.template create<fir::LoadOp>(loc, src); in genCharacterCopy() 53 builder.template create<fir::StoreOp>(loc, load, dst); in genCharacterCopy() 56 auto zero = builder.template create<mlir::arith::ConstantIndexOp>(loc, 0); in genCharacterCopy() 57 auto one = builder.template create<mlir::arith::ConstantIndexOp>(loc, 1); in genCharacterCopy() 71 auto upper = builder.template create<mlir::arith::ConstantIndexOp>( in genCharacterCopy() 73 auto loop = builder.template create<fir::DoLoopOp>(loc, zero, upper, one); in genCharacterCopy() 77 auto csrc = builder.template create<fir::ConvertOp>(loc, csrcTy, src); in genCharacterCopy() 78 auto in = builder.template create<fir::CoordinateOp>( in genCharacterCopy() 80 auto load = builder.template create<fir::LoadOp>(loc, in); in genCharacterCopy() 82 auto cdst = builder.template create<fir::ConvertOp>(loc, cdstTy, dst); in genCharacterCopy() [all …]
|
| /llvm-project/mlir/lib/Dialect/Arith/Utils/ |
| H A D | Utils.cpp | 71 b.create<arith::ConstantIndexOp>(loc, indexGroupStaticSizesProductInt); in inferExpandShapeOutputShape() 108 return b.create<arith::ConstantOp>( in getValueOrCreateConstantIntOp() 117 return b.create<arith::ConstantIndexOp>(loc, attr.getValue().getSExtValue()); in getValueOrCreateConstantIndexOp() 128 return b.create<arith::IndexCastOp>(loc, targetType, value); in getValueOrCreateCastToIndexLike() 137 return b.create<arith::ExtSIOp>(loc, targetIntegerType, value); in getValueOrCreateCastToIndexLike() 138 return b.create<arith::TruncIOp>(loc, targetIntegerType, value); in getValueOrCreateCastToIndexLike() 146 return b.create<arith::FPToUIOp>(toType, operand); in convertScalarToIntDtype() 147 return b.create<arith::FPToSIOp>(toType, operand); in convertScalarToIntDtype() 151 return b.create<arith::IndexCastOp>(toType, operand); in convertScalarToIntDtype() 156 return b.create<arit in convertScalarToIntDtype() [all...] |
| /llvm-project/llvm/unittests/Support/ |
| H A D | GlobPatternTest.cpp | 18 Expected<GlobPattern> Pat1 = GlobPattern::create(""); in TEST_F() 25 Expected<GlobPattern> Pat1 = GlobPattern::create("ab*c*def"); in TEST_F() 35 Expected<GlobPattern> Pat1 = GlobPattern::create("a??c"); in TEST_F() 43 Expected<GlobPattern> Pat1 = GlobPattern::create("\\*"); in TEST_F() 49 Expected<GlobPattern> Pat2 = GlobPattern::create("a?\\?c"); in TEST_F() 55 auto Pat3 = GlobPattern::create("\\{"); in TEST_F() 61 auto Pat4 = GlobPattern::create("\\a"); in TEST_F() 68 Expected<GlobPattern> Pat = GlobPattern::create(S); in TEST_F() 79 Expected<GlobPattern> Pat1 = GlobPattern::create("[abc-fy-z]"); in TEST_F() 92 Expected<GlobPattern> Pat2 = GlobPattern::create("[ab]*[cd]?**[ef]"); in TEST_F() [all …]
|
| /llvm-project/mlir/lib/Conversion/ArmSMEToSCF/ |
| H A D | ArmSMEToSCF.cpp | 42 rewriter.create<arith::MulIOp>(loc, tileSliceOffset, tileSliceNumElts); in getMemrefIndices() 45 rewriter.create<arith::AddIOp>(loc, indices[0], tileSliceOffset); in getMemrefIndices() 63 auto minTileSlices = rewriter.create<arith::ConstantIndexOp>( in createLoadStoreForOverTileSlices() 66 rewriter.create<vector::VectorScaleOp>(loc, rewriter.getIndexType()); in createLoadStoreForOverTileSlices() 74 rewriter.create<arith::MulIOp>(loc, minTileSlices, vscale); in createLoadStoreForOverTileSlices() 91 auto numRowI64 = rewriter.create<arith::IndexCastOp>( in createLoadStoreForOverTileSlices() 93 auto numTileSlicesI64 = rewriter.create<arith::IndexCastOp>( in createLoadStoreForOverTileSlices() 96 rewriter.create<arith::MinSIOp>(loc, numRowI64, numTileSlicesI64); in createLoadStoreForOverTileSlices() 97 upperBound = rewriter.create<arith::IndexCastOp>( in createLoadStoreForOverTileSlices() 101 rewriter.create<vecto in createLoadStoreForOverTileSlices() [all...] |
| /llvm-project/libc/test/src/__support/ |
| H A D | big_int_test.cpp | 22 template <typename T> auto create(Value value) { in create() 56 ASSERT_SAME(create<T>(ZERO) + create<T>(ZERO), create<T>(ZERO)); in TYPED_TEST() 57 ASSERT_SAME(create<T>(ONE) + create<T>(ZERO), create<T>(ONE)); in TYPED_TEST() 58 ASSERT_SAME(create<T>(ZERO) + create<T>(ONE), create< in TYPED_TEST() 21 template <typename T> auto create(Value value) { create() function [all...] |
| /llvm-project/mlir/test/lib/Conversion/MathToVCIX/ |
| H A D | TestMathToVCIXConversion.cpp | 72 rvl = rewriter.create<arith::ConstantOp>(loc, in matchAndRewrite() 76 res = rewriter.create<vcix::BinaryImmOp>(loc, legalType, opcodeAttr, vec, in matchAndRewrite() 81 Value zero = rewriter.create<arith::ConstantOp>( in matchAndRewrite() 83 res = rewriter.create<vector::BroadcastOp>(loc, opType, zero /*dummy*/); in matchAndRewrite() 85 Value extracted = rewriter.create<vector::ScalableExtractOp>( in matchAndRewrite() 87 Value v = rewriter.create<vcix::BinaryImmOp>(loc, legalType, opcodeAttr, in matchAndRewrite() 89 res = rewriter.create<vector::ScalableInsertOp>(loc, v, res, in matchAndRewrite() 115 rvl = rewriter.create<arith::ConstantOp>(loc, in matchAndRewrite() 119 res = rewriter.create<vcix::BinaryOp>(loc, legalType, opcodeAttr, vec, in matchAndRewrite() 124 Value zero = rewriter.create<arit in matchAndRewrite() [all...] |
| /llvm-project/mlir/lib/Conversion/ArmSMEToLLVM/ |
| H A D | ArmSMEToLLVM.cpp | 41 /// Helper to create an arm_sme.intr.ld1*.(horiz|vert)' intrinsic. in createLoadTileSliceIntrinsic() 49 return rewriter.create<arm_sme::aarch64_sme_ld1b_horiz>( in createLoadTileSliceIntrinsic() 52 return rewriter.create<arm_sme::aarch64_sme_ld1h_horiz>( in createLoadTileSliceIntrinsic() 55 return rewriter.create<arm_sme::aarch64_sme_ld1w_horiz>( in createLoadTileSliceIntrinsic() 58 return rewriter.create<arm_sme::aarch64_sme_ld1d_horiz>( in createLoadTileSliceIntrinsic() 61 return rewriter.create<arm_sme::aarch64_sme_ld1q_horiz>( in createLoadTileSliceIntrinsic() 67 return rewriter.create<arm_sme::aarch64_sme_ld1b_vert>( in createLoadTileSliceIntrinsic() 70 return rewriter.create<arm_sme::aarch64_sme_ld1h_vert>( in createLoadTileSliceIntrinsic() 73 return rewriter.create<arm_sme::aarch64_sme_ld1w_vert>( in createLoadTileSliceIntrinsic() 76 return rewriter.create<arm_sm in createLoadTileSliceIntrinsic() [all...] |
| /llvm-project/mlir/lib/Conversion/IndexToLLVM/ |
| H A D | IndexToLLVM.cpp | 39 Value zero = rewriter.create<LLVM::ConstantOp>(loc, n.getType(), 0); in matchAndRewrite() 40 Value posOne = rewriter.create<LLVM::ConstantOp>(loc, n.getType(), 1); in matchAndRewrite() 41 Value negOne = rewriter.create<LLVM::ConstantOp>(loc, n.getType(), -1); in matchAndRewrite() 45 rewriter.create<LLVM::ICmpOp>(loc, LLVM::ICmpPredicate::sgt, m, zero); in matchAndRewrite() 46 Value x = rewriter.create<LLVM::SelectOp>(loc, mPos, negOne, posOne); in matchAndRewrite() 49 Value nPlusX = rewriter.create<LLVM::AddOp>(loc, n, x); in matchAndRewrite() 50 Value nPlusXDivM = rewriter.create<LLVM::SDivOp>(loc, nPlusX, m); in matchAndRewrite() 51 Value posRes = rewriter.create<LLVM::AddOp>(loc, nPlusXDivM, posOne); in matchAndRewrite() 54 Value negN = rewriter.create<LLVM::SubOp>(loc, zero, n); in matchAndRewrite() 55 Value negNDivM = rewriter.create<LLV in matchAndRewrite() [all...] |