[Mlir-commits] [mlir] [mlir][linalg] Support `ParamType` in `vector_sizes` option of `VectorizeOp` transform (PR #87557)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Fri Apr 5 09:04:32 PDT 2024
================
@@ -3122,6 +3122,75 @@ transform::VectorizeChildrenAndApplyPatternsOp::applyToOne(
//===----------------------------------------------------------------------===//
// VectorizeOp
//===----------------------------------------------------------------------===//
+ParseResult transform::VectorizeOp::parse(OpAsmParser &parser,
+ OperationState &result) {
+ OpAsmParser::UnresolvedOperand target;
+ SmallVector<OpAsmParser::UnresolvedOperand> dynamicSizes;
+ DenseI64ArrayAttr staticSizes;
+ SmallVector<Type> operandTypes;
+ llvm::SMLoc operandLoc;
+ DenseBoolArrayAttr scalableVals;
+
+ if (parser.parseOperand(target) || parser.getCurrentLocation(&operandLoc))
+ return ParseResult::failure();
+
+ if (succeeded(parser.parseOptionalKeyword("vector_sizes"))) {
----------------
ftynse wrote:
I'd rather have them as constants local to this file. There is no need for them to be available to all users of `VectorizeOp`, and it would pollute the API and increase linking time.
https://github.com/llvm/llvm-project/pull/87557
More information about the Mlir-commits
mailing list