[PATCH] D156686: [AST] Simplify Type::isSizelessBuiltinType(). NFC.
Jim Lin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 1 19:47:26 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1c1066797c5b: [AST] Simplify Type::isSizelessBuiltinType(). NFC. (authored by Jim).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156686/new/
https://reviews.llvm.org/D156686
Files:
clang/lib/AST/Type.cpp
Index: clang/lib/AST/Type.cpp
===================================================================
--- clang/lib/AST/Type.cpp
+++ clang/lib/AST/Type.cpp
@@ -2353,14 +2353,11 @@
}
bool Type::isSizelessBuiltinType() const {
+ if (isSVESizelessBuiltinType() || isRVVSizelessBuiltinType())
+ return true;
+
if (const BuiltinType *BT = getAs<BuiltinType>()) {
switch (BT->getKind()) {
- // SVE Types
-#define SVE_TYPE(Name, Id, SingletonId) case BuiltinType::Id:
-#include "clang/Basic/AArch64SVEACLETypes.def"
-#define RVV_TYPE(Name, Id, SingletonId) case BuiltinType::Id:
-#include "clang/Basic/RISCVVTypes.def"
- return true;
// WebAssembly reference types
#define WASM_TYPE(Name, Id, SingletonId) case BuiltinType::Id:
#include "clang/Basic/WebAssemblyReferenceTypes.def"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156686.546298.patch
Type: text/x-patch
Size: 805 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230802/4ae68ba2/attachment-0001.bin>
More information about the cfe-commits
mailing list