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 h,cpp,c -- 
clang/test/CodeGen/SystemZ/encoding.c clang/lib/Lex/HeaderMap.cpp 
llvm/lib/Support/VirtualOutputBackends.cpp 
llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp 
llvm/lib/Target/SystemZ/SystemZAsmPrinter.h --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/lib/Target/SystemZ/SystemZAsmPrinter.cpp 
b/llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
index 17e71ec76..8b525dfb8 100644
--- a/llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
@@ -347,7 +347,7 @@ void SystemZAsmPrinter::emitInstruction(const MachineInstr 
*MI) {
   case SystemZ::ADA_ENTRY: {
     const SystemZSubtarget &Subtarget = MF->getSubtarget<SystemZSubtarget>();
     const SystemZInstrInfo *TII = Subtarget.getInstrInfo();
-    uint32_t Disp  = ADATable.insert(MI->getOperand(1));
+    uint32_t Disp = ADATable.insert(MI->getOperand(1));
     Register TargetReg = MI->getOperand(0).getReg();
 
     Register ADAReg = MI->getOperand(2).getReg();
@@ -373,8 +373,8 @@ void SystemZAsmPrinter::emitInstruction(const MachineInstr 
*MI) {
       Disp = 0;
       Op = Op0;
     }
-    OutStreamer->AddComment(Twine("Loading from ADA at offset ")
-                        .concat(utostr(Disp)));
+    OutStreamer->AddComment(
+        Twine("Loading from ADA at offset ").concat(utostr(Disp)));
     EmitToStreamer(*OutStreamer, MCInstBuilder(Op)
                                      .addReg(TargetReg)
                                      .addReg(ADAReg)
@@ -1757,7 +1757,8 @@ const MCExpr *SystemZAsmPrinter::lowerConstant(const 
Constant *CV,
   return AsmPrinter::lowerConstant(CV);
 }
 
-void SystemZAsmPrinter::emitGlobalAlias(const Module &M, const GlobalAlias 
&GA) {
+void SystemZAsmPrinter::emitGlobalAlias(const Module &M,
+                                        const GlobalAlias &GA) {
   if (!TM.getTargetTriple().isOSzOS()) {
     AsmPrinter::emitGlobalAlias(M, GA);
     return;
diff --git a/llvm/lib/Target/SystemZ/SystemZAsmPrinter.h 
b/llvm/lib/Target/SystemZ/SystemZAsmPrinter.h
index 003e9af7c..9d1e010ab 100644
--- a/llvm/lib/Target/SystemZ/SystemZAsmPrinter.h
+++ b/llvm/lib/Target/SystemZ/SystemZAsmPrinter.h
@@ -132,7 +132,9 @@ public:
   void emitStartOfAsmFile(Module &M) override;
   void emitGlobalVariable(const GlobalVariable *GV) override;
   void emitGlobalAlias(const Module &M, const GlobalAlias &GA) override;
-  const MCExpr *lowerConstant(const Constant *CV, const Constant *BaseCV = 
nullptr, uint64_t Offset = 0) override;
+  const MCExpr *lowerConstant(const Constant *CV,
+                              const Constant *BaseCV = nullptr,
+                              uint64_t Offset = 0) override;
 
 private:
   void emitCallInformation(CallType CT);

``````````

</details>


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

Reply via email to