[clang] [CMake][PGO] Use check-clang target to generate profdata for PGO builds (PR #77347)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 8 09:42:11 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 597086c60959dd5b3c032552e8b42dd1d053f233...127e2ae83f33843cfb9c5cca314afa2fc9844239 clang/utils/perf-training/perf-helper.py
``````````

</details>

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

``````````diff
--- perf-helper.py	2024-01-08 17:36:43.000000 +0000
+++ perf-helper.py	2024-01-08 17:42:03.610701 +0000
@@ -35,12 +35,12 @@
             "Usage: %s clean <paths> <extension>\n" % __file__
             + "\tRemoves all files with extension from <path>."
         )
         return 1
     for path in args[1:-1]:
-       for filename in findFilesWithExtension(path, args[-1]):
-           os.remove(filename)
+        for filename in findFilesWithExtension(path, args[-1]):
+            os.remove(filename)
     return 0
 
 
 def merge(args):
     if len(args) < 3:
@@ -49,11 +49,11 @@
             + "\tMerges all profraw files from path into output."
         )
         return 1
     cmd = [args[0], "merge", "-o", args[1]]
     for i in range(2, len(args)):
-      cmd.extend(findFilesWithExtension(args[i], "profraw"))
+        cmd.extend(findFilesWithExtension(args[i], "profraw"))
     subprocess.check_call(cmd)
     return 0
 
 
 def merge_fdata(args):

``````````

</details>


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


More information about the cfe-commits mailing list