Repository navigation
Use dynamic pass pipelines while lowering on CPU backends. - #5934
Merged
MaheshRavishankar merged 2 commits intoMay 20, 2021
Merged
MaheshRavishankar merged 2 commits into
MaheshRavishankar merged 2 commits into
Conversation
MaheshRavishankar
requested review from
ThomasRaoux,
antiagainst,
asaadaldien and
hanhanW
May 18, 2021 05:16
The lowering of linalg operations to scalar/vector code is modified to use dynamic pass pipelines. A new pass `LowerExecutableTargetPass` is added that lowers an executable to the scalar/vector code. This pass sets the configuration to use when lowering the module within the target operation. At the time of setting the configuration, the pass to use is also decided. This is used to dynamically select the pass pipeline to use for the lowering. Currently only two pipelines exist. One for vectorization based lowering and other to lower to scalar code directly. The existing pipeline is reordered to make the distinction between lowering a Linalg operation to scalar/native-vector operations and the pipeline needed to convert those into LLVM Dialect. The latter must be re-usable across all pipelines used for CPU lowering.
MaheshRavishankar
force-pushed
the
dynamic_pass_pipeline_select
branch
from
May 19, 2021 19:49
d9dfce9 to
4ea5ec9
Compare
MaheshRavishankar
marked this pull request as ready for review
May 19, 2021 19:49
MaheshRavishankar
force-pushed
the
dynamic_pass_pipeline_select
branch
from
May 19, 2021 22:29
68493fa to
dceb970
Compare
asaadaldien
reviewed
May 19, 2021
Merged
This was referenced May 20, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The lowering of linalg operations to scalar/vector code is modified to
use dynamic pass pipelines. A new pass
LowerExecutableTargetPassisadded that lowers an executable to the scalar/vector code. This pass
sets the configuration to use when lowering the module within the
target operation. At the time of setting the configuration, the pass
to use is also decided. This is used to dynamically select the pass
pipeline to use for the lowering.
Currently only two pipelines exist. One for vectorization based
lowering and other to lower to scalar code directly. The existing
pipeline is reordered to make the distinction between lowering a
Linalg operation to scalar/native-vector operations and the pipeline
needed to convert those into LLVM Dialect. The latter must be
re-usable across all pipelines used for CPU lowering.