Skip to content

Commit

Permalink
Display run commands when using llvm-tblgen
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Aug 16, 2023
1 parent 033dc1f commit d929cf8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/generate_intrinsics.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ def convert_to_string(content):


def extract_instrinsics_from_llvm(llvm_path, intrinsics):
p = subprocess.Popen(
["llvm-tblgen", "llvm/IR/Intrinsics.td"],
cwd=os.path.join(llvm_path, "llvm/include"),
stdout=subprocess.PIPE)
command = ["llvm-tblgen", "llvm/IR/Intrinsics.td"]
cwd = os.path.join(llvm_path, "llvm/include")
print("=> Running command `{}` from `{}`".format(command, cwd))
p = subprocess.Popen(command, cwd=cwd, stdout=subprocess.PIPE)
output, err = p.communicate()
lines = convert_to_string(output).splitlines()
pos = 0
Expand Down

0 comments on commit d929cf8

Please sign in to comment.