[fir][NFC] Rename lenParams to typeparams in builders

Fine tuning after couple of upstreamed patches.
Rename the lenParams varaiables in buidlers to typeparams.

This patch is part of the upstreaming effort from fir-dev branch.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D110821

Co-authored-by: Valentin Clement <clementval@gmail.com>
This commit is contained in:
Eric Schweitz 2021-09-30 17:55:31 +02:00 committed by Valentin Clement
parent f631173d80
commit 7362cc5ef5
No known key found for this signature in database
GPG Key ID: 086D54783C928776
1 changed files with 3 additions and 3 deletions

View File

@ -854,9 +854,9 @@ def fir_EmboxOp : fir_Op<"embox", [NoSideEffect, AttrSizedOperandSegments]> {
OpBuilder<(ins "llvm::ArrayRef<mlir::Type>":$resultTypes,
"mlir::Value":$memref, CArg<"mlir::Value", "{}">:$shape,
CArg<"mlir::Value", "{}">:$slice,
CArg<"mlir::ValueRange", "{}">:$lenParams),
CArg<"mlir::ValueRange", "{}">:$typeparams),
[{ return build($_builder, $_state, resultTypes, memref, shape, slice,
lenParams, mlir::AffineMapAttr{}); }]>
typeparams, mlir::AffineMapAttr{}); }]>
];
let assemblyFormat = [{
@ -864,7 +864,7 @@ def fir_EmboxOp : fir_Op<"embox", [NoSideEffect, AttrSizedOperandSegments]> {
(`map` $accessMap^)? attr-dict `:` functional-type(operands, results)
}];
let verifier = [{ return ::verify(*this); }];
let verifier = "return ::verify(*this);";
let extraClassDeclaration = [{
mlir::Value getShape() { return shape(); }