[llvm] [CHERI] Add enum values and LL parse/print support for CHERI calling conventions. (PR #156328)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 8 07:47:31 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 cpp,h -- llvm/include/llvm/AsmParser/LLToken.h llvm/include/llvm/IR/CallingConv.h llvm/lib/AsmParser/LLLexer.cpp llvm/lib/AsmParser/LLParser.cpp llvm/lib/IR/AsmWriter.cpp
``````````

: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/include/llvm/IR/CallingConv.h b/llvm/include/llvm/IR/CallingConv.h
index e27f166ec..ece6187d5 100644
--- a/llvm/include/llvm/IR/CallingConv.h
+++ b/llvm/include/llvm/IR/CallingConv.h
@@ -287,7 +287,8 @@ namespace CallingConv {
     // Calling convention for AMDGPU whole wave functions.
     AMDGPU_Gfx_WholeWave = 124,
 
-    /// CHERIoT_CompartmentCall - Calling convention used for CHERI when crossing a
+    /// CHERIoT_CompartmentCall - Calling convention used for CHERI when
+    /// crossing a
     /// protection boundary.
     CHERIoT_CompartmentCall = 125,
     /// CHERI_CCallee - Calling convention used for the callee of CHERI_CCall.

``````````

</details>


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


More information about the llvm-commits mailing list