Skip to content

Commit

Permalink
compiler: further separate pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Jun 19, 2024
1 parent a1808da commit d744348
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions devito/xdsl_core/utils.py
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}]'

0 comments on commit d744348

Please sign in to comment.