forked from OSchip/llvm-project
[NFC] Fix minor typos in comments and reuse concreteOp.
Differential Revision: https://reviews.llvm.org/D88242
This commit is contained in:
parent
e17f52d623
commit
0b7f03b98d
|
@ -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"> {}
|
||||
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue