Home
last modified time | relevance | path

Searched refs:resultTypes (Results 1 – 25 of 45) sorted by relevance

12

/external/llvm-project/mlir/lib/IR/
DFunctionImplementation.cpp95 parseFunctionResultList(OpAsmParser &parser, SmallVectorImpl<Type> &resultTypes, in parseFunctionResultList() argument
103 resultTypes.push_back(ty); in parseFunctionResultList()
114 resultTypes.emplace_back(); in parseFunctionResultList()
116 if (parser.parseType(resultTypes.back()) || in parseFunctionResultList()
132 bool &isVariadic, SmallVectorImpl<Type> &resultTypes, in parseFunctionSignature() argument
139 return parseFunctionResultList(parser, resultTypes, resultAttrs); in parseFunctionSignature()
170 SmallVector<Type, 4> resultTypes; in parseFunctionLikeOp() local
186 argAttrs, isVariadic, resultTypes, resultAttrs)) in parseFunctionLikeOp()
190 if (auto type = funcTypeBuilder(builder, argTypes, resultTypes, in parseFunctionLikeOp()
204 assert(resultAttrs.size() == resultTypes.size()); in parseFunctionLikeOp()
[all …]
DOperation.cpp75 TypeRange resultTypes, ValueRange operands, in create() argument
78 return create(location, name, resultTypes, operands, in create()
90 TypeRange resultTypes, ValueRange operands, in create() argument
94 Operation *op = create(location, name, resultTypes, operands, attributes, in create()
105 TypeRange resultTypes, ValueRange operands, in create() argument
109 unsigned numTrailingResults = OpResult::getNumTrailing(resultTypes.size()); in create()
110 unsigned numInlineResults = OpResult::getNumInline(resultTypes.size()); in create()
137 ::new (rawMem) Operation(location, name, resultTypes, numSuccessors, in create()
166 TypeRange resultTypes, unsigned numSuccessors, in Operation() argument
173 assert(llvm::all_of(resultTypes, [](Type t) { return t; }) && in Operation()
[all …]
DOperationSupport.cpp561 ArrayRef<Type> resultTypes = op->getResultTypes(); in computeHash() local
562 switch (resultTypes.size()) { in computeHash()
568 hash = llvm::hash_combine(hash, resultTypes.front()); in computeHash()
574 hash = llvm::hash_combine(hash, resultTypes.data()); in computeHash()
/external/llvm-project/mlir/lib/Transforms/
DNormalizeMemRefs.cpp197 SmallVector<Type, 4> resultTypes; in updateFunctionSignature() local
199 resultTypes = llvm::to_vector<4>(functionType.getResults()); in updateFunctionSignature()
216 if (!memrefType || memrefType == resultTypes[operandEn.index()]) in updateFunctionSignature()
227 resultTypes[operandEn.index()] = memrefType; in updateFunctionSignature()
234 /*results=*/resultTypes, in updateFunctionSignature()
259 userOp->getLoc(), resultTypes, builder.getSymbolRefAttr(callee), in updateFunctionSignature()
447 SmallVector<Type, 4> resultTypes; in normalizeFuncOpMemRefs() local
455 resultTypes.push_back(resType); in normalizeFuncOpMemRefs()
462 resultTypes.push_back(newMemRefType); in normalizeFuncOpMemRefs()
467 /*results=*/resultTypes, in normalizeFuncOpMemRefs()
[all …]
/external/llvm-project/mlir/lib/Dialect/GPU/Transforms/
DAsyncRegionRewriter.cpp88 SmallVector<Type, 1> resultTypes = {tokenType}; in rewriteAsyncOp() local
89 resultTypes.reserve(1 + op->getNumResults()); in rewriteAsyncOp()
90 copy(op->getResultTypes(), std::back_inserter(resultTypes)); in rewriteAsyncOp()
91 auto *newOp = Operation::create(op->getLoc(), op->getName(), resultTypes, in rewriteAsyncOp()
166 SmallVector<Type, 2> resultTypes; in addAsyncTokenResults() local
167 resultTypes.reserve(numResults); in addAsyncTokenResults()
168 copy(executeOp.getResultTypes(), std::back_inserter(resultTypes)); in addAsyncTokenResults()
171 resultTypes.resize(numResults, tokenType); in addAsyncTokenResults()
175 executeOp.getLoc(), TypeRange{resultTypes}.drop_front() /*drop token*/, in addAsyncTokenResults()
/external/llvm-project/mlir/test/mlir-tblgen/
Dop-result.td17 // CHECK: ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands
18 // CHECK: assert(resultTypes.size() == 1u && "mismatched number of return types");
19 // CHECK-NEXT: odsState.addTypes(resultTypes);
42 …d(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes) {
43 // CHECK-NEXT: assert(resultTypes.size() == 3u && "mismatched number of results");
44 // CHECK-NEXT: odsState.addTypes(resultTypes);
86 // CHECK: ::mlir::TypeRange resultTypes
87 // CHECK: assert(resultTypes.size() >= 1u && "mismatched number of return types");
88 // CHECK-NEXT: odsState.addTypes(resultTypes);
Dop-decl.td90 …mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueR…
187 …ilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value …
188 …mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueR…
200 …mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueR…
212 …mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueR…
226 …mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueR…
235 …ilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value …
236 …mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueR…
248 …ilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value …
249 …mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueR…
/external/llvm-project/mlir/include/mlir/IR/
DFunctionImplementation.h71 bool &isVariadic, SmallVectorImpl<Type> &resultTypes,
89 ArrayRef<Type> resultTypes);
95 ArrayRef<Type> resultTypes);
DOperation.h35 TypeRange resultTypes, ValueRange operands,
42 TypeRange resultTypes, ValueRange operands,
51 TypeRange resultTypes, ValueRange operands,
648 Operation(Location location, OperationName name, TypeRange resultTypes,
/external/deqp/external/openglcts/modules/glesext/texture_buffer/
DesextcTextureBufferActiveUniformValidation.cpp256 std::map<glw::GLuint, glw::GLenum> resultTypes; in iterate() local
284 resultTypes[i] = uniformType; in iterate()
291 std::map<glw::GLuint, glw::GLenum>::iterator it = resultTypes.begin(); in iterate()
292 for (; it != resultTypes.end(); ++it) in iterate()
301 if (it == resultTypes.end()) in iterate()
327 if (resultTypes[i] != (glw::GLuint)types[i]) in iterate()
330 << "expected uniform type: " << getUniformTypeName(resultTypes[i]) << "\n" in iterate()
347 if (resultTypes[i] != (glw::GLuint)type) in iterate()
350 << "expected uniform type: " << getUniformTypeName(resultTypes[i]) << "\n" in iterate()
/external/llvm-project/mlir/lib/Dialect/Async/IR/
DAsync.cpp145 TypeRange resultTypes, ValueRange dependencies, in build() argument
162 for (Type type : resultTypes) in build()
178 if (resultTypes.empty() && !bodyBuilder) { in build()
278 SmallVector<Type, 4> resultTypes; in parseExecuteOp() local
279 if (parser.parseOptionalArrowTypeList(resultTypes)) in parseExecuteOp()
284 parser.addTypesToList(resultTypes, result.types); in parseExecuteOp()
/external/llvm-project/mlir/lib/Dialect/PDL/IR/
DPDL.cpp220 OperandRange resultTypes) { in verifyResultTypesAreInferrable() argument
242 Operation *resultTypeOp = resultTypes[i].getDefiningOp(); in verifyResultTypesAreInferrable()
290 OperandRange resultTypes = op.types(); in verify() local
292 if (resultTypes.size() != opResults.size()) { in verify()
296 << resultTypes.size() << " constraints"; in verify()
302 if (failed(verifyResultTypesAreInferrable(op, opResults, resultTypes))) in verify()
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
DElementwiseToLinalg.cpp56 auto resultTypes = llvm::to_vector<6>( in matchAndRewrite() local
60 state.addTypes(resultTypes); in matchAndRewrite()
DGeneralization.cpp44 auto resultTypes = namedOp.getOutputTensorTypes(); in createGenericOpFromNamedOp() local
45 SmallVector<Type, 4> types(resultTypes.begin(), resultTypes.end()); in createGenericOpFromNamedOp()
DDropUnitDims.cpp351 SmallVector<Type, 4> resultTypes; in matchAndRewrite() local
352 resultTypes.reserve(op.getNumResults()); in matchAndRewrite()
354 resultTypes.push_back(newInputOutputTypes[i + op.getNumInputs()]); in matchAndRewrite()
356 loc, resultTypes, newInputs, newOutputBuffers, newInitTensors, in matchAndRewrite()
DFusion.cpp120 SmallVector<Type, 4> resultTypes; in cloneWithLoopRanges() local
121 resultTypes.reserve(op->getNumResults()); in cloneWithLoopRanges()
129 resultTypes.push_back(SubTensorOp::inferResultType( in cloneWithLoopRanges()
134 Operation *clonedOp = op.clone(b, loc, resultTypes, clonedShapes); in cloneWithLoopRanges()
DFusionOnTensors.cpp566 SmallVector<Type, 1> resultTypes; in fuseWithReshapeByExpansion() local
574 resultTypes.push_back(RankedTensorType::get( in fuseWithReshapeByExpansion()
585 linalgOp, rewriter, linalgOp.getLoc(), resultTypes, in fuseWithReshapeByExpansion()
646 resultTypes[result.index()] != result.value().getType()) { in fuseWithReshapeByExpansion()
/external/llvm-project/mlir/unittests/TableGen/
DOpBuildGen.cpp50 void verifyOp(OpTy &&concreteOp, std::vector<Type> resultTypes, in verifyOp() argument
56 EXPECT_EQ(op->getNumResults(), resultTypes.size()); in verifyOp()
58 EXPECT_EQ(op->getResult(idx).getType(), resultTypes[idx]); in verifyOp()
/external/llvm-project/mlir/unittests/IR/
DOperationSupportTest.cpp19 ArrayRef<Type> resultTypes = llvm::None, in createOp() argument
23 OperationName("foo.bar", context), resultTypes, in createOp()
/external/llvm-project/mlir/lib/Dialect/Linalg/IR/
DLinalgOps.cpp94 TypeRange resultTypes);
106 TypeRange initTensorTypes, TypeRange resultTypes);
109 SmallVectorImpl<Type> &resultTypes);
120 TypeRange resultTypes);
1456 TypeRange resultTypes, in buildNamedStructuredOpRegionAndAttributesImpl() argument
1461 for (auto containers : {inputTypes, outputBufferTypes, resultTypes}) in buildNamedStructuredOpRegionAndAttributesImpl()
1488 TypeRange resultTypes) { in buildNamedStructuredOpRegionAndAttributes() argument
1492 resultTypes, [&](unsigned expected, unsigned actual) { in buildNamedStructuredOpRegionAndAttributes()
1503 TypeRange initTensorTypes, TypeRange resultTypes) { in parseNamedStructuredOpRegion() argument
1508 resultTypes, [&](unsigned expected, unsigned actual) { in parseNamedStructuredOpRegion()
[all …]
/external/llvm-project/mlir/tools/mlir-tblgen/
DSPIRVUtilsGen.cpp796 StringRef resultTypes, StringRef valueID, in emitResultDeserialization() argument
816 os << tabs << formatv(" {0}.push_back(ty);\n", resultTypes); in emitResultDeserialization()
920 StringRef resultTypes("resultTypes"), valueID("valueID"), words("words"), in emitDeserializationFunction() local
927 os << formatv(" SmallVector<Type, 1> {0};\n", resultTypes); in emitDeserializationFunction()
933 resultTypes, valueID, os); in emitDeserializationFunction()
944 op.getQualCppClassName(), opVar, resultTypes, operands, in emitDeserializationFunction()
/external/llvm-project/mlir/lib/Dialect/Affine/IR/
DAffineOps.cpp2016 TypeRange resultTypes, IntegerSet set, ValueRange args, in build() argument
2018 assert(resultTypes.empty() || withElseRegion); in build()
2019 result.addTypes(resultTypes); in build()
2025 if (resultTypes.empty()) in build()
2031 if (resultTypes.empty()) in build()
2497 TypeRange resultTypes, in build() argument
2507 build(builder, result, resultTypes, reductions, lbMap, /*lbArgs=*/{}, ubMap, in build()
2512 TypeRange resultTypes, in build() argument
2522 build(builder, result, resultTypes, reductions, lbMap, lbArgs, ubMap, ubArgs, in build()
2527 TypeRange resultTypes, in build() argument
[all …]
/external/llvm-project/mlir/lib/Conversion/AsyncToLLVM/
DAsyncToLLVM.cpp594 SmallVector<Type, 5> resultTypes; in matchAndRewrite() local
595 converter.convertTypes(op->getResultTypes(), resultTypes); in matchAndRewrite()
598 rewriter.replaceOpWithNewOp<CallOp>(op, resultTypes, call.callee(), in matchAndRewrite()
/external/llvm-project/mlir/lib/Dialect/SCF/
DSCF.cpp580 TypeRange resultTypes, Value cond, bool withElseRegion) { in build() argument
582 if (resultTypes.empty()) in build()
587 build(builder, result, resultTypes, cond, addTerminator, in build()
593 TypeRange resultTypes, Value cond, in build() argument
599 result.addTypes(resultTypes); in build()
/external/llvm-project/mlir/lib/Dialect/GPU/IR/
DGPUDialect.cpp606 SmallVector<Type, 4> resultTypes; in parseGPUFuncOp() local
618 isVariadic, resultTypes, resultAttrs))) in parseGPUFuncOp()
628 auto type = builder.getFunctionType(argTypes, resultTypes); in parseGPUFuncOp()

12