Skip to content

Commit e5f94a3

Browse files
Display run commands when using llvm-tblgen
1 parent e5bfcb5 commit e5f94a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/generate_intrinsics.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ def convert_to_string(content):
4747

4848

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

0 commit comments

Comments
 (0)