| /llvm-project-15.0.7/mlir/lib/Dialect/SCF/Transforms/ |
| H A D | StructuralTypeConversions.cpp | 26 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 D | ElementwiseToLinalg.cpp | 48 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 D | DecomposeLinalgOps.cpp | 198 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 D | InlineScalarOperands.cpp | 57 loc, genericOp->getResultTypes(), newOperands, outputOperands, in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/OpenMPToLLVM/ |
| H A D | OpenMPToLLVM.cpp | 58 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 D | TosaToSCF.cpp | 73 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 D | FuncOps.cpp | 153 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 D | Operation.cpp | 572 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 D | TestInterfaces.cpp | 29 for (Type type : op->getResultTypes()) { in runOnOperation()
|
| /llvm-project-15.0.7/mlir/test/lib/Dialect/SCF/ |
| H A D | TestSCFUtils.cpp | 155 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 D | ReconcileUnrealizedCasts.cpp | 40 return other.getResultTypes() == op.getInputs().getTypes() && in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/ |
| H A D | ShapeInferencePass.cpp | 104 return llvm::any_of(op->getResultTypes(), [](Type resultType) { in returnsDynamicShape()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/ |
| H A D | ShapeInferencePass.cpp | 104 return llvm::any_of(op->getResultTypes(), [](Type resultType) { in returnsDynamicShape()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch4/mlir/ |
| H A D | ShapeInferencePass.cpp | 104 return llvm::any_of(op->getResultTypes(), [](Type resultType) { in returnsDynamicShape()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch5/mlir/ |
| H A D | ShapeInferencePass.cpp | 104 return llvm::any_of(op->getResultTypes(), [](Type resultType) { in returnsDynamicShape()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/ |
| H A D | Traits.cpp | 235 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 D | VectorDistribute.cpp | 85 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 D | Async.cpp | 153 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 D | AsyncRegionRewriter.cpp | 105 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 D | QuantOps.cpp | 85 for (auto result : llvm::zip(getResultTypes(), getOutputSpecs())) { in verify()
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | FunctionInterfaces.td | 63 "::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 D | Operation.h | 343 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 D | NVGPUToNVVM.cpp | 207 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 D | Bufferize.cpp | 302 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 D | FuncConversions.cpp | 28 if (failed(typeConverter->convertTypes(callOp.getResultTypes(), in matchAndRewrite()
|