Skip to content

Commit

Permalink
fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpal committed Oct 31, 2024
1 parent 4229331 commit d6a1f5b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions infra/generate_cfgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ def make_cfgs(bench, data_dir):
opt = "opt"

# https://llvm.org/docs/Passes.html#dot-cfg-print-cfg-of-function-to-dot-file
cmd = f"{opt} -disable-output -passes=dot-cfg {bench}-{mode}-{mode}.ll"
os.system(cmd)

# Delete the -init.ll file (We don't need it for nightly,
# so just reduce the amount of clutter we copy to the nightly machine)
os.system(f"rm {bench}-{mode}-{mode}-init.ll")
for filename in glob.glob("*.ll"):
if "init" in filename:
# Delete the -init.ll file (We don't need it for nightly,
# so just reduce the amount of clutter we copy to the nightly machine)
os.system(f"rm {filename}")
else:
os.system(f"{opt} -disable-output -passes=dot-cfg {filename}")

# Find all the dot files (can't use glob because it doesn't match hidden files)
# There are also a bunch of files that start with ._Z that I don't think we care about?
Expand Down

0 comments on commit d6a1f5b

Please sign in to comment.