Home
last modified time | relevance | path

Searched refs:outputType (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/
H A DTosaMakeBroadcastable.cpp76 RankedTensorType outputType, in reshapeLowerToHigher() argument
118 if (outputType) { in reshapeLowerToHigher()
119 if (outputType.getShape().size() != reshapeOutputShape.size() || in reshapeLowerToHigher()
120 outputType.getShape().size() != higherRankShape.size()) in reshapeLowerToHigher()
151 auto outputType = output.getType().dyn_cast<RankedTensorType>(); in matchAndRewrite() local
152 if (!outputType) in matchAndRewrite()
181 auto outputType = output.getType().dyn_cast<RankedTensorType>(); in matchAndRewrite() local
182 if (!outputType) in matchAndRewrite()
213 auto outputType = output.getType().dyn_cast<RankedTensorType>(); in matchAndRewrite() local
214 if (!outputType) in matchAndRewrite()
[all …]
H A DTosaFoldConstantTranspose.cpp28 auto outputType = op.getType().cast<ShapedType>(); in matchAndRewrite() local
30 if (!outputType.getElementType().isIntOrIndexOrFloat()) in matchAndRewrite()
59 ArrayRef<int64_t> outputShape = outputType.getShape(); in matchAndRewrite()
69 SmallVector<uint64_t, 6> dstIndices(outputType.getRank(), 0); in matchAndRewrite()
70 for (int dim = outputType.getRank() - 1; dim >= 0; --dim) in matchAndRewrite()
74 for (int dim = 1; dim < outputType.getRank(); ++dim) in matchAndRewrite()
81 op, outputType, DenseElementsAttr::get(outputType, outputValues)); in matchAndRewrite()
/llvm-project-15.0.7/mlir/utils/vscode/src/PDLL/commands/
H A DviewOutput.ts39 const outputType = constant
41 if (!outputType) {
48 kind : outputType,
58 if (outputType == 'mlir') {
60 } else if (outputType == 'cpp') {
/llvm-project-15.0.7/mlir/test/lib/Dialect/Tosa/
H A DTosaTestPasses.cpp51 auto outputType = in matchAndRewrite() local
53 if (!outputType) in matchAndRewrite()
58 outputType.getElementType().dyn_cast<mlir::quant::UniformQuantizedType>(); in matchAndRewrite()
76 outputType.getShape(), in matchAndRewrite()
129 auto outputType = in matchAndRewrite() local
131 if (!outputType) in matchAndRewrite()
139 outputType.getElementType().dyn_cast<mlir::quant::UniformQuantizedType>(); in matchAndRewrite()
146 RankedTensorType::get(outputType.getShape(), rewriter.getIntegerType(32)); in matchAndRewrite()
168 op->getLoc(), outputType, newTosaConv2DOp.getResult(), in matchAndRewrite()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Tosa/IR/
H A DTosaOpBase.td132 buildConvOpWithQuantInfo($_builder, $_state, outputType,
142 buildTransConvOpWithQuantInfo($_builder, $_state, outputType,
153 buildFCOpWithQuantInfo($_builder, $_state, outputType,
162 (ins "Type":$outputType, "Value":$a, "Value":$b),
164 buildMatMulOpWithQuantInfo($_builder, $_state, outputType,
172 (ins "Type":$outputType, "Value":$input, "ArrayAttr":$kernel,
175 buildAvgPool2dOpWithQuantInfo($_builder, $_state, outputType,
183 (ins "Type":$outputType, "Value":$input),
192 (ins "Type":$outputType, "Value":$input, "Value":$paddings),
194 buildPadOpWithQuantInfo($_builder, $_state, outputType,
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/IR/
H A DSparseTensorDialect.cpp269 TypeRange inputTypes, Type outputType) { in verifyNumBlockArgs() argument
287 if (yield.getOperand().getType() != outputType) in verifyNumBlockArgs()
297 Type outputType = getOutput().getType(); in verify() local
307 this, overlap, "overlap", TypeRange{leftType, rightType}, outputType); in verify()
313 verifyNumBlockArgs(this, left, "left", TypeRange{leftType}, outputType); in verify()
317 if (leftType != outputType) in verify()
323 TypeRange{rightType}, outputType); in verify()
327 if (rightType != outputType) in verify()
337 Type outputType = getOutput().getType(); in verify() local
345 TypeRange{inputType}, outputType); in verify()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DConstantFold.cpp65 auto outputType = genericOp.getResultTypes().front().dyn_cast<ShapedType>(); in matchAndRewrite() local
68 if (!outputType || !outputType.hasStaticShape()) in matchAndRewrite()
85 auto elementType = outputType.getElementType(); in matchAndRewrite()
134 int64_t numElements = outputType.getNumElements(); in matchAndRewrite()
160 auto outputShape = outputType.getShape(); in matchAndRewrite()
200 for (int dim = 1; dim < outputType.getRank(); ++dim) { in matchAndRewrite()
254 isFloat ? DenseElementsAttr::get(outputType, fpOutputValues) in matchAndRewrite()
255 : DenseElementsAttr::get(outputType, intOutputValues); in matchAndRewrite()
H A DTransforms.cpp862 auto outputType = output.getType().dyn_cast<RankedTensorType>(); in returningMatchAndRewrite() local
865 auto outputShape = outputType.getShape(); in returningMatchAndRewrite()
884 RTTBuilder(outputType).dropDim(removeH ? 1 : 2); in returningMatchAndRewrite()
932 auto outputType = output.getType().dyn_cast<RankedTensorType>(); in returningMatchAndRewrite() local
935 auto outputShape = outputType.getShape(); in returningMatchAndRewrite()
954 RTTBuilder(outputType).dropDim(removeH ? 1 : 2); in returningMatchAndRewrite()
/llvm-project-15.0.7/mlir/tools/mlir-pdll/
H A Dmlir-pdll.cpp40 OutputType outputType, std::vector<std::string> &includeDirs, in processBuffer() argument
70 if (outputType == OutputType::AST) { in processBuffer()
81 if (outputType == OutputType::MLIR) { in processBuffer()
144 llvm::cl::opt<enum OutputType> outputType( in main() local
186 return processBuffer(os, std::move(chunkBuffer), outputType, includeDirs, in main()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/
H A DTosaOps.cpp186 buildConvOpResultTypeInfo(builder, outputType, input, weight)); in buildConvOpWithQuantInfo()
188 result.addTypes(outputType); in buildConvOpWithQuantInfo()
210 result.addTypes(outputType); in buildTransConvOpWithQuantInfo()
227 result.addTypes(outputType); in buildFCOpWithQuantInfo()
253 auto outputShapedType = outputType.dyn_cast<ShapedType>(); in buildMatMulOpWithQuantInfo()
264 result.addTypes(outputType); in buildMatMulOpWithQuantInfo()
283 result.types.push_back(outputType); in buildAvgPool2dOpWithQuantInfo()
296 result.types.push_back(outputType); in buildUnaryOpWithQuantInfo()
303 Type outputType, Value input, in buildPadOpWithQuantInfo() argument
309 result.types.push_back(outputType); in buildPadOpWithQuantInfo()
[all …]
H A DTosaCanonicalizations.cpp304 ShapedType outputType = output.getType().cast<ShapedType>(); in matchAndRewrite() local
306 if (!inputType.hasStaticShape() || !outputType.hasStaticShape()) { in matchAndRewrite()
311 ArrayRef<int64_t> outputShape = outputType.getShape(); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Quant/IR/
H A DQuantOps.cpp86 Type outputType = std::get<0>(result); in verify() local
88 if (!isValidQuantizationSpec(outputSpec, outputType)) { in verify()
90 << " and output type " << outputType; in verify()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Utils/
H A DQuantUtils.cpp193 auto outputType = outputRawType.dyn_cast<ShapedType>(); in buildUnaryOpQuantizationAttr() local
195 if (!inputType || !outputType) in buildUnaryOpQuantizationAttr()
199 auto outputQType = GET_UQTYPE(outputType); in buildUnaryOpQuantizationAttr()
235 Type mlir::tosa::buildConvOpResultTypeInfo(OpBuilder &builder, Type outputType, in buildConvOpResultTypeInfo() argument
253 auto outputShapedType = outputType.dyn_cast<ShapedType>(); in buildConvOpResultTypeInfo()
/llvm-project-15.0.7/lld/MachO/
H A DDriver.cpp688 } else if (config->outputType != MH_DYLIB && in parsePlatformVersions()
689 config->outputType != MH_BUNDLE) { in parsePlatformVersions()
842 if (config->outputType != MH_DYLIB) { in parseDylibVersion()
930 switch (config->outputType) { in dataConstDefault()
1202 config->outputType = getOutputType(args); in link()
1311 if (config->outputType != MH_BUNDLE) in link()
1317 if (config->outputType != MH_DYLIB) in link()
1380 } else if (config->outputType == MH_DYLIB) { in link()
1385 if (config->outputType != MH_DYLIB) in link()
1402 if (config->outputType == MH_EXECUTE) in link()
[all …]
H A DSyntheticSections.cpp104 if (config->outputType == MH_EXECUTE && !config->staticLink && in cpuSubtype()
118 hdr->filetype = config->outputType; in writeTo()
126 if (config->outputType == MH_DYLIB && !config->hasReexports) in writeTo()
132 if (config->outputType == MH_EXECUTE && config->isPic) in writeTo()
135 if (config->outputType == MH_DYLIB && config->applicationExtension) in writeTo()
1365 config->outputType == MH_EXECUTE ? CS_EXECSEG_MAIN_BINARY : 0); in writeTo()
1711 switch (config->outputType) { in createSyntheticSymbols()
H A DConfig.h167 llvm::MachO::HeaderFileType outputType; member
H A DLTO.cpp68 config->outputType != MH_EXECUTE || config->exportDynamic; in add()
H A DMarkLive.cpp253 config->outputType != MH_EXECUTE || config->exportDynamic; in markLive()
H A DWriter.cpp751 switch (config->outputType) { in createLoadCommands()
780 if (config->outputType == MH_EXECUTE) in createLoadCommands()
936 switch (config->outputType) { in createOutputSections()
H A DSymbolTable.cpp110 config->outputType != MachO::MH_EXECUTE && in addDefined()
/llvm-project-15.0.7/mlir/lib/Transforms/Utils/
H A DDialectConversion.cpp420 if (inputs.size() == 1 && inputs.front().getType() == outputType) in buildUnresolvedMaterialization()
434 Type origOutputType, Type outputType, TypeConverter *converter, in buildUnresolvedArgumentMaterialization() argument
442 Location loc, Value input, Type outputType, TypeConverter *converter, in buildUnresolvedTargetMaterialization() argument
451 outputType, outputType, converter, unresolvedMaterializations); in buildUnresolvedTargetMaterialization()
816 Type outputType = origOutputType; in applySignatureConversion() local
817 if (Type legalOutputType = converter->convertType(outputType)) in applySignatureConversion()
818 outputType = legalOutputType; in applySignatureConversion()
2630 Type outputType = opResult.getType(); in computeNecessaryMaterializations() local
2652 lookupRemappedValue(opResult, inputOperands[0], outputType); in computeNecessaryMaterializations()
2725 Type outputType = opResult.getType(); in legalizeUnresolvedMaterialization() local
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Tosa/Utils/
H A DQuantUtils.h53 Type buildConvOpResultTypeInfo(OpBuilder &builder, Type outputType, Value input,
/llvm-project-15.0.7/lld/MachO/Arch/
H A DARM64Common.cpp117 if (config->outputType == MH_OBJECT) in handleDtraceReloc()
H A DARM.cpp173 if (config->outputType == MH_OBJECT) in handleDtraceReloc()
H A DX86_64.cpp204 if (config->outputType == MH_OBJECT) in handleDtraceReloc()

12