diff options
| author | Trevor Gross <tmgross@umich.edu> | 2023-06-10 12:06:17 -0400 |
|---|---|---|
| committer | Trevor Gross <tgross@intrepidcs.com> | 2023-06-16 20:56:01 -0400 |
| commit | 42ecb50d56c8cbd6a3e1b1036e018bf347a9bc36 (patch) | |
| tree | e31375a0f61a472c092d2e165df61d6f81ceaa4c | |
| parent | 8430ec5e50ba477ad6e55e4e80987f6c32525b23 (diff) | |
| download | rust-42ecb50d56c8cbd6a3e1b1036e018bf347a9bc36.tar.gz rust-42ecb50d56c8cbd6a3e1b1036e018bf347a9bc36.zip | |
Apply changes to fix python linting errors
| -rw-r--r-- | tools/generate_intrinsics.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/generate_intrinsics.py b/tools/generate_intrinsics.py index 6188924b0d5..83abe145e64 100644 --- a/tools/generate_intrinsics.py +++ b/tools/generate_intrinsics.py @@ -3,7 +3,6 @@ import os import re import sys import subprocess -from os import walk def run_command(command, cwd=None): @@ -180,7 +179,7 @@ def update_intrinsics(llvm_path, llvmint, llvmint2): intrinsics[arch].sort(key=lambda x: (x[0], x[2])) out.write(' // {}\n'.format(arch)) for entry in intrinsics[arch]: - if entry[2] == True: # if it is a duplicate + if entry[2] is True: # if it is a duplicate out.write(' // [DUPLICATE]: "{}" => "{}",\n'.format(entry[0], entry[1])) elif "_round_mask" in entry[1]: out.write(' // [INVALID CONVERSION]: "{}" => "{}",\n'.format(entry[0], entry[1])) |
