Home
last modified time | relevance | path

Searched refs:getResultTypes (Results 1 – 25 of 105) sorted by relevance

12345

/llvm-project-15.0.7/mlir/lib/Dialect/SCF/Transforms/
H A DStructuralTypeConversions.cpp26 for (auto type : op.getResultTypes()) { in matchAndRewrite()
94 for (auto type : op.getResultTypes()) { in matchAndRewrite()
146 if (failed(converter->convertTypes(op.getResultTypes(), newResultTypes))) in matchAndRewrite()
184 return typeConverter.isLegal(op->getResultTypes()); in populateSCFStructuralTypeConversionsAndLegality()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DElementwiseToLinalg.cpp48 TypeRange rankedTensorTypes = op->getResultTypes(); in getOrCreateOperandsMatchingResultTypes()
94 op, /*resultTensorTypes=*/op->getResultTypes(), in matchAndRewrite()
102 llvm::map_range(op->getResultTypes(), [](Type type) { in matchAndRewrite()
H A DDecomposeLinalgOps.cpp198 SmallVector<Type> resultTypes = llvm::to_vector(genericOp.getResultTypes()); in createPeeledGenericOp()
241 genericOp->getLoc(), genericOp->getResultTypes(), in createResidualGenericOp()
291 if (llvm::any_of(body->getOperations().begin()->getResultTypes(), in matchAndRewrite()
H A DInlineScalarOperands.cpp57 loc, genericOp->getResultTypes(), newOperands, outputOperands, in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/OpenMPToLLVM/
H A DOpenMPToLLVM.cpp58 if (failed(converter->convertTypes(curOp->getResultTypes(), resTypes))) in matchAndRewrite()
105 typeConverter.isLegal(op->getResultTypes()); in configureOpenMPToLLVMConversionLegality()
112 typeConverter.isLegal(op->getResultTypes()); in configureOpenMPToLLVMConversionLegality()
/llvm-project-15.0.7/mlir/lib/Conversion/TosaToSCF/
H A DTosaToSCF.cpp73 auto newIf = rewriter.create<scf::IfOp>(op.getLoc(), op.getResultTypes(), in matchAndRewrite()
93 op.getLoc(), op.getResultTypes(), op.getInputs()); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Func/IR/
H A DFuncOps.cpp153 diag.attachNote() << " op result types: " << getResultTypes(); in verifySymbolUses()
162 return FunctionType::get(getContext(), getOperandTypes(), getResultTypes()); in getCalleeType()
179 indirectCall.getResultTypes(), in canonicalize()
/llvm-project-15.0.7/mlir/lib/IR/
H A DOperation.cpp572 auto *newOp = create(getLoc(), getName(), getResultTypes(), operands, attrs, in clone()
838 types.append(llvm::to_vector<4>(op->getResultTypes())); in verifySameOperandsAndResultShape()
892 for (auto resultType : llvm::drop_begin(op->getResultTypes())) { in verifySameOperandsAndResultType()
960 for (auto resultType : op->getResultTypes()) { in verifyResultsAreBoolLike()
971 for (auto resultType : op->getResultTypes()) in verifyResultsAreFloatLike()
980 for (auto resultType : op->getResultTypes()) in verifyResultsAreSignlessIntegerLike()
1049 llvm::make_filter_range(op->getResultTypes(), isMappableType)); in verifyElementwise()
1159 auto resultTypes = op->getResultTypes(); in verifyCastInterfaceOp()
/llvm-project-15.0.7/mlir/test/lib/IR/
H A DTestInterfaces.cpp29 for (Type type : op->getResultTypes()) { in runOnOperation()
/llvm-project-15.0.7/mlir/test/lib/Dialect/SCF/
H A DTestSCFUtils.cpp155 rewriter.create<scf::IfOp>(loc, op->getResultTypes(), pred, true); in predicateOp()
164 for (Type type : op->getResultTypes()) { in predicateOp()
/llvm-project-15.0.7/mlir/lib/Conversion/ReconcileUnrealizedCasts/
H A DReconcileUnrealizedCasts.cpp40 return other.getResultTypes() == op.getInputs().getTypes() && in matchAndRewrite()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DShapeInferencePass.cpp104 return llvm::any_of(op->getResultTypes(), [](Type resultType) { in returnsDynamicShape()
/llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/
H A DShapeInferencePass.cpp104 return llvm::any_of(op->getResultTypes(), [](Type resultType) { in returnsDynamicShape()
/llvm-project-15.0.7/mlir/examples/toy/Ch4/mlir/
H A DShapeInferencePass.cpp104 return llvm::any_of(op->getResultTypes(), [](Type resultType) { in returnsDynamicShape()
/llvm-project-15.0.7/mlir/examples/toy/Ch5/mlir/
H A DShapeInferencePass.cpp104 return llvm::any_of(op->getResultTypes(), [](Type resultType) { in returnsDynamicShape()
/llvm-project-15.0.7/mlir/lib/Dialect/
H A DTraits.cpp235 auto resultsHasTensorVectorType = hasTensorOrVectorType(op->getResultTypes()); in verifyCompatibleOperandBroadcast()
262 op->getResultTypes(), [](Type t) { return t.isa<RankedTensorType>(); }); in verifyCompatibleOperandBroadcast()
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/
H A DVectorDistribute.cpp85 Type resultType = warpOp->getResultTypes()[it.index()]; in rewriteWarpOpToScfFor()
173 SmallVector<Type> types(warpOp.getResultTypes().begin(), in moveRegionToNewWarpOpAndAppendReturns()
174 warpOp.getResultTypes().end()); in moveRegionToNewWarpOpAndAppendReturns()
709 warpOp->getResultTypes()[operandNumber].cast<VectorType>(); in matchAndRewrite()
812 warpOp.getLoc(), newForOp.getResultTypes(), warpOp.getLaneid(), in matchAndRewrite()
814 forOp.getResultTypes()); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Async/IR/
H A DAsync.cpp153 p.printOptionalArrowTypeList(llvm::drop_begin(getResultTypes())); in print()
308 if (argType.isa<TokenType>() && !getResultTypes().empty()) in verify()
/llvm-project-15.0.7/mlir/lib/Dialect/GPU/Transforms/
H A DAsyncRegionRewriter.cpp105 copy(op->getResultTypes(), std::back_inserter(resultTypes)); in rewriteAsyncOp()
149 transform(executeOp.getResultTypes(), std::back_inserter(resultTypes), in addExecuteResults()
/llvm-project-15.0.7/mlir/lib/Dialect/Quant/IR/
H A DQuantOps.cpp85 for (auto result : llvm::zip(getResultTypes(), getOutputSpecs())) { in verify()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DFunctionInterfaces.td63 "::llvm::ArrayRef<::mlir::Type>", "getResultTypes">,
279 unsigned getNumResults() { return $_op.getResultTypes().size(); }
372 $_op.getResultTypes(), resultIndices, resultTypes, resultStorage);
385 $_op.getResultTypes(), resultIndices, resultStorage);
392 return $_op.cloneTypeWith(newArgTypes, $_op.getResultTypes());
397 $_op.getResultTypes(), resultIndices, resultStorage);
H A DOperation.h343 result_type_iterator result_type_begin() { return getResultTypes().begin(); } in result_type_begin()
344 result_type_iterator result_type_end() { return getResultTypes().end(); } in result_type_end()
345 result_type_range getResultTypes() { return getResults().getTypes(); } in getResultTypes() function
/llvm-project-15.0.7/mlir/lib/Conversion/NVGPUToNVVM/
H A DNVGPUToNVVM.cpp207 auto vectorResultType = op->getResultTypes()[0].dyn_cast<VectorType>(); in matchAndRewrite()
312 Type desiredRetTy = typeConverter->convertType(op->getResultTypes()[0]); in matchAndRewrite()
314 typeConverter->convertType(op->getResultTypes()[0])); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/Transforms/
H A DBufferize.cpp302 bool hasTensorResult = any_of(funcOp.getResultTypes(), isaTensor); in hasTensorSemantics()
306 bool hasTensorResult = any_of(op->getResultTypes(), isaTensor); in hasTensorSemantics()
/llvm-project-15.0.7/mlir/lib/Dialect/Func/Transforms/
H A DFuncConversions.cpp28 if (failed(typeConverter->convertTypes(callOp.getResultTypes(), in matchAndRewrite()

12345