[llvm] [Docs] Document IIT encoding flow for intrinsic type signatures (PR #185453)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 9 09:33:36 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 cpp -- llvm/lib/IR/Intrinsics.cpp llvm/utils/TableGen/Basic/IntrinsicEmitter.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/utils/TableGen/Basic/IntrinsicEmitter.cpp b/llvm/utils/TableGen/Basic/IntrinsicEmitter.cpp
index 77175c22f..f9fcbd44b 100644
--- a/llvm/utils/TableGen/Basic/IntrinsicEmitter.cpp
+++ b/llvm/utils/TableGen/Basic/IntrinsicEmitter.cpp
@@ -336,8 +336,8 @@ static std::optional<uint32_t> encodePacked(const TypeSigTy &TypeSig) {
/// Emit IIT_Table[] and IIT_LongEncodingTable[] into \p OS
/// (included via GET_INTRINSIC_GENERATOR_GLOBAL in Intrinsics.cpp).
-/// TypeInfoGen<> in Intrinsics.td builds the TypeSig list,
-/// which IntrinsicEmitter.cpp packs using encodePacked().
+/// TypeInfoGen<> in Intrinsics.td builds the TypeSig list,
+/// which IntrinsicEmitter.cpp packs using encodePacked().
/// Check the MSB of the IIT_Table entry to determine the following:
/// Fixed (MSB=0): all IIT codes < 16 and nibble-packed value fits in
/// FixedEncodingTy with MSB clear. Stored directly in IIT_Table[].
``````````
</details>
https://github.com/llvm/llvm-project/pull/185453
More information about the llvm-commits
mailing list