Skip to content

Commit

Permalink
Resolved commits by adding comments to getSingleCombiner
Browse files Browse the repository at this point in the history
  • Loading branch information
knwng committed Nov 12, 2024
1 parent 9bac68a commit 54d7eda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Dialect/Triton/IR/Ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,8 @@ llvm::SmallVector<Type> ReduceOp::getElementTypes() {
return getElementTypesImpl(this->getOperands());
}

// Returns the CombineOp iff this ReduceOp's region contains only
// one CombineOp other than the return, or nullptr if not applicable.
::mlir::Operation *ReduceOp::getSingleCombiner() {
if (getNumOperands() != 1 || getNumResults() != 1)
return nullptr;
Expand Down

0 comments on commit 54d7eda

Please sign in to comment.