aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/update_test_checks.py
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/update_test_checks.py')
-rwxr-xr-xllvm/utils/update_test_checks.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/utils/update_test_checks.py b/llvm/utils/update_test_checks.py
index 42227b2..74e87787 100755
--- a/llvm/utils/update_test_checks.py
+++ b/llvm/utils/update_test_checks.py
@@ -197,6 +197,7 @@ def update_test(ti: common.TestInfo):
global_tbaa_records_for_prefixes,
is_filtered=builder.is_filtered(),
original_check_lines=original_check_lines.get(func, {}),
+ check_inst_comments=args.check_inst_comments,
),
)
)
@@ -230,6 +231,7 @@ def update_test(ti: common.TestInfo):
global_tbaa_records_for_prefixes,
is_filtered=builder.is_filtered(),
original_check_lines=original_check_lines.get(func_name, {}),
+ check_inst_comments=args.check_inst_comments,
)
)
is_in_function_start = False
@@ -363,6 +365,12 @@ def main():
help="Check global entries (global variables, metadata, attribute sets, ...) for functions",
)
parser.add_argument(
+ "--check-inst-comments",
+ action="store_true",
+ default=False,
+ help="Check the generated comments describing instructions (e.g., -print-predicate-info/print<memssa>)",
+ )
+ parser.add_argument(
"--reset-variable-names",
action="store_true",
help="Reset all variable names to correspond closely to the variable names in IR. "