github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. 
:warning:

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

``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp,h -- 
llvm/include/llvm/CodeGen/TargetFrameLowering.h 
llvm/lib/CodeGen/PrologEpilogInserter.cpp 
llvm/lib/Target/RISCV/RISCVFrameLowering.cpp 
llvm/lib/Target/RISCV/RISCVFrameLowering.h 
llvm/lib/Target/RISCV/RISCVSubtarget.cpp --diff_from_common_commit
``````````

: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 clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/CodeGen/TargetFrameLowering.h 
b/llvm/include/llvm/CodeGen/TargetFrameLowering.h
index fe3ebcd13..d5e42d873 100644
--- a/llvm/include/llvm/CodeGen/TargetFrameLowering.h
+++ b/llvm/include/llvm/CodeGen/TargetFrameLowering.h
@@ -36,7 +36,7 @@ namespace llvm {
     ScalablePredicateVector = 4,
     NoAlloc = 255
   };
-}
+  }
 
 /// Information about stack frame layout on the target.  It holds the direction
 /// of stack growth, the known stack alignment on entry to each function, and
diff --git a/llvm/lib/Target/RISCV/RISCVSubtarget.cpp 
b/llvm/lib/Target/RISCV/RISCVSubtarget.cpp
index ef1576db8..82d68ba96 100644
--- a/llvm/lib/Target/RISCV/RISCVSubtarget.cpp
+++ b/llvm/lib/Target/RISCV/RISCVSubtarget.cpp
@@ -75,10 +75,10 @@ static cl::opt<bool> EnablePExtCodeGen(
              "only partial codegen is currently supported)"),
     cl::init(false), cl::Hidden);
 
-static cl::opt<bool> RISCVSaveCSRsEarly(
-    "riscv-save-csrs-early",
-    cl::desc("Let register alloctor do csr saves/restores"), cl::init(false),
-    cl::Hidden);
+static cl::opt<bool>
+    RISCVSaveCSRsEarly("riscv-save-csrs-early",
+                       cl::desc("Let register alloctor do csr saves/restores"),
+                       cl::init(false), cl::Hidden);
 
 void RISCVSubtarget::anchor() {}
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/170610
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to