[clang] [SystemZ][z/OS] Implement z/OS XPLINK ABI (PR #91384)

via cfe-commits cfe-commits at lists.llvm.org
Tue May 7 12:38:50 PDT 2024


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 27becf0c3c1e7ac4a2f2e848b44d872f1aa1db9a 7b40fa0aab937dfc0ab8db48ed93db1a5debef0b -- clang/test/CodeGen/zos-abi.c clang/lib/CodeGen/CodeGenModule.cpp clang/lib/CodeGen/TargetInfo.h clang/lib/CodeGen/Targets/SystemZ.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/CodeGen/Targets/SystemZ.cpp b/clang/lib/CodeGen/Targets/SystemZ.cpp
index 903e7391b3..1eef5aa83e 100644
--- a/clang/lib/CodeGen/Targets/SystemZ.cpp
+++ b/clang/lib/CodeGen/Targets/SystemZ.cpp
@@ -540,8 +540,7 @@ class ZOSXPLinkABIInfo : public ABIInfo {
   bool HasVector;
 
 public:
-  ZOSXPLinkABIInfo(CodeGenTypes &CGT, bool HV)
-      : ABIInfo(CGT), HasVector(HV) {}
+  ZOSXPLinkABIInfo(CodeGenTypes &CGT, bool HV) : ABIInfo(CGT), HasVector(HV) {}
 
   bool isPromotableIntegerType(QualType Ty) const;
   bool isCompoundType(QualType Ty) const;
@@ -575,9 +574,9 @@ class ZOSXPLinkTargetCodeGenInfo : public TargetCodeGenInfo {
 public:
   ZOSXPLinkTargetCodeGenInfo(CodeGenTypes &CGT, bool HasVector)
       : TargetCodeGenInfo(std::make_unique<ZOSXPLinkABIInfo>(CGT, HasVector)) {
-          SwiftInfo =
-            std::make_unique<SwiftABIInfo>(CGT, /*SwiftErrorInRegister=*/false);
-      }
+    SwiftInfo =
+        std::make_unique<SwiftABIInfo>(CGT, /*SwiftErrorInRegister=*/false);
+  }
 };
 
 } // namespace

``````````

</details>


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


More information about the cfe-commits mailing list