-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -378,7 +378,7 @@ LogicalResult ForOp::verifyRegions() { | |
return success(); | ||
} | ||
|
||
ValueRange ForOp::getInductionVars() { return {getInductionVar()}; } | ||
SmallVector<Value> ForOp::getInductionVars() { return {getInductionVar()}; } | ||
|
||
std::optional<SmallVector<OpFoldResult>> ForOp::getLowerBounds() { | ||
return SmallVector<OpFoldResult, 1>{OpFoldResult(getLowerBound())}; | ||
|
@@ -1426,8 +1426,8 @@ SmallVector<Operation *> ForallOp::getCombiningOps(BlockArgument bbArg) { | |
return storeOps; | ||
} | ||
|
||
ValueRange ForallOp::getInductionVars() { | ||
return getBody()->getArguments().take_front(getRank()); | ||
SmallVector<Value> ForallOp::getInductionVars() { | ||
return SmallVector<Value>(getBody()->getArguments().take_front(getRank())); | ||
This comment has been minimized.
Sorry, something went wrong.
makslevental
Contributor
|
||
} | ||
|
||
// Get lower bounds as OpFoldResult. | ||
|
@@ -3004,7 +3004,9 @@ void ParallelOp::print(OpAsmPrinter &p) { | |
|
||
SmallVector<Region *> ParallelOp::getLoopRegions() { return {&getRegion()}; } | ||
|
||
ValueRange ParallelOp::getInductionVars() { return getBody()->getArguments(); } | ||
SmallVector<Value> ParallelOp::getInductionVars() { | ||
return SmallVector<Value>(getBody()->getArguments()); | ||
} | ||
|
||
std::optional<SmallVector<OpFoldResult>> ParallelOp::getLowerBounds() { | ||
return getLowerBound(); | ||
|
hmm interesting since i'm not a reviewer I can't do the code change suggestion thing. anyway
auto
->SmallVector<Value>
please.