[clang] [VE] Enable _BitInt support (PR #186587)
Kazushi Marukawa via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 14 04:36:30 PDT 2026
https://github.com/jam7 created https://github.com/llvm/llvm-project/pull/186587
Add hasBitIntType() override returning true in VETargetInfo in
order to enable _BitInt for VE. This enables `_BitInt(N)` type
support for the VE target.
>From ad173e83d789313d69983f7db143a3f2eb810960 Mon Sep 17 00:00:00 2001
From: "Kazushi (Jam) Marukawa" <jam at pobox.com>
Date: Sat, 21 Feb 2026 04:34:41 +0900
Subject: [PATCH] [VE] Enable _BitInt support
Add hasBitIntType() override returning true in VETargetInfo in
order to enable _BitInt for VE.
---
clang/lib/Basic/Targets/VE.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/clang/lib/Basic/Targets/VE.h b/clang/lib/Basic/Targets/VE.h
index b518407d34438..17ea07541420f 100644
--- a/clang/lib/Basic/Targets/VE.h
+++ b/clang/lib/Basic/Targets/VE.h
@@ -53,6 +53,8 @@ class LLVM_LIBRARY_VISIBILITY VETargetInfo : public TargetInfo {
bool hasSjLjLowering() const override { return true; }
+ bool hasBitIntType() const override { return true; }
+
llvm::SmallVector<Builtin::InfosShard> getTargetBuiltins() const override;
BuiltinVaListKind getBuiltinVaListKind() const override {
More information about the cfe-commits
mailing list