Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cfg for eggcc modes #648

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading