[clang] [llvm] [UpdateTestChecks][Clang][CIR] Add support for CIR in update_cc_test_checks.py (PR #241654)

Vicky Nguyen via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 3 21:55:55 PST 2026


================
@@ -277,17 +321,32 @@ def get_function_body(
                     )
                     sys.exit(1)
                 extra_args[0] = args.opt
+            elif extra_args[0] == "cir-opt":
+                # Prefer the cir-opt built with this clang, then fall back to PATH.
+                cir_opt = os.path.join(os.path.dirname(args.clang), "cir-opt")
+                if find_executable(cir_opt):
+                    extra_args[0] = cir_opt
----------------
iamvickynguyen wrote:

You're right! No tests uses cir-opt. I removed this block.

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


More information about the cfe-commits mailing list