[clang] [X86] Add regcall4 attribute to make a specific function respect regc… (PR #69628)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 19 11:45:03 PDT 2023


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 94123d164b910e0e9cca59438a00e619615e5776 786b954e621ac53902ceff4640d1372ef1652699 -- clang/lib/AST/TypePrinter.cpp clang/lib/CodeGen/CGCall.cpp clang/lib/CodeGen/CodeGenModule.cpp clang/test/CodeGen/regcall.c
``````````

</details>

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

``````````diff
diff --git a/clang/lib/AST/TypePrinter.cpp b/clang/lib/AST/TypePrinter.cpp
index 6ca95eefe4b0..a4cfd5d168ce 100644
--- a/clang/lib/AST/TypePrinter.cpp
+++ b/clang/lib/AST/TypePrinter.cpp
@@ -1861,7 +1861,9 @@ void TypePrinter::printAttributedAfter(const AttributedType *T,
   case attr::MSABI: OS << "ms_abi"; break;
   case attr::SysVABI: OS << "sysv_abi"; break;
   case attr::RegCall: OS << "regcall"; break;
-  case attr::RegCall4: OS << "regcall4"; break;
+  case attr::RegCall4:
+    OS << "regcall4";
+    break;
   case attr::Pcs: {
     OS << "pcs(";
    QualType t = T->getEquivalentType();

``````````

</details>


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


More information about the cfe-commits mailing list