mirror of
https://github.com/intel/llvm.git
synced 2026-01-18 16:35:17 +08:00
[mlir][sparse] Add an attribute to the sort operator for stable sorting.
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D135181
This commit is contained in:
@@ -675,6 +675,11 @@ LogicalResult SelectOp::verify() {
|
||||
return success();
|
||||
}
|
||||
|
||||
void SortOp::build(OpBuilder &odsBuilder, OperationState &odsState, Value n,
|
||||
ValueRange xs, ValueRange ys) {
|
||||
build(odsBuilder, odsState, n, xs, ys, /*stable=*/false);
|
||||
}
|
||||
|
||||
LogicalResult SortOp::verify() {
|
||||
if (getXs().empty())
|
||||
return emitError("need at least one xs buffer.");
|
||||
|
||||
Reference in New Issue
Block a user