Skip to content

Commit

Permalink
docs: de-dupe conversion and other passes
Browse files Browse the repository at this point in the history
Signed-off-by: Asra <[email protected]>
  • Loading branch information
asraa committed Feb 26, 2025
1 parent 1a36236 commit 58cc9c1
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/copy_tblgen_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,13 @@ def sort_markdown_file_by_header(path):
weight: 70
---\n""")

print("Processing Non-conversion Passes")
for src_path in glob.glob(f"{SRC_BASE}/**/*Passes.md", recursive=True):
with open(src_path, "r") as src_file:
with open(PASSES_FILE, "a") as dest_file:
dest_file.write(cleanup(src_file.read()))

print("Processing Conversion Passes")
for src_path in glob.glob(
print("Processing Passes")
passes_files = glob.glob(f"{SRC_BASE}/**/*Passes.md", recursive=True)
conversion_files = glob.glob(
f"{SRC_BASE}/Dialect/**/Conversions/**/*.md", recursive=True
):
)
for src_path in set(passes_files + conversion_files):
print(src_path)
with open(src_path, "r") as src_file:
with open(PASSES_FILE, "a") as dest_file:
dest_file.write(cleanup(src_file.read()))
Expand Down

0 comments on commit 58cc9c1

Please sign in to comment.