Skip to content

Commit

Permalink
[fir][NFC] Rename lenParams to typeparams in builders
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
schweitzpgi and clementval committed Sep 30, 2021
1 parent f631173 commit 7362cc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flang/include/flang/Optimizer/Dialect/FIROps.td
Original file line number Diff line number Diff line change
Expand Up @@ -854,17 +854,17 @@ 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 = [{
$memref (`(` $shape^ `)`)? (`[` $slice^ `]`)? (`typeparams` $typeparams^)?
(`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(); }
Expand Down

0 comments on commit 7362cc5

Please sign in to comment.