[llvm] [utils][UpdateLLCTestChecks] Add MIR support to update_llc_test_checks.py. (PR #164965)

Valery Pykhtin via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 29 03:22:30 PDT 2025


================
@@ -141,14 +145,37 @@ def update_test(ti: common.TestInfo):
         if not triple:
             triple = common.get_triple_from_march(march_in_cmd)
 
-        scrubber, function_re = output_type.get_run_handler(triple)
-        if 0 == builder.process_run_line(
-            function_re, scrubber, raw_tool_output, prefixes
+        # Check if we are in MIR output mode. If -debug-only is present assume
+        # the debug output is the main point of interest.
+        if common.STOP_PASS_RE.search(llc_args) and not common.DEBUG_ONLY_ARG_RE.search(
+            llc_args
         ):
-            common.warn(
-                "Couldn't match any function. Possibly the wrong target triple has been provided"
+            common.debug("Detected MIR output mode for prefixes:", str(prefixes))
+            for prefix in prefixes:
+                if prefix not in mir_func_dict:
+                    mir_func_dict[prefix] = {}
+
+            common.build_function_info_dictionary(
----------------
vpykhtin wrote:

Done.

https://github.com/llvm/llvm-project/pull/164965


More information about the llvm-commits mailing list