[Mlir-commits] [clang] [llvm] [mlir] [CIR] split CIR and dependant MLIR out from clang-cpp.dll (PR #236403)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Oct 28 05:45:26 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r origin/main...HEAD clang/lib/CIR/generate-explib.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- generate-explib.py	2026-10-28 12:37:15.000000 +0000
+++ generate-explib.py	2026-10-28 12:43:26.771832 +0000
@@ -1,8 +1,9 @@
 from subprocess import check_output
 import argparse
 import re
+
 
 def gen_llvm_c_export(output, libs, nm, dlltool, dllname):
     """Generate exporting library file for clang-cpp.dll.
 
     Run `nm` for each lib in `libs`, and output an exporting library
@@ -20,11 +21,12 @@
             nm_output = check_output([nm, "-Ugp", lib], text=True)
 
             # Get the matching lines.
             for line in nm_output.splitlines():
                 m = r.match(line)
-                if not m: continue
+                if not m:
+                    continue
                 t = str(m.group(1))
                 if t == "T":
                     output_f.write("  " + m.group(2) + "\n")
                 elif t in "BCDGIRS":
                     output_f.write("  " + m.group(2) + " DATA\n")
@@ -40,16 +42,12 @@
         "--libsfile",
         help="file with list of libs, semicolon separated",
         action="store",
         default=None,
     )
-    parser.add_argument(
-        "-o", "--output", help="output filename"
-    )
-    parser.add_argument(
-        "-d", "--dllname", help="DLL name will be referred to"
-    )
+    parser.add_argument("-o", "--output", help="output filename")
+    parser.add_argument("-d", "--dllname", help="DLL name will be referred to")
     parser.add_argument(
         "--nm", help="path to the llvm-nm executable", default="llvm-nm"
     )
     parser.add_argument(
         "--dlltool", help="path to the llvm-dlltool executable", default="llvm-dlltool"

``````````

</details>


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


More information about the Mlir-commits mailing list