aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/common.py
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2020-06-19 21:30:17 -0700
committerEric Christopher <echristo@gmail.com>2020-06-19 21:35:11 -0700
commit6ee79e9b921f8e8d240e2ccc75e4740d97392026 (patch)
tree8be79e7818c7453b0e64d87b51c1b1913ba0735c /llvm/utils/UpdateTestChecks/common.py
parent3d8149db3cb5e8afaf8b10bc3a727c4da3186e1b (diff)
downloadllvm-6ee79e9b921f8e8d240e2ccc75e4740d97392026.zip
llvm-6ee79e9b921f8e8d240e2ccc75e4740d97392026.tar.gz
llvm-6ee79e9b921f8e8d240e2ccc75e4740d97392026.tar.bz2
[UpdateTestChecks] As part of using inclusive language within the
llvm project, migrate away from the use of blacklist and whitelist.
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r--llvm/utils/UpdateTestChecks/common.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index d8a6468..9abb8d79 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -273,8 +273,8 @@ def genericize_check_lines(lines, is_analyze, vars_seen):
def add_checks(output_lines, comment_marker, prefix_list, func_dict, func_name, check_label_format, is_asm, is_analyze):
- # prefix_blacklist are prefixes we cannot use to print the function because it doesn't exist in run lines that use these prefixes as well.
- prefix_blacklist = set()
+ # prefix_exclusions are prefixes we cannot use to print the function because it doesn't exist in run lines that use these prefixes as well.
+ prefix_exclusions = set()
printed_prefixes = []
for p in prefix_list:
checkprefixes = p[0]
@@ -282,18 +282,18 @@ def add_checks(output_lines, comment_marker, prefix_list, func_dict, func_name,
# exist for this run line. A subset of the check prefixes might know about the function but only because
# other run lines created it.
if any(map(lambda checkprefix: func_name not in func_dict[checkprefix], checkprefixes)):
- prefix_blacklist |= set(checkprefixes)
+ prefix_exclusions |= set(checkprefixes)
continue
- # prefix_blacklist is constructed, we can now emit the output
+ # prefix_exclusions is constructed, we can now emit the output
for p in prefix_list:
checkprefixes = p[0]
for checkprefix in checkprefixes:
if checkprefix in printed_prefixes:
break
- # Check if the prefix is blacklisted.
- if checkprefix in prefix_blacklist:
+ # Check if the prefix is excluded.
+ if checkprefix in prefix_exclusions:
continue
# If we do not have output for this prefix we skip it.