[llvm] [RISCV] Remove StackAlign attribute enum. NFC (PR #79946)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 29 21:47: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 70eb0e37a86747f9266e4c8380baa89746f5e23b 1c09a6a5da722e8b0f448a1769fa6e7b1fd59d7c -- llvm/include/llvm/Support/RISCVAttributes.h llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp llvm/unittests/Support/RISCVAttributeParserTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/unittests/Support/RISCVAttributeParserTest.cpp b/llvm/unittests/Support/RISCVAttributeParserTest.cpp
index ca9e816ce8..498f58e98b 100644
--- a/llvm/unittests/Support/RISCVAttributeParserTest.cpp
+++ b/llvm/unittests/Support/RISCVAttributeParserTest.cpp
@@ -55,10 +55,8 @@ static bool testTagString(unsigned Tag, const char *name) {
 
 TEST(StackAlign, testAttribute) {
   EXPECT_TRUE(testTagString(4, "Tag_stack_align"));
-  EXPECT_TRUE(
-      testAttribute(4, 4, RISCVAttrs::STACK_ALIGN, 4));
-  EXPECT_TRUE(
-      testAttribute(4, 16, RISCVAttrs::STACK_ALIGN, 16));
+  EXPECT_TRUE(testAttribute(4, 4, RISCVAttrs::STACK_ALIGN, 4));
+  EXPECT_TRUE(testAttribute(4, 16, RISCVAttrs::STACK_ALIGN, 16));
 }
 
 TEST(UnalignedAccess, testAttribute) {

``````````

</details>


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


More information about the llvm-commits mailing list