Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/AST/ASTImporter.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 1,040 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
ExpectedType ASTNodeImporter::VisitBuiltinType(const BuiltinType *T) { | ExpectedType ASTNodeImporter::VisitBuiltinType(const BuiltinType *T) { | ||||
switch (T->getKind()) { | switch (T->getKind()) { | ||||
#define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) \ | #define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) \ | ||||
case BuiltinType::Id: \ | case BuiltinType::Id: \ | ||||
return Importer.getToContext().SingletonId; | return Importer.getToContext().SingletonId; | ||||
#include "clang/Basic/OpenCLImageTypes.def" | #include "clang/Basic/OpenCLImageTypes.def" | ||||
#define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) \ | |||||
case BuiltinType::Sampled##Id: \ | |||||
return Importer.getToContext().Sampled##SingletonId; | |||||
#define IMAGE_WRITE_TYPE(Type, Id, Ext) | |||||
#define IMAGE_READ_WRITE_TYPE(Type, Id, Ext) | |||||
#include "clang/Basic/OpenCLImageTypes.def" | |||||
#define EXT_OPAQUE_TYPE(ExtType, Id, Ext) \ | #define EXT_OPAQUE_TYPE(ExtType, Id, Ext) \ | ||||
case BuiltinType::Id: \ | case BuiltinType::Id: \ | ||||
return Importer.getToContext().Id##Ty; | return Importer.getToContext().Id##Ty; | ||||
#include "clang/Basic/OpenCLExtensionTypes.def" | #include "clang/Basic/OpenCLExtensionTypes.def" | ||||
#define SVE_TYPE(Name, Id, SingletonId) \ | #define SVE_TYPE(Name, Id, SingletonId) \ | ||||
case BuiltinType::Id: \ | case BuiltinType::Id: \ | ||||
return Importer.getToContext().SingletonId; | return Importer.getToContext().SingletonId; | ||||
#include "clang/Basic/AArch64SVEACLETypes.def" | #include "clang/Basic/AArch64SVEACLETypes.def" | ||||
▲ Show 20 Lines • Show All 8,481 Lines • Show Last 20 Lines |