[NFC] Fix minor typos in comments and reuse concreteOp.

Differential Revision: https://reviews.llvm.org/D88242
This commit is contained in:
Rahul Joshi 2020-09-24 09:47:02 -07:00
parent e17f52d623
commit 0b7f03b98d
2 changed files with 3 additions and 3 deletions

View File

@ -21,13 +21,13 @@ include "mlir/Interfaces/CopyOpInterface.td"
// The Linalg `NInputs` trait provides the API for ops that are known
// to have a specified number of inputs, all passed as operands.
// See Linalg/LinalgTraits.h for implementation details an usage.
// See Linalg/LinalgTraits.h for implementation details and usage.
class NInputs<int args_in> :
NativeOpTrait<"linalg::NInputs<" # !cast<string>(args_in) # ">::Impl"> {}
// The Linalg `NOutputs` trait provides the API for ops that are known
// to have a specified number of outputs, all passed as operands.
// See Linalg/LinalgTraits.h for implementation details an usage.
// See Linalg/LinalgTraits.h for implementation details and usage.
class NOutputs<int args_out> :
NativeOpTrait<"linalg::NOutputs<" # !cast<string>(args_out) # ">::Impl"> {}

View File

@ -62,7 +62,7 @@ class StructuredOpTraits
public:
static LogicalResult verifyTrait(Operation *op) {
ConcreteType concreteOp = cast<ConcreteType>(op);
auto nOperands = cast<ConcreteType>(op).getNumInputsAndOutputBuffers();
auto nOperands = concreteOp.getNumInputsAndOutputBuffers();
if (failed(OpTrait::impl::verifyAtLeastNOperands(op, nOperands)))
return failure();
if (op->getNumResults() > concreteOp.getNumOutputs())