[llvm] [NFC][LLVM] Refactor Autoupgrade function attributes from Module attributes. (PR #84494)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 8 07:59:42 PST 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 bd6eb54886ad12fb523e924e7291abfa2b010e3c 36544d98f20dad644591feaded013cca34b5a6f1 -- llvm/lib/IR/AutoUpgrade.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/IR/AutoUpgrade.cpp b/llvm/lib/IR/AutoUpgrade.cpp
index 856b6d656f..7801df7172 100644
--- a/llvm/lib/IR/AutoUpgrade.cpp
+++ b/llvm/lib/IR/AutoUpgrade.cpp
@@ -5203,7 +5203,8 @@ void llvm::CopyModuleAttrToFunctions(Module &M) {
   StringRef GCSValue =
       isModuleAttributeSet(M, "guarded-control-stack") ? "true" : "false";
   StringRef SignKeyValue =
-      isModuleAttributeSet(M, "sign-return-address-with-bkey") ? "b_key" : "a_key";
+      isModuleAttributeSet(M, "sign-return-address-with-bkey") ? "b_key"
+                                                               : "a_key";
 
   for (Function &F : M.getFunctionList()) {
     if (F.isDeclaration())

``````````

</details>


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


More information about the llvm-commits mailing list