[compiler-rt] [PGO][test] Enable continous mode PGO tests on AIX (PR #115987)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 20:34:20 PST 2024


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 de0fd64bedd23660f557833cc0108c3fb2be3918...acbdd6f2f3514d1557584777eab3e65449f7a616 compiler-rt/test/profile/lit.cfg.py
``````````

</details>

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

``````````diff
--- lit.cfg.py	2024-11-13 04:40:02.000000 +0000
+++ lit.cfg.py	2024-11-13 04:33:55.425608 +0000
@@ -158,20 +158,22 @@
 )
 
 config.substitutions.append(
     (
         "%clang_profgen_cont",
-        build_invocation(clang_cflags) + " -fprofile-instr-generate " +
-          ("-mllvm -runtime-counter-relocation" if runtime_reloc else "")
+        build_invocation(clang_cflags)
+        + " -fprofile-instr-generate "
+        + ("-mllvm -runtime-counter-relocation" if runtime_reloc else ""),
     )
 )
 
 config.substitutions.append(
     (
         "%clang_pgogen_cont",
-        build_invocation(clang_cflags) + " -fprofile-generate " +
-         ("-mllvm -runtime-counter-relocation" if runtime_reloc else "")
+        build_invocation(clang_cflags)
+        + " -fprofile-generate "
+        + ("-mllvm -runtime-counter-relocation" if runtime_reloc else ""),
     )
 )
 
 if config.host_os not in [
     "Windows",
@@ -184,12 +186,11 @@
     "Haiku",
 ]:
     config.unsupported = True
 
 config.substitutions.append(
-    ("%shared_lib_flag",
-     "-dynamiclib" if (config.host_os == "Darwin") else "-shared")
+    ("%shared_lib_flag", "-dynamiclib" if (config.host_os == "Darwin") else "-shared")
 )
 
 if config.host_os in ["AIX"]:
     config.available_features.add("system-aix")
     exclude_unsupported_files_for_aix(config.test_source_root)

``````````

</details>


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


More information about the llvm-commits mailing list