Skip to content

Commit

Permalink
Test LLVM output after application of a pass
Browse files Browse the repository at this point in the history
  • Loading branch information
czgdp1807 committed Jun 30, 2022
1 parent 2f88ee7 commit 93778d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ def main():
cmd = "lpython --pass=" + pass_ + " --show-asr --no-color {infile} -o {outfile}"
run_test("pass_{}".format(pass_), cmd,
filename, update_reference, extra_args)
if llvm:
cmd = "lpython --pass=" + pass_ + " --show-llvm --no-color {infile} -o {outfile}"
run_test("pass_llvm_{}".format(pass_), cmd,
filename, update_reference, extra_args)

if llvm:
if no_llvm:
Expand Down

0 comments on commit 93778d7

Please sign in to comment.