[clang] [llvm] RISCV: the builtins support for MIPS RV64 P8700 execution control . (PR #159246)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 19 00:16:40 PDT 2025
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 -- clang/lib/Headers/riscv_mips.h clang/test/CodeGen/RISCV/builtins-riscv-mips.c
``````````
: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/clang/lib/Headers/riscv_mips.h b/clang/lib/Headers/riscv_mips.h
index 092a92757..124a98928 100644
--- a/clang/lib/Headers/riscv_mips.h
+++ b/clang/lib/Headers/riscv_mips.h
@@ -1,4 +1,5 @@
-//===----- riscv_mips.h - RISC-V MIPS Intrinsic definitions ----------------------===//
+//===----- riscv_mips.h - RISC-V MIPS Intrinsic definitions
+//----------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -6,7 +7,6 @@
//
//===----------------------------------------------------------------------===//
-
#ifndef __RISCV_MIPS_H
#define __RISCV_MIPS_H
@@ -14,21 +14,19 @@
#error "This header is only meant to be used on riscv architecture"
#endif
-#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("xmipsexectl")))
+#define __DEFAULT_FN_ATTRS \
+ __attribute__((__always_inline__, __nodebug__, __target__("xmipsexectl")))
-static __inline__ void __DEFAULT_FN_ATTRS __mips_pause()
-{
- __builtin_riscv_mips_pause();
+static __inline__ void __DEFAULT_FN_ATTRS __mips_pause() {
+ __builtin_riscv_mips_pause();
}
-static __inline__ void __DEFAULT_FN_ATTRS __mips_ehb()
-{
- __builtin_riscv_mips_ehb();
+static __inline__ void __DEFAULT_FN_ATTRS __mips_ehb() {
+ __builtin_riscv_mips_ehb();
}
-static __inline__ void __DEFAULT_FN_ATTRS __mips_ihb()
-{
- __builtin_riscv_mips_ihb();
+static __inline__ void __DEFAULT_FN_ATTRS __mips_ihb() {
+ __builtin_riscv_mips_ihb();
}
#undef __DEFAULT_FN_ATTRS
``````````
</details>
https://github.com/llvm/llvm-project/pull/159246
More information about the cfe-commits
mailing list