26#include "llvm/IR/DataLayout.h"
27#include "llvm/IR/DerivedTypes.h"
28#include "llvm/IR/Module.h"
31using namespace CodeGen;
34 : CGM(cgm), Context(cgm.getContext()), TheModule(cgm.getModule()),
36 SkippedLayout =
false;
37 LongDoubleReferenced =
false;
41 for (llvm::FoldingSet<CGFunctionInfo>::iterator
42 I = FunctionInfos.begin(),
E = FunctionInfos.end(); I !=
E; )
56 llvm::raw_svector_ostream OS(
TypeName);
77 if (TDD->getDeclContext())
78 TDD->printQualifiedName(OS, Policy);
87 Ty->setName(OS.str());
113 auto *FixedVT = cast<llvm::FixedVectorType>(R);
115 uint64_t BytePadded = std::max<uint64_t>(FixedVT->getNumElements(), 8);
116 return llvm::IntegerType::get(FixedVT->getContext(), BytePadded);
134 return llvm::ArrayType::get(CGM.
Int8Ty,
140 if (R->isIntegerTy(1))
149 llvm::Type *LLVMTy) {
156 return ASTSize != LLVMSize;
160 llvm::Type *LLVMTy) {
165 return llvm::Type::getIntNTy(
168 if (LLVMTy->isIntegerTy(1))
181 llvm::DenseMap<const Type*, llvm::StructType *>::const_iterator I =
182 RecordDeclTypes.find(Ty);
183 return I != RecordDeclTypes.end() && !I->second->isOpaque();
197 if (!TT)
return true;
214 for (
unsigned i = 0, e = FPT->getNumParams(); i != e; i++)
227 if (
const EnumDecl *ED = dyn_cast<EnumDecl>(TD)) {
229 if (TypeCache.count(ED->getTypeForDecl())) {
233 if (!
ConvertType(ED->getIntegerType())->isIntegerTy(32))
239 DI->completeType(ED);
256 DI->completeType(RD);
263 const Type *Ty =
T.getTypePtr();
264 if (RecordsWithOpaqueMemberPointers.count(Ty)) {
266 RecordsWithOpaqueMemberPointers.clear();
271 const llvm::fltSemantics &format,
272 bool UseNativeHalf =
false) {
273 if (&format == &llvm::APFloat::IEEEhalf()) {
275 return llvm::Type::getHalfTy(VMContext);
277 return llvm::Type::getInt16Ty(VMContext);
279 if (&format == &llvm::APFloat::BFloat())
280 return llvm::Type::getBFloatTy(VMContext);
281 if (&format == &llvm::APFloat::IEEEsingle())
282 return llvm::Type::getFloatTy(VMContext);
283 if (&format == &llvm::APFloat::IEEEdouble())
284 return llvm::Type::getDoubleTy(VMContext);
285 if (&format == &llvm::APFloat::IEEEquad())
286 return llvm::Type::getFP128Ty(VMContext);
287 if (&format == &llvm::APFloat::PPCDoubleDouble())
288 return llvm::Type::getPPC_FP128Ty(VMContext);
289 if (&format == &llvm::APFloat::x87DoubleExtended())
290 return llvm::Type::getX86_FP80Ty(VMContext);
291 llvm_unreachable(
"Unknown float format!");
294llvm::Type *CodeGenTypes::ConvertFunctionTypeInternal(
QualType QFT) {
308 for (
unsigned i = 0, e = FPT->getNumParams(); i != e; i++)
312 SkippedLayout =
true;
330 llvm::Type *ResultType =
nullptr;
333 if (FunctionsBeingProcessed.count(FI)) {
336 SkippedLayout =
true;
350 const Type *Ty =
T.getTypePtr();
367 if (
const RecordType *RT = dyn_cast<RecordType>(Ty))
370 llvm::Type *CachedType =
nullptr;
371 auto TCI = TypeCache.find(Ty);
372 if (TCI != TypeCache.end())
373 CachedType = TCI->second;
376#ifndef EXPENSIVE_CHECKS
382 llvm::Type *ResultType =
nullptr;
385#define TYPE(Class, Base)
386#define ABSTRACT_TYPE(Class, Base)
387#define NON_CANONICAL_TYPE(Class, Base) case Type::Class:
388#define DEPENDENT_TYPE(Class, Base) case Type::Class:
389#define NON_CANONICAL_UNLESS_DEPENDENT_TYPE(Class, Base) case Type::Class:
390#include "clang/AST/TypeNodes.inc"
391 llvm_unreachable(
"Non-canonical or dependent types aren't possible.");
393 case Type::Builtin: {
394 switch (cast<BuiltinType>(Ty)->
getKind()) {
395 case BuiltinType::Void:
396 case BuiltinType::ObjCId:
397 case BuiltinType::ObjCClass:
398 case BuiltinType::ObjCSel:
404 case BuiltinType::Bool:
409 case BuiltinType::Char_S:
410 case BuiltinType::Char_U:
411 case BuiltinType::SChar:
412 case BuiltinType::UChar:
413 case BuiltinType::Short:
414 case BuiltinType::UShort:
415 case BuiltinType::Int:
416 case BuiltinType::UInt:
417 case BuiltinType::Long:
418 case BuiltinType::ULong:
419 case BuiltinType::LongLong:
420 case BuiltinType::ULongLong:
421 case BuiltinType::WChar_S:
422 case BuiltinType::WChar_U:
423 case BuiltinType::Char8:
424 case BuiltinType::Char16:
425 case BuiltinType::Char32:
426 case BuiltinType::ShortAccum:
427 case BuiltinType::Accum:
428 case BuiltinType::LongAccum:
429 case BuiltinType::UShortAccum:
430 case BuiltinType::UAccum:
431 case BuiltinType::ULongAccum:
432 case BuiltinType::ShortFract:
433 case BuiltinType::Fract:
434 case BuiltinType::LongFract:
435 case BuiltinType::UShortFract:
436 case BuiltinType::UFract:
437 case BuiltinType::ULongFract:
438 case BuiltinType::SatShortAccum:
439 case BuiltinType::SatAccum:
440 case BuiltinType::SatLongAccum:
441 case BuiltinType::SatUShortAccum:
442 case BuiltinType::SatUAccum:
443 case BuiltinType::SatULongAccum:
444 case BuiltinType::SatShortFract:
445 case BuiltinType::SatFract:
446 case BuiltinType::SatLongFract:
447 case BuiltinType::SatUShortFract:
448 case BuiltinType::SatUFract:
449 case BuiltinType::SatULongFract:
454 case BuiltinType::Float16:
460 case BuiltinType::Half:
467 case BuiltinType::LongDouble:
468 LongDoubleReferenced =
true;
470 case BuiltinType::BFloat16:
471 case BuiltinType::Float:
472 case BuiltinType::Double:
473 case BuiltinType::Float128:
474 case BuiltinType::Ibm128:
480 case BuiltinType::NullPtr:
485 case BuiltinType::UInt128:
486 case BuiltinType::Int128:
490#define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) \
491 case BuiltinType::Id:
492#include "clang/Basic/OpenCLImageTypes.def"
493#define EXT_OPAQUE_TYPE(ExtType, Id, Ext) \
494 case BuiltinType::Id:
495#include "clang/Basic/OpenCLExtensionTypes.def"
496 case BuiltinType::OCLSampler:
497 case BuiltinType::OCLEvent:
498 case BuiltinType::OCLClkEvent:
499 case BuiltinType::OCLQueue:
500 case BuiltinType::OCLReserveID:
503 case BuiltinType::SveInt8:
504 case BuiltinType::SveUint8:
505 case BuiltinType::SveInt8x2:
506 case BuiltinType::SveUint8x2:
507 case BuiltinType::SveInt8x3:
508 case BuiltinType::SveUint8x3:
509 case BuiltinType::SveInt8x4:
510 case BuiltinType::SveUint8x4:
511 case BuiltinType::SveInt16:
512 case BuiltinType::SveUint16:
513 case BuiltinType::SveInt16x2:
514 case BuiltinType::SveUint16x2:
515 case BuiltinType::SveInt16x3:
516 case BuiltinType::SveUint16x3:
517 case BuiltinType::SveInt16x4:
518 case BuiltinType::SveUint16x4:
519 case BuiltinType::SveInt32:
520 case BuiltinType::SveUint32:
521 case BuiltinType::SveInt32x2:
522 case BuiltinType::SveUint32x2:
523 case BuiltinType::SveInt32x3:
524 case BuiltinType::SveUint32x3:
525 case BuiltinType::SveInt32x4:
526 case BuiltinType::SveUint32x4:
527 case BuiltinType::SveInt64:
528 case BuiltinType::SveUint64:
529 case BuiltinType::SveInt64x2:
530 case BuiltinType::SveUint64x2:
531 case BuiltinType::SveInt64x3:
532 case BuiltinType::SveUint64x3:
533 case BuiltinType::SveInt64x4:
534 case BuiltinType::SveUint64x4:
535 case BuiltinType::SveBool:
536 case BuiltinType::SveBoolx2:
537 case BuiltinType::SveBoolx4:
538 case BuiltinType::SveFloat16:
539 case BuiltinType::SveFloat16x2:
540 case BuiltinType::SveFloat16x3:
541 case BuiltinType::SveFloat16x4:
542 case BuiltinType::SveFloat32:
543 case BuiltinType::SveFloat32x2:
544 case BuiltinType::SveFloat32x3:
545 case BuiltinType::SveFloat32x4:
546 case BuiltinType::SveFloat64:
547 case BuiltinType::SveFloat64x2:
548 case BuiltinType::SveFloat64x3:
549 case BuiltinType::SveFloat64x4:
550 case BuiltinType::SveBFloat16:
551 case BuiltinType::SveBFloat16x2:
552 case BuiltinType::SveBFloat16x3:
553 case BuiltinType::SveBFloat16x4: {
557 Info.
EC.getKnownMinValue() *
560 case BuiltinType::SveCount:
561 return llvm::TargetExtType::get(
getLLVMContext(),
"aarch64.svcount");
562#define PPC_VECTOR_TYPE(Name, Id, Size) \
563 case BuiltinType::Id: \
565 llvm::FixedVectorType::get(ConvertType(Context.BoolTy), Size); \
567#include "clang/Basic/PPCTypes.def"
568#define RVV_TYPE(Name, Id, SingletonId) case BuiltinType::Id:
569#include "clang/Basic/RISCVVTypes.def"
577 llvm::Type *EltTy = llvm::ScalableVectorType::get(
583 Info.
EC.getKnownMinValue());
585#define WASM_REF_TYPE(Name, MangledName, Id, SingletonId, AS) \
586 case BuiltinType::Id: { \
587 if (BuiltinType::Id == BuiltinType::WasmExternRef) \
588 ResultType = CGM.getTargetCodeGenInfo().getWasmExternrefReferenceType(); \
590 llvm_unreachable("Unexpected wasm reference builtin type!"); \
592#include "clang/Basic/WebAssemblyReferenceTypes.def"
593#define AMDGPU_OPAQUE_PTR_TYPE(Name, MangledName, AS, Width, Align, Id, \
595 case BuiltinType::Id: \
596 return llvm::PointerType::get(getLLVMContext(), AS);
597#include "clang/Basic/AMDGPUTypes.def"
598#define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) case BuiltinType::Id:
599#include "clang/Basic/HLSLIntangibleTypes.def"
602 case BuiltinType::Dependent:
603#define BUILTIN_TYPE(Id, SingletonId)
604#define PLACEHOLDER_TYPE(Id, SingletonId) \
605 case BuiltinType::Id:
606#include "clang/AST/BuiltinTypes.def"
607 llvm_unreachable(
"Unexpected placeholder builtin type!");
612 case Type::DeducedTemplateSpecialization:
613 llvm_unreachable(
"Unexpected undeduced type!");
614 case Type::Complex: {
615 llvm::Type *EltTy =
ConvertType(cast<ComplexType>(Ty)->getElementType());
616 ResultType = llvm::StructType::get(EltTy, EltTy);
619 case Type::LValueReference:
620 case Type::RValueReference: {
627 case Type::Pointer: {
635 case Type::VariableArray: {
638 "FIXME: We only handle trivial array types so far!");
644 case Type::IncompleteArray: {
647 "FIXME: We only handle trivial array types so far!");
651 if (!ResultType->isSized()) {
652 SkippedLayout =
true;
655 ResultType = llvm::ArrayType::get(ResultType, 0);
658 case Type::ArrayParameter:
659 case Type::ConstantArray: {
665 if (!EltTy->isSized()) {
666 SkippedLayout =
true;
670 ResultType = llvm::ArrayType::get(EltTy, A->
getZExtSize());
673 case Type::ExtVector:
675 const auto *VT = cast<VectorType>(Ty);
677 llvm::Type *IRElemTy = VT->isExtVectorBoolType()
680 ResultType = llvm::FixedVectorType::get(IRElemTy, VT->getNumElements());
683 case Type::ConstantMatrix: {
690 case Type::FunctionNoProto:
691 case Type::FunctionProto:
692 ResultType = ConvertFunctionTypeInternal(
T);
694 case Type::ObjCObject:
695 ResultType =
ConvertType(cast<ObjCObjectType>(Ty)->getBaseType());
698 case Type::ObjCInterface: {
702 llvm::Type *&
T = InterfaceTypes[cast<ObjCInterfaceType>(Ty)];
709 case Type::ObjCObjectPointer:
714 const EnumDecl *ED = cast<EnumType>(Ty)->getDecl();
724 case Type::BlockPointer: {
737 case Type::MemberPointer: {
738 auto *MPTy = cast<MemberPointerType>(Ty);
739 if (!
getCXXABI().isMemberPointerConvertible(MPTy)) {
740 auto *
C = MPTy->getClass();
741 auto Insertion = RecordsWithOpaqueMemberPointers.insert({
C,
nullptr});
742 if (Insertion.second)
743 Insertion.first->second = llvm::StructType::create(
getLLVMContext());
744 ResultType = Insertion.first->second;
752 QualType valueType = cast<AtomicType>(Ty)->getValueType();
756 uint64_t valueSize = Context.
getTypeSize(valueType);
758 if (valueSize != atomicSize) {
759 assert(valueSize < atomicSize);
760 llvm::Type *elts[] = {
762 llvm::ArrayType::get(CGM.
Int8Ty, (atomicSize - valueSize) / 8)
774 const auto &EIT = cast<BitIntType>(Ty);
775 ResultType = llvm::Type::getIntNTy(
getLLVMContext(), EIT->getNumBits());
780 assert(ResultType &&
"Didn't convert a type?");
781 assert((!CachedType || CachedType == ResultType) &&
782 "Cached type doesn't match computed type");
784 TypeCache[Ty] = ResultType;
802 llvm::StructType *&Entry = RecordDeclTypes[Key];
809 llvm::StructType *Ty = Entry;
818 if (
const CXXRecordDecl *CRD = dyn_cast<CXXRecordDecl>(RD)) {
819 for (
const auto &I : CRD->bases()) {
820 if (I.isVirtual())
continue;
827 CGRecordLayouts[Key] = std::move(Layout);
843 auto I = CGRecordLayouts.find(Key);
844 if (I != CGRecordLayouts.end())
850 I = CGRecordLayouts.find(Key);
852 assert(I != CGRecordLayouts.end() &&
853 "Unable to find record layout information for type");
867 if (isa<IncompleteArrayType>(AT))
869 if (
const auto *CAT = dyn_cast<ConstantArrayType>(AT))
Defines the clang::ASTContext interface.
static llvm::Type * getTypeForFormat(llvm::LLVMContext &VMContext, const llvm::fltSemantics &format, bool UseNativeHalf=false)
static Decl::Kind getKind(const Decl *D)
Defines the C++ Decl subclasses, other than those for templates (found in DeclTemplate....
llvm::MachO::Target Target
static CharUnits getTypeAllocSize(CodeGenModule &CGM, llvm::Type *type)
BuiltinVectorTypeInfo getBuiltinVectorTypeInfo(const BuiltinType *VecTy) const
Returns the element type, element count and number of vectors (in case of tuple) for a builtin vector...
const llvm::fltSemantics & getFloatTypeSemantics(QualType T) const
Return the APFloat 'semantics' for the specified scalar floating point type.
QualType getTagDeclType(const TagDecl *Decl) const
Return the unique reference to the type for the specified TagDecl (struct/union/class/enum) decl.
QualType getRecordType(const RecordDecl *Decl) const
uint64_t getTargetNullPointerValue(QualType QT) const
Get target-dependent integer value for null pointer which is used for constant folding.
CanQualType getCanonicalType(QualType T) const
Return the canonical (structural) type corresponding to the specified potentially non-canonical type ...
const LangOptions & getLangOpts() const
QualType getBaseElementType(const ArrayType *VAT) const
Return the innermost element type of an array type.
const clang::PrintingPolicy & getPrintingPolicy() const
const ArrayType * getAsArrayType(QualType T) const
Type Query functions.
uint64_t getTypeSize(QualType T) const
Return the size of the specified (complete) type T, in bits.
CharUnits getTypeSizeInChars(QualType T) const
Return the size of the specified (complete) type T, in characters.
const TargetInfo & getTargetInfo() const
uint64_t getConstantArrayElementCount(const ConstantArrayType *CA) const
Return number of constant array elements.
unsigned getTargetAddressSpace(LangAS AS) const
QualType getElementType() const
unsigned getIndexTypeCVRQualifiers() const
Represents a C++ struct/union/class.
Represents a canonical, potentially-qualified type.
const T * getTypePtr() const
Retrieve the underlying type pointer, which refers to a canonical type.
CharUnits - This is an opaque type for sizes expressed in character units.
QuantityType getQuantity() const
getQuantity - Get the raw integer representation of this quantity.
static CharUnits fromQuantity(QuantityType Quantity)
fromQuantity - Construct a CharUnits quantity from a raw integer type.
CodeGenOptions - Track various options which control how the code is optimized and passed to the back...
Implements C++ ABI-specific code generation functions.
virtual bool isMemberPointerConvertible(const MemberPointerType *MPT) const
Return whether or not a member pointers type is convertible to an IR type.
virtual llvm::Type * ConvertMemberPointerType(const MemberPointerType *MPT)
Find the LLVM type used to represent the given member pointer type.
virtual bool isZeroInitializable(const MemberPointerType *MPT)
Return true if the given member pointer can be zero-initialized (in the C++ sense) with an LLVM zeroi...
This class gathers all debug information during compilation and is responsible for emitting to llvm g...
CGFunctionInfo - Class to encapsulate the information about a function definition.
llvm::Type * convertHLSLSpecificType(const Type *T)
virtual llvm::Type * getPipeType(const PipeType *T, StringRef Name, llvm::Type *&PipeTy)
virtual llvm::Type * convertOpenCLSpecificType(const Type *T)
CGRecordLayout - This class handles struct and union layout info while lowering AST types to LLVM typ...
bool isZeroInitializable() const
Check whether this struct can be C++ zero-initialized with a zeroinitializer.
This class organizes the cross-function state that is used while generating LLVM code.
CGHLSLRuntime & getHLSLRuntime()
Return a reference to the configured HLSL runtime.
CGDebugInfo * getModuleDebugInfo()
bool isPaddedAtomicType(QualType type)
CGOpenCLRuntime & getOpenCLRuntime()
Return a reference to the configured OpenCL runtime.
CGCXXABI & getCXXABI() const
const TargetCodeGenInfo & getTargetCodeGenInfo()
const CodeGenOptions & getCodeGenOpts() const
CodeGenTypes(CodeGenModule &cgm)
llvm::Type * ConvertType(QualType T)
ConvertType - Convert type T into a llvm::Type.
CGCXXABI & getCXXABI() const
bool isPointerZeroInitializable(QualType T)
Check if the pointer type can be zero-initialized (in the C++ sense) with an LLVM zeroinitializer.
const CodeGenOptions & getCodeGenOpts() const
ASTContext & getContext() const
const CGFunctionInfo & arrangeFreeFunctionType(CanQual< FunctionProtoType > Ty)
Arrange the argument and result information for a value of the given freestanding function type.
llvm::FunctionType * GetFunctionType(const CGFunctionInfo &Info)
GetFunctionType - Get the LLVM function type for.
bool isFuncTypeConvertible(const FunctionType *FT)
isFuncTypeConvertible - Utility to check whether a function type can be converted to an LLVM type (i....
std::unique_ptr< CGRecordLayout > ComputeRecordLayout(const RecordDecl *D, llvm::StructType *Ty)
Compute a new LLVM record layout object for the given record.
llvm::Type * convertTypeForLoadStore(QualType T, llvm::Type *LLVMTy=nullptr)
Given that T is a scalar type, return the IR type that should be used for load and store operations.
const CGRecordLayout & getCGRecordLayout(const RecordDecl *)
getCGRecordLayout - Return record layout info for the given record decl.
unsigned getTargetAddressSpace(QualType T) const
llvm::StructType * ConvertRecordDeclType(const RecordDecl *TD)
ConvertRecordDeclType - Lay out a tagged decl type like struct or union.
void RefreshTypeCacheForClass(const CXXRecordDecl *RD)
Remove stale types from the type cache when an inheritance model gets assigned to a class.
bool isRecordLayoutComplete(const Type *Ty) const
isRecordLayoutComplete - Return true if the specified type is already completely laid out.
llvm::Type * ConvertTypeForMem(QualType T)
ConvertTypeForMem - Convert type T into a llvm::Type.
CodeGenModule & getCGM() const
void UpdateCompletedType(const TagDecl *TD)
UpdateCompletedType - When we find the full definition for a TagDecl, replace the 'opaque' type we pr...
llvm::LLVMContext & getLLVMContext()
bool typeRequiresSplitIntoByteArray(QualType ASTTy, llvm::Type *LLVMTy=nullptr)
Check whether the given type needs to be laid out in memory using an opaque byte-array type because i...
const llvm::DataLayout & getDataLayout() const
bool isFuncParamTypeConvertible(QualType Ty)
isFuncParamTypeConvertible - Return true if the specified type in a function parameter or result posi...
bool isZeroInitializable(QualType T)
IsZeroInitializable - Return whether a type can be zero-initialized (in the C++ sense) with an LLVM z...
void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty, StringRef suffix)
addRecordTypeName - Compute a name from the given record decl with an optional suffix and name the gi...
virtual llvm::Type * getCUDADeviceBuiltinSurfaceDeviceType() const
Return the device-side type for the CUDA device builtin surface type.
virtual llvm::Type * getCUDADeviceBuiltinTextureDeviceType() const
Return the device-side type for the CUDA device builtin texture type.
Represents the canonical version of C arrays with a specified constant size.
uint64_t getZExtSize() const
Return the size zero-extended as a uint64_t.
Represents a concrete matrix type with constant number of rows and columns.
unsigned getNumColumns() const
Returns the number of columns in the matrix.
unsigned getNumRows() const
Returns the number of rows in the matrix.
ASTContext & getASTContext() const LLVM_READONLY
DeclContext * getDeclContext()
bool isFixed() const
Returns true if this is an Objective-C, C++11, or Microsoft-style enumeration with a fixed underlying...
QualType getIntegerType() const
Return the integer type this enum decl corresponds to.
Represents a K&R-style 'int foo()' function, which has no information available about its arguments.
Represents a prototype with parameter type info, e.g.
FunctionType - C99 6.7.5.3 - Function Declarators.
QualType getReturnType() const
Represents a C array with an unspecified size.
QualType getElementType() const
Returns type of the elements being stored in the matrix.
A pointer to member type per C++ 8.3.3 - Pointers to members.
IdentifierInfo * getIdentifier() const
Get the identifier that names this declaration, if there is one.
void printQualifiedName(raw_ostream &OS) const
Returns a human-readable qualified name for this declaration, like A::B::i, for i being member of nam...
PointerType - C99 6.7.5.1 - Pointer Declarators.
QualType getPointeeType() const
A (possibly-)qualified type.
const Type * getTypePtr() const
Retrieves a pointer to the underlying (unqualified) type.
LangAS getAddressSpace() const
Return the address space of this type.
Represents a struct/union/class.
RecordDecl * getDefinition() const
Returns the RecordDecl that actually defines this struct/union/class.
A helper class that allows the use of isa/cast/dyncast to detect TagType objects of structs/unions/cl...
RecordDecl * getDecl() const
Base for LValueReferenceType and RValueReferenceType.
QualType getPointeeType() const
Represents the declaration of a struct/union/class/enum.
StringRef getKindName() const
bool isCompleteDefinition() const
Return true if this decl has its body fully specified.
TypedefNameDecl * getTypedefNameForAnonDecl() const
void printName(raw_ostream &OS, const PrintingPolicy &Policy) const override
Pretty-print the unqualified name of this declaration.
bool isDependentType() const
Whether this declaration declares a type that is dependent, i.e., a type that somehow depends on temp...
virtual bool useFP16ConversionIntrinsics() const
Check whether llvm intrinsics such as llvm.convert.to.fp16 should be used to convert to and from __fp...
The base class of the type hierarchy.
bool isBlockPointerType() const
bool isConstantMatrixType() const
bool isCUDADeviceBuiltinSurfaceType() const
Check if the type is the CUDA device builtin surface type.
QualType getPointeeType() const
If this is a pointer, ObjC object pointer, or block pointer, this returns the respective pointee.
bool isExtVectorBoolType() const
bool isBitIntType() const
bool isCUDADeviceBuiltinTextureType() const
Check if the type is the CUDA device builtin texture type.
bool isIncompleteType(NamedDecl **Def=nullptr) const
Types are partitioned into 3 broad categories (C99 6.2.5p1): object types, function types,...
bool isFunctionType() const
bool isAnyPointerType() const
TypeClass getTypeClass() const
const T * getAs() const
Member-template getAs<specific type>'.
Base class for declarations which introduce a typedef-name.
Represents a C array with a specified size that is not an integer-constant-expression.
const internal::VariadicAllOfMatcher< Type > type
Matches Types in the clang AST.
The JSON file list parser is used to communicate input to InstallAPI.
const FunctionProtoType * T
llvm::IntegerType * Int8Ty
i8, i16, i32, and i64
Describes how types, statements, expressions, and declarations should be printed.
unsigned SuppressInlineNamespace
Suppress printing parts of scope specifiers that correspond to inline namespaces, where the name is u...