Home
last modified time | relevance | path

Searched refs:ConvertOp (Results 1 – 24 of 24) sorted by relevance

/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/
H A DFactory.h77 auto csrc = builder.template create<fir::ConvertOp>(loc, csrcTy, src); in genCharacterCopy()
82 auto cdst = builder.template create<fir::ConvertOp>(loc, cdstTy, dst); in genCharacterCopy()
89 .template create<fir::ConvertOp>(loc, toEleTy(cdstTy), load) in genCharacterCopy()
97 loc, builder.template create<fir::ConvertOp>(loc, one.getType(), v), in genCharacterCopy()
110 ? builder.template create<fir::ConvertOp>(loc, one.getType(), srcLen) in genCharacterCopy()
121 auto csrc = builder.template create<fir::ConvertOp>(loc, csrcTy, src); in genCharacterCopy()
126 auto cdst = builder.template create<fir::ConvertOp>(loc, cdstTy, dst); in genCharacterCopy()
132 : builder.template create<fir::ConvertOp>(loc, toEleTy(cdstTy), load) in genCharacterCopy()
138 auto cdst2 = builder.template create<fir::ConvertOp>(loc, cdstTy, dst); in genCharacterCopy()
/llvm-project-15.0.7/flang/lib/Optimizer/Transforms/
H A DAffineDemotion.cpp90 class ConvertConversion : public mlir::OpRewritePattern<fir::ConvertOp> {
94 matchAndRewrite(fir::ConvertOp op, in matchAndRewrite()
108 rewriter.replaceOpWithNewOp<fir::ConvertOp>(op, flatTy, in matchAndRewrite()
155 target.addDynamicallyLegalOp<fir::ConvertOp>([](fir::ConvertOp op) { in runOnOperation()
H A DCharacterConversion.cpp49 auto castCnt = rewriter.create<fir::ConvertOp>(loc, idxTy, conv.getCount()); in matchAndRewrite()
73 rewriter.create<fir::ConvertOp>(loc, fromPtrTy, conv.getFrom()); in matchAndRewrite()
74 auto toPtr = rewriter.create<fir::ConvertOp>(loc, toPtrTy, conv.getTo()); in matchAndRewrite()
86 ? rewriter.create<fir::ConvertOp>(loc, toTy, load).getResult() in matchAndRewrite()
H A DAbstractResult.cpp106 rewriter.create<fir::ConvertOp>(loc, funTy, callOp.getOperand(0))); in matchAndRewrite()
186 rewriter.replaceOpWithNewOp<fir::ConvertOp>(addrOf, oldFuncTy, newAddrOf); in matchAndRewrite()
H A DMemoryAllocation.cpp133 rewriter.replaceOpWithNewOp<fir::ConvertOp>( in matchAndRewrite()
H A DAffinePromotion.cpp396 static std::pair<mlir::AffineApplyOp, fir::ConvertOp>
410 auto arrayConvert = rewriter.create<fir::ConvertOp>(acoOp.getLoc(), newType, in createAffineOps()
H A DArrayValueCopy.cpp481 while (auto conv = mlir::dyn_cast_or_null<ConvertOp>(op)) in mutuallyExclusiveSliceRange()
953 auto ubi = rewriter.create<ConvertOp>(loc, idxTy, sh); in genArrayCopy()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h492 if (ConvertOp == 0) in canFoldMergeOpcode()
497 if (ConvertOp == 0) in canFoldMergeOpcode()
507 if (ConvertOp == TargetOpcode::G_TRUNC) in canFoldMergeOpcode()
878 unsigned ConvertOp = 0; in tryCombineUnmergeValues() local
883 ConvertOp = SrcOp; in tryCombineUnmergeValues()
915 if (ConvertOp) { in tryCombineUnmergeValues()
952 if (ConvertOp != 0 || NumMergeRegs % NumDefs != 0) in tryCombineUnmergeValues()
978 if (!ConvertOp && DestTy != MergeSrcTy) in tryCombineUnmergeValues()
979 ConvertOp = TargetOpcode::G_BITCAST; in tryCombineUnmergeValues()
981 if (ConvertOp) { in tryCombineUnmergeValues()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Transforms/
H A DBufferizableOpInterfaceImpl.cpp31 sparse_tensor::ConvertOp> {
105 sparse_tensor::ConvertOp::attachInterface<ConvertOpInterface>(*ctx); in registerBufferizableOpInterfaceExternalModels()
H A DSparseTensorRewriting.cpp218 auto convert = rewriter.create<ConvertOp>(loc, denseTp, op.getSrc()); in matchAndRewrite()
228 Value convert = rewriter.create<ConvertOp>(loc, rtp, reshape); in matchAndRewrite()
H A DSparseTensorConversion.cpp656 class SparseTensorConvertConverter : public OpConversionPattern<ConvertOp> {
661 : OpConversionPattern<ConvertOp>(context), options(o) {} in SparseTensorConvertConverter()
664 : OpConversionPattern<ConvertOp>(typeConv, context), options(o) {} in SparseTensorConvertConverter()
667 matchAndRewrite(ConvertOp op, OpAdaptor adaptor, in matchAndRewrite()
H A DSparsification.cpp1790 auto convert = rewriter.create<ConvertOp>(tval.getLoc(), dstTp, tval); in resolveCycle()
/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DBoxedProcedure.cpp148 return builder.create<ConvertOp>(loc, unwrapRefType(type.getEleTy()), in materializeProcedure()
195 rewriter.replaceOpWithNewOp<ConvertOp>( in runOnOperation()
242 rewriter.replaceOpWithNewOp<ConvertOp>(embox, toTy, in runOnOperation()
246 rewriter.replaceOpWithNewOp<ConvertOp>(embox, toTy, in runOnOperation()
H A DTargetRewrite.cpp133 auto cast = rewriter->create<fir::ConvertOp>(loc, memTy, stack); in rewriteCallComplexResultType()
142 auto cast = rewriter->create<fir::ConvertOp>(loc, memTy, mem); in rewriteCallComplexResultType()
163 newOpers.push_back(rewriter->create<fir::ConvertOp>(loc, resTy, mem)); in rewriteCallComplexInputType()
166 auto cast = rewriter->create<fir::ConvertOp>(loc, oldRefTy, mem); in rewriteCallComplexInputType()
579 auto cast = rewriter->create<fir::ConvertOp>(loc, oldArgTy, newArg); in convertSignature()
595 auto cast = rewriter->create<fir::ConvertOp>(loc, oldArgTy, mem); in convertSignature()
630 rewriter->create<fir::ConvertOp>(loc, oldOperTy, newArg); in convertSignature()
645 auto cast = rewriter->create<fir::ConvertOp>(loc, oldOperTy, mem); in convertSignature()
H A DCodeGen.cpp764 struct ConvertOpConversion : public FIROpConversion<fir::ConvertOp> {
772 matchAndRewrite(fir::ConvertOp convert, OpAdaptor adaptor, in matchAndRewrite()
2699 auto convertOp = mlir::dyn_cast<fir::ConvertOp>(op); in matchAndRewrite()
/llvm-project-15.0.7/mlir/test/Integration/Dialect/SparseTensor/python/
H A Dtest_stress.py118 v = st.ConvertOp(types.pop(0), arg0)
120 w = st.ConvertOp(tp, v)
/llvm-project-15.0.7/flang/lib/Optimizer/Dialect/
H A DFIRDialect.cpp55 return builder.create<fir::ConvertOp>(loc, resultType, input); in materializeCallConversion()
H A DFIROps.cpp860 void fir::ConvertOp::getCanonicalizationPatterns( in getCanonicalizationPatterns()
868 mlir::OpFoldResult fir::ConvertOp::fold(llvm::ArrayRef<mlir::Attribute> opnds) { in fold()
871 if (matchPattern(getValue(), mlir::m_Op<fir::ConvertOp>())) { in fold()
872 auto inner = mlir::cast<fir::ConvertOp>(getValue().getDefiningOp()); in fold()
889 bool fir::ConvertOp::isIntegerCompatible(mlir::Type ty) { in isIntegerCompatible()
894 bool fir::ConvertOp::isFloatCompatible(mlir::Type ty) { in isFloatCompatible()
898 bool fir::ConvertOp::isPointerCompatible(mlir::Type ty) { in isPointerCompatible()
904 mlir::LogicalResult fir::ConvertOp::verify() { in verify()
/llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/IR/
H A DSparseTensorDialect.cpp211 LogicalResult ConvertOp::verify() { in verify()
230 OpFoldResult ConvertOp::fold(ArrayRef<Attribute> operands) { in fold()
/llvm-project-15.0.7/flang/unittests/Optimizer/Builder/
H A DComplexTest.cpp100 EXPECT_TRUE(mlir::dyn_cast<fir::ConvertOp>(v2.getDefiningOp())); in TEST_F()
/llvm-project-15.0.7/flang/unittests/Optimizer/Builder/Runtime/
H A DRuntimeCallTestBase.h122 auto convOp = mlir::dyn_cast<fir::ConvertOp>(*u);
/llvm-project-15.0.7/flang/lib/Optimizer/Builder/
H A DFIRBuilder.cpp332 return create<fir::ConvertOp>(loc, toTy, val); in createConvert()
1238 if (mlir::isa_and_nonnull<fir::ConvertOp>(definingOp)) { in getExtentFromTriplet()
1239 auto valOp = mlir::dyn_cast<fir::ConvertOp>(definingOp); in getExtentFromTriplet()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp2751 Value *CopyOp, *ConvertOp; in handleVectorConvertIntrinsic() local
2760 ConvertOp = I.getArgOperand(1); in handleVectorConvertIntrinsic()
2763 ConvertOp = I.getArgOperand(0); in handleVectorConvertIntrinsic()
2777 Value *ConvertShadow = getShadow(ConvertOp); in handleVectorConvertIntrinsic()
2779 if (ConvertOp->getType()->isVectorTy()) { in handleVectorConvertIntrinsic()
2791 insertShadowCheck(AggShadow, getOrigin(ConvertOp), &I); in handleVectorConvertIntrinsic()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/IR/
H A DLinalgOps.cpp1152 returnedArg = rewriter.create<sparse_tensor::ConvertOp>( in matchAndRewrite()