forked from devitocodes/devito
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compiler: further separate pipelines
- Loading branch information
1 parent
a1808da
commit d744348
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
from typing import Iterable | ||
|
||
|
||
def generate_pipeline(passes: Iterable[str]): | ||
'Generate a pipeline string from a list of passes' | ||
passes_string = ",".join(passes) | ||
return f'"{passes_string}"' | ||
|
||
|
||
def generate_mlir_pipeline(passes: Iterable[str]): | ||
passes_string = ",".join(passes) | ||
return f'mlir-opt[{passes_string}]' |