Skip to content

Commit d929cf8

Browse files
Display run commands when using llvm-tblgen
1 parent 033dc1f commit d929cf8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: tools/generate_intrinsics.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ def convert_to_string(content):
4646

4747

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

0 commit comments

Comments
 (0)