[llvm] [C API] Add LLVMIntrinsicGetOverloadTypes (PR #230425)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 9 02:35:07 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 h,cpp -- llvm/include/llvm-c/Core.h llvm/lib/IR/Core.cpp llvm/unittests/IR/CoreBindings.cpp --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/IR/Core.cpp b/llvm/lib/IR/Core.cpp
index 007f7350c..b402291ed 100644
--- a/llvm/lib/IR/Core.cpp
+++ b/llvm/lib/IR/Core.cpp
@@ -2657,8 +2657,8 @@ LLVMBool LLVMIntrinsicGetOverloadTypes(unsigned ID, LLVMTypeRef FunctionTy,
   if (IID == Intrinsic::not_intrinsic)
     return false;
   SmallVector<Type *, 4> OverloadTys;
-  if (!llvm::Intrinsic::isSignatureValid(
-          IID, unwrap<FunctionType>(FunctionTy), OverloadTys))
+  if (!llvm::Intrinsic::isSignatureValid(IID, unwrap<FunctionType>(FunctionTy),
+                                         OverloadTys))
     return false;
   *OverloadCount = OverloadTys.size();
   if (OverloadTypes)

``````````

</details>


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


More information about the llvm-commits mailing list