Unverified Commit 833a8db5 authored by Felix Schneider's avatar Felix Schneider Committed by GitHub
Browse files

[mlir][scf] Implement getSingle... of LoopLikeOpInterface for scf::ForallOp (#67883)

The `getSingle(IterationVar|UpperBound|LowerBound|Step)` methods of
`LoopLikeOpInterface` are useful to quickly query the iteration space of 
unidimensional loops. Until now, `scf::ForallOp` always fell back to the
default implementation of these methods, returning `std::nullopt`.

This patch implements those methods, returning the respective bounds
or steps in the special case of `rank == 1`.
parent 7f7a15c3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment