diff --git a/mlir/include/mlir/IR/OpDefinition.h b/mlir/include/mlir/IR/OpDefinition.h index 2fa2c7e945fc..e6304dd083f4 100644 --- a/mlir/include/mlir/IR/OpDefinition.h +++ b/mlir/include/mlir/IR/OpDefinition.h @@ -537,6 +537,8 @@ public: template class Impl : public TraitBase::Impl> { public: + static unsigned getNumResults() { return N; } + const SSAValue *getResult(unsigned i) const { return this->getOperation()->getResult(i); }