From bf87fcb799aacb426a92f7fc643da2dc2b3fa82d Mon Sep 17 00:00:00 2001 From: eopXD Date: Sat, 3 Jun 2023 09:35:28 -0700 Subject: [PATCH] [1/11][Clang][Type] Expand BuiltinTypeBits from 8 to 9 bits This patch-set aims to expand all variants of the RVV segment load/store intrinsics. The first commit expands the limitation of builtin types from 256 to 512. The following patches expands the full variants one-by-one. The next patch introduces a number of new RVV tuple types and lets the total of builtin types exceed the current limit (256). This patch attempts to increase the bits used so we can continue to expand new builtin types. Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D152069 --- clang/include/clang/AST/Type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h index 49ea774..8261d1c 100644 --- a/clang/include/clang/AST/Type.h +++ b/clang/include/clang/AST/Type.h @@ -1649,7 +1649,7 @@ protected: unsigned : NumTypeBits; /// The kind (BuiltinType::Kind) of builtin type this is. - static constexpr unsigned NumOfBuiltinTypeBits = 8; + static constexpr unsigned NumOfBuiltinTypeBits = 9; unsigned Kind : NumOfBuiltinTypeBits; }; -- 2.7.4