[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 10 07:25:15 PDT 2025
================
@@ -76,6 +80,43 @@ class VoidType : public Type {
static bool classof(const Type *T) { return T->getKind() == TypeKind::Void; }
};
+class ComplexType : public Type {
+public:
+ ComplexType(const Type *ElementType, uint64_t SizeInBits, Align Alignment)
+ : Type(TypeKind::Complex, TypeSize::getFixed(SizeInBits), Alignment),
+ ElementType(ElementType) {}
+
+ const Type *getElementType() const { return ElementType; }
+
+ static bool classof(const Type *T) {
+ return T->getKind() == TypeKind::Complex;
+ }
+
+private:
+ const Type *ElementType;
+};
+
+class MemberPointerType : public Type {
+public:
+ MemberPointerType(bool IsFunctionPointer, bool Has64BitPointers,
----------------
nikic wrote:
Actually, it looks like you also have this property on the x86 ABIInfo already :)
https://github.com/llvm/llvm-project/pull/140112
More information about the llvm-commits
mailing list