[clang] [llvm] [LLVMABI] Implement the System V X86-64 ABI (PR #194718)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 14 11:25:56 PDT 2026
github-actions[bot] wrote:
<!--LLVM IDS CHECK COMMENT-->
:warning: LLVM ABI annotation checker, ids-check found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
Build idt from compnerd/ids, then for each changed header:
idt -p build/ --main-file <matching-source.cpp> \
--apply-fixits --inplace <header>
``````````
</details>
<details>
<summary>
View the diff from ids-check here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/ABI/TargetInfo.h b/llvm/include/llvm/ABI/TargetInfo.h
index 8de18c494..82bb849eb 100644
--- a/llvm/include/llvm/ABI/TargetInfo.h
+++ b/llvm/include/llvm/ABI/TargetInfo.h
@@ -92,7 +92,7 @@ enum class X86AVXABILevel {
AVX512,
};
-std::unique_ptr<TargetInfo> createX86_64TargetInfo(TypeBuilder &TB,
+LLVM_ABI std::unique_ptr<TargetInfo> createX86_64TargetInfo(TypeBuilder &TB,
X86AVXABILevel AVXLevel,
bool Has64BitPointers,
const ABICompatInfo &Compat);
diff --git a/llvm/include/llvm/ABI/Types.h b/llvm/include/llvm/ABI/Types.h
index a3d5f0d91..f511f8137 100644
--- a/llvm/include/llvm/ABI/Types.h
+++ b/llvm/include/llvm/ABI/Types.h
@@ -313,7 +313,7 @@ public:
/// Returns the field, base, or virtual base whose extent contains
/// \p OffsetInBits, or nullptr if no such element exists. Empty bases and
/// unnamed bitfields are skipped.
- const FieldInfo *getElementContainingOffset(unsigned OffsetInBits) const;
+ LLVM_ABI const FieldInfo *getElementContainingOffset(unsigned OffsetInBits) const;
static bool classof(const Type *T) {
return T->getKind() == TypeKind::Record;
``````````
</details>
https://github.com/llvm/llvm-project/pull/194718
More information about the cfe-commits
mailing list