[clang] [llvm] [RISCV] Implement Clang Builtins for XAndesPerf Extension (PR #147018)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 6 23:08:59 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 HEAD~1 HEAD --extensions c,cpp,h -- clang/test/CodeGen/RISCV/riscv-xandesperf-c-api-rv32.c clang/test/CodeGen/RISCV/riscv-xandesperf-c-api-rv64.c clang/test/CodeGen/RISCV/riscv-xandesperf-rv32.c clang/test/CodeGen/RISCV/riscv-xandesperf-rv64.c clang/lib/CodeGen/TargetBuiltins/RISCV.cpp clang/lib/Headers/riscv_nds.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Headers/riscv_nds.h b/clang/lib/Headers/riscv_nds.h
index 752dc3600..cc6841958 100644
--- a/clang/lib/Headers/riscv_nds.h
+++ b/clang/lib/Headers/riscv_nds.h
@@ -27,8 +27,8 @@ static __inline__ int32_t __DEFAULT_FN_ATTRS __riscv_nds_ffb_32(uint32_t a,
return __builtin_riscv_nds_ffb_32(a, b);
}
-static __inline__ int32_t __DEFAULT_FN_ATTRS __riscv_nds_ffzmism_32(uint32_t a,
- uint32_t b) {
+static __inline__ int32_t __DEFAULT_FN_ATTRS
+__riscv_nds_ffzmism_32(uint32_t a, uint32_t b) {
return __builtin_riscv_nds_ffzmism_32(a, b);
}
@@ -51,8 +51,8 @@ static __inline__ int64_t __DEFAULT_FN_ATTRS __riscv_nds_ffb_64(uint64_t a,
return __builtin_riscv_nds_ffb_64(a, b);
}
-static __inline__ int64_t __DEFAULT_FN_ATTRS __riscv_nds_ffzmism_64(uint64_t a,
- uint64_t b) {
+static __inline__ int64_t __DEFAULT_FN_ATTRS
+__riscv_nds_ffzmism_64(uint64_t a, uint64_t b) {
return __builtin_riscv_nds_ffzmism_64(a, b);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/147018
More information about the llvm-commits
mailing list