[clang] [llvm] [RISCV][clang] Support XSfmm ABI attributes (PR #206260)

via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 16 21:39:14 PDT 2026


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 c,h,cpp -- clang/test/Sema/sifive-xsfmm-func-attr.c llvm/lib/Target/RISCV/RISCVStateAttributes.h llvm/lib/Target/RISCV/RISCVStateCheck.cpp clang/include/clang/AST/TypeBase.h clang/lib/AST/ASTContext.cpp clang/lib/AST/Type.cpp clang/lib/AST/TypePrinter.cpp clang/lib/CodeGen/CGCall.cpp clang/lib/Sema/SemaChecking.cpp clang/lib/Sema/SemaType.cpp llvm/lib/Target/RISCV/RISCV.h llvm/lib/Target/RISCV/RISCVInstrInfo.cpp llvm/lib/Target/RISCV/RISCVTargetMachine.cpp llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp llvm/lib/Target/RISCV/RISCVTargetTransformInfo.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/RISCV/RISCVInstrInfo.cpp b/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
index 4c992a517..d41ab12f7 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
@@ -14,8 +14,8 @@
 #include "MCTargetDesc/RISCVBaseInfo.h"
 #include "MCTargetDesc/RISCVMatInt.h"
 #include "RISCV.h"
-#include "RISCVStateAttributes.h"
 #include "RISCVMachineFunctionInfo.h"
+#include "RISCVStateAttributes.h"
 #include "RISCVSubtarget.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/SmallVector.h"
diff --git a/llvm/lib/Target/RISCV/RISCVStateCheck.cpp b/llvm/lib/Target/RISCV/RISCVStateCheck.cpp
index c9ab99e39..d8450786c 100644
--- a/llvm/lib/Target/RISCV/RISCVStateCheck.cpp
+++ b/llvm/lib/Target/RISCV/RISCVStateCheck.cpp
@@ -6,7 +6,6 @@
 //
 //===----------------------------------------------------------------------===//
 
-
 #include "RISCV.h"
 #include "RISCVStateAttributes.h"
 #include "llvm/CodeGen/MachineFunctionPass.h"
@@ -35,8 +34,8 @@ public:
 
 char RISCVStateCheck::ID = 0;
 
-INITIALIZE_PASS(RISCVStateCheck, "riscv-state-check",
-                RISCV_STATE_CHECK_NAME, false, true)
+INITIALIZE_PASS(RISCVStateCheck, "riscv-state-check", RISCV_STATE_CHECK_NAME,
+                false, true)
 
 static const MachineOperand *getCalleeSymbol(const MachineInstr &MI) {
   for (const MachineOperand &MO : MI.operands())

``````````

</details>


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


More information about the llvm-commits mailing list