/external/clang/lib/Serialization/ |
D | ASTCommon.cpp | 27 serialization::TypeIdxFromBuiltin(const BuiltinType *BT) { in TypeIdxFromBuiltin() 30 case BuiltinType::Void: in TypeIdxFromBuiltin() 33 case BuiltinType::Bool: in TypeIdxFromBuiltin() 36 case BuiltinType::Char_U: in TypeIdxFromBuiltin() 39 case BuiltinType::UChar: in TypeIdxFromBuiltin() 42 case BuiltinType::UShort: in TypeIdxFromBuiltin() 45 case BuiltinType::UInt: in TypeIdxFromBuiltin() 48 case BuiltinType::ULong: in TypeIdxFromBuiltin() 51 case BuiltinType::ULongLong: in TypeIdxFromBuiltin() 54 case BuiltinType::UInt128: in TypeIdxFromBuiltin() [all …]
|
D | ASTCommon.h | 45 TypeIdx TypeIdxFromBuiltin(const BuiltinType *BT); 60 if (const BuiltinType *BT = dyn_cast<BuiltinType>(T.getTypePtr())) in MakeTypeID()
|
/external/clang/lib/AST/ |
D | TypeLoc.cpp | 293 case BuiltinType::Void: in getWrittenTypeSpec() 295 case BuiltinType::Bool: in getWrittenTypeSpec() 297 case BuiltinType::Char_U: in getWrittenTypeSpec() 298 case BuiltinType::Char_S: in getWrittenTypeSpec() 300 case BuiltinType::Char16: in getWrittenTypeSpec() 302 case BuiltinType::Char32: in getWrittenTypeSpec() 304 case BuiltinType::WChar_S: in getWrittenTypeSpec() 305 case BuiltinType::WChar_U: in getWrittenTypeSpec() 307 case BuiltinType::UChar: in getWrittenTypeSpec() 308 case BuiltinType::UShort: in getWrittenTypeSpec() [all …]
|
D | NSAPI.cpp | 391 const BuiltinType *BT = T->getAs<BuiltinType>(); in getNSNumberFactoryMethodKind() 407 case BuiltinType::Char_S: in getNSNumberFactoryMethodKind() 408 case BuiltinType::SChar: in getNSNumberFactoryMethodKind() 410 case BuiltinType::Char_U: in getNSNumberFactoryMethodKind() 411 case BuiltinType::UChar: in getNSNumberFactoryMethodKind() 413 case BuiltinType::Short: in getNSNumberFactoryMethodKind() 415 case BuiltinType::UShort: in getNSNumberFactoryMethodKind() 417 case BuiltinType::Int: in getNSNumberFactoryMethodKind() 419 case BuiltinType::UInt: in getNSNumberFactoryMethodKind() 421 case BuiltinType::Long: in getNSNumberFactoryMethodKind() [all …]
|
D | Type.cpp | 1626 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType)) in isIntegralType() 1627 return BT->getKind() >= BuiltinType::Bool && in isIntegralType() 1628 BT->getKind() <= BuiltinType::Int128; in isIntegralType() 1640 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType)) in isIntegralOrUnscopedEnumerationType() 1641 return BT->getKind() >= BuiltinType::Bool && in isIntegralOrUnscopedEnumerationType() 1642 BT->getKind() <= BuiltinType::Int128; in isIntegralOrUnscopedEnumerationType() 1657 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType)) in isCharType() 1658 return BT->getKind() == BuiltinType::Char_U || in isCharType() 1659 BT->getKind() == BuiltinType::UChar || in isCharType() 1660 BT->getKind() == BuiltinType::Char_S || in isCharType() [all …]
|
D | ItaniumMangle.cpp | 2183 if (Ty->isSpecificBuiltinType(BuiltinType::ObjCSel)) in isTypeSubstitutable() 2278 void CXXNameMangler::mangleType(const BuiltinType *T) { in mangleType() 2310 case BuiltinType::Void: in mangleType() 2313 case BuiltinType::Bool: in mangleType() 2316 case BuiltinType::Char_U: in mangleType() 2317 case BuiltinType::Char_S: in mangleType() 2320 case BuiltinType::UChar: in mangleType() 2323 case BuiltinType::UShort: in mangleType() 2326 case BuiltinType::UInt: in mangleType() 2329 case BuiltinType::ULong: in mangleType() [all …]
|
D | ASTContext.cpp | 976 void ASTContext::InitBuiltinType(CanQualType &R, BuiltinType::Kind K) { in InitBuiltinType() 977 BuiltinType *Ty = new (*this, TypeAlignment) BuiltinType(K); in InitBuiltinType() 996 InitBuiltinType(VoidTy, BuiltinType::Void); in InitBuiltinTypes() 999 InitBuiltinType(BoolTy, BuiltinType::Bool); in InitBuiltinTypes() 1002 InitBuiltinType(CharTy, BuiltinType::Char_S); in InitBuiltinTypes() 1004 InitBuiltinType(CharTy, BuiltinType::Char_U); in InitBuiltinTypes() 1006 InitBuiltinType(SignedCharTy, BuiltinType::SChar); in InitBuiltinTypes() 1007 InitBuiltinType(ShortTy, BuiltinType::Short); in InitBuiltinTypes() 1008 InitBuiltinType(IntTy, BuiltinType::Int); in InitBuiltinTypes() 1009 InitBuiltinType(LongTy, BuiltinType::Long); in InitBuiltinTypes() [all …]
|
D | MicrosoftMangle.cpp | 1613 void MicrosoftCXXNameMangler::mangleType(const BuiltinType *T, Qualifiers, in mangleType() 1640 case BuiltinType::Void: in mangleType() 1643 case BuiltinType::SChar: in mangleType() 1646 case BuiltinType::Char_U: in mangleType() 1647 case BuiltinType::Char_S: in mangleType() 1650 case BuiltinType::UChar: in mangleType() 1653 case BuiltinType::Short: in mangleType() 1656 case BuiltinType::UShort: in mangleType() 1659 case BuiltinType::Int: in mangleType() 1662 case BuiltinType::UInt: in mangleType() [all …]
|
D | StmtPrinter.cpp | 1341 switch (Node->getType()->getAs<BuiltinType>()->getKind()) { in VisitIntegerLiteral() 1343 case BuiltinType::Char_S: in VisitIntegerLiteral() 1344 case BuiltinType::Char_U: OS << "i8"; break; in VisitIntegerLiteral() 1345 case BuiltinType::UChar: OS << "Ui8"; break; in VisitIntegerLiteral() 1346 case BuiltinType::Short: OS << "i16"; break; in VisitIntegerLiteral() 1347 case BuiltinType::UShort: OS << "Ui16"; break; in VisitIntegerLiteral() 1348 case BuiltinType::Int: break; // no suffix. in VisitIntegerLiteral() 1349 case BuiltinType::UInt: OS << 'U'; break; in VisitIntegerLiteral() 1350 case BuiltinType::Long: OS << 'L'; break; in VisitIntegerLiteral() 1351 case BuiltinType::ULong: OS << "UL"; break; in VisitIntegerLiteral() [all …]
|
/external/clang/lib/CodeGen/ |
D | CodeGenTypes.cpp | 407 switch (cast<BuiltinType>(Ty)->getKind()) { in ConvertType() 408 case BuiltinType::Void: in ConvertType() 409 case BuiltinType::ObjCId: in ConvertType() 410 case BuiltinType::ObjCClass: in ConvertType() 411 case BuiltinType::ObjCSel: in ConvertType() 417 case BuiltinType::Bool: in ConvertType() 422 case BuiltinType::Char_S: in ConvertType() 423 case BuiltinType::Char_U: in ConvertType() 424 case BuiltinType::SChar: in ConvertType() 425 case BuiltinType::UChar: in ConvertType() [all …]
|
D | CGOpenCLRuntime.cpp | 39 switch (cast<BuiltinType>(T)->getKind()) { in convertOpenCLSpecificType() 44 case BuiltinType::Id: \ in convertOpenCLSpecificType() 49 case BuiltinType::OCLSampler: in convertOpenCLSpecificType() 51 case BuiltinType::OCLEvent: in convertOpenCLSpecificType() 54 case BuiltinType::OCLClkEvent: in convertOpenCLSpecificType() 57 case BuiltinType::OCLQueue: in convertOpenCLSpecificType() 60 case BuiltinType::OCLNDRange: in convertOpenCLSpecificType() 63 case BuiltinType::OCLReserveID: in convertOpenCLSpecificType()
|
D | CodeGenTBAA.cpp | 108 if (const BuiltinType *BTy = dyn_cast<BuiltinType>(Ty)) { in getTBAAInfo() 115 case BuiltinType::Char_U: in getTBAAInfo() 116 case BuiltinType::Char_S: in getTBAAInfo() 117 case BuiltinType::UChar: in getTBAAInfo() 118 case BuiltinType::SChar: in getTBAAInfo() 122 case BuiltinType::UShort: in getTBAAInfo() 124 case BuiltinType::UInt: in getTBAAInfo() 126 case BuiltinType::ULong: in getTBAAInfo() 128 case BuiltinType::ULongLong: in getTBAAInfo() 130 case BuiltinType::UInt128: in getTBAAInfo()
|
D | TargetInfo.cpp | 843 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) { in isX86VectorTypeForVectorCall() 844 if (BT->isFloatingPoint() && BT->getKind() != BuiltinType::Half) in isX86VectorTypeForVectorCall() 1121 if (Ty->getAs<BuiltinType>() || Ty->hasPointerRepresentation() || in shouldReturnTypeInRegister() 1158 if (!Ty->getAs<BuiltinType>() && !Ty->hasPointerRepresentation() && in is32Or64BitBasicType() 1390 if (const BuiltinType *BT = T->getAs<BuiltinType>()) { in classify() 1391 BuiltinType::Kind K = BT->getKind(); in classify() 1392 if (K == BuiltinType::Float || K == BuiltinType::Double) in classify() 2332 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) { in classify() 2333 BuiltinType::Kind k = BT->getKind(); in classify() 2335 if (k == BuiltinType::Void) { in classify() [all …]
|
D | ItaniumCXXABI.cpp | 2515 static bool TypeInfoIsInStandardLibrary(const BuiltinType *Ty) { in TypeInfoIsInStandardLibrary() 2531 case BuiltinType::Void: in TypeInfoIsInStandardLibrary() 2532 case BuiltinType::NullPtr: in TypeInfoIsInStandardLibrary() 2533 case BuiltinType::Bool: in TypeInfoIsInStandardLibrary() 2534 case BuiltinType::WChar_S: in TypeInfoIsInStandardLibrary() 2535 case BuiltinType::WChar_U: in TypeInfoIsInStandardLibrary() 2536 case BuiltinType::Char_U: in TypeInfoIsInStandardLibrary() 2537 case BuiltinType::Char_S: in TypeInfoIsInStandardLibrary() 2538 case BuiltinType::UChar: in TypeInfoIsInStandardLibrary() 2539 case BuiltinType::SChar: in TypeInfoIsInStandardLibrary() [all …]
|
D | CGDebugInfo.cpp | 463 llvm::DIType *CGDebugInfo::CreateType(const BuiltinType *BT) { in CreateType() 468 #define PLACEHOLDER_TYPE(Id, SingletonId) case BuiltinType::Id: in CreateType() 470 case BuiltinType::Dependent: in CreateType() 472 case BuiltinType::NullPtr: in CreateType() 474 case BuiltinType::Void: in CreateType() 476 case BuiltinType::ObjCClass: in CreateType() 482 case BuiltinType::ObjCId: { in CreateType() 510 case BuiltinType::ObjCSel: { in CreateType() 519 case BuiltinType::Id: \ in CreateType() 523 case BuiltinType::OCLSampler: in CreateType() [all …]
|
/external/clang/lib/Index/ |
D | USRGeneration.cpp | 572 if (const BuiltinType *BT = T->getAs<BuiltinType>()) { in VisitType() 575 case BuiltinType::Void: in VisitType() 577 case BuiltinType::Bool: in VisitType() 579 case BuiltinType::UChar: in VisitType() 581 case BuiltinType::Char16: in VisitType() 583 case BuiltinType::Char32: in VisitType() 585 case BuiltinType::UShort: in VisitType() 587 case BuiltinType::UInt: in VisitType() 589 case BuiltinType::ULong: in VisitType() 591 case BuiltinType::ULongLong: in VisitType() [all …]
|
/external/clang/lib/Analysis/ |
D | FormatString.cpp | 316 if (const BuiltinType *BT = argTy->getAs<BuiltinType>()) in matchesType() 320 case BuiltinType::Char_S: in matchesType() 321 case BuiltinType::SChar: in matchesType() 322 case BuiltinType::UChar: in matchesType() 323 case BuiltinType::Char_U: in matchesType() 337 if (const BuiltinType *BT = argTy->getAs<BuiltinType>()) in matchesType() 341 case BuiltinType::Char_S: in matchesType() 342 case BuiltinType::SChar: in matchesType() 343 case BuiltinType::Char_U: in matchesType() 344 case BuiltinType::UChar: in matchesType() [all …]
|
D | PrintfFormatString.cpp | 605 const BuiltinType *BT = QT->getAs<BuiltinType>(); in fixType() 611 case BuiltinType::Bool: in fixType() 612 case BuiltinType::WChar_U: in fixType() 613 case BuiltinType::WChar_S: in fixType() 614 case BuiltinType::Char16: in fixType() 615 case BuiltinType::Char32: in fixType() 616 case BuiltinType::UInt128: in fixType() 617 case BuiltinType::Int128: in fixType() 618 case BuiltinType::Half: in fixType() 619 case BuiltinType::Float128: in fixType() [all …]
|
D | ScanfFormatString.cpp | 424 const BuiltinType *BT = PT->getAs<BuiltinType>(); in fixType() 450 case BuiltinType::UInt: in fixType() 451 case BuiltinType::Int: in fixType() 452 case BuiltinType::Float: in fixType() 457 case BuiltinType::Char_U: in fixType() 458 case BuiltinType::UChar: in fixType() 459 case BuiltinType::Char_S: in fixType() 460 case BuiltinType::SChar: in fixType() 465 case BuiltinType::Short: in fixType() 466 case BuiltinType::UShort: in fixType() [all …]
|
/external/llvm/tools/llvm-pdbdump/ |
D | EnumDumper.cpp | 29 auto BuiltinType = Symbol.getUnderlyingType(); in start() local 30 if (BuiltinType->getBuiltinType() != PDB_BuiltinType::Int || in start() 31 BuiltinType->getLength() != 4) { in start() 34 Dumper.start(*BuiltinType); in start()
|
/external/clang/include/clang/AST/ |
D | Type.h | 1364 friend class BuiltinType; 1616 const BuiltinType *getAsPlaceholderType() const; 2039 class BuiltinType : public Type { 2052 BuiltinType(Kind K) 4788 return getBaseType()->isSpecificBuiltinType(BuiltinType::ObjCId); 4791 return getBaseType()->isSpecificBuiltinType(BuiltinType::ObjCClass); 4797 if (const BuiltinType *T = getBaseType()->getAs<BuiltinType>()) 4798 return T->getKind() == BuiltinType::ObjCId || 4799 T->getKind() == BuiltinType::ObjCClass; 5540 return isa<BuiltinType>(CanonicalType); [all …]
|
/external/clang/utils/ABITest/ |
D | ABITestGen.py | 201 if isinstance(t, BuiltinType): 270 if isinstance(t, BuiltinType): 319 if isinstance(t, BuiltinType): 507 btg = FixedTypeGenerator([BuiltinType(n,s) for n,s in builtins]) 514 bitfields.append(BuiltinType(name,None,int(width))) 517 charType = BuiltinType('char',1) 518 shortType = BuiltinType('short',2) 519 intType = BuiltinType('int',4) 520 longlongType = BuiltinType('long long',8) 521 floatType = BuiltinType('float',4) [all …]
|
D | TypeGen.py | 33 class BuiltinType(Type): class 445 fbtg = FixedTypeGenerator([BuiltinType('char', 4), 446 BuiltinType('char', 4, 0), 447 BuiltinType('int', 4, 5)]) 456 btg = FixedTypeGenerator([BuiltinType('char', 4), 457 BuiltinType('int', 4)])
|
/external/clang/lib/Sema/ |
D | SemaCast.cpp | 57 if (const BuiltinType *placeholder = in CastOperation() 61 PlaceholderKind = (BuiltinType::Kind) 0; in CastOperation() 71 BuiltinType::Kind PlaceholderKind; 105 bool claimPlaceholder(BuiltinType::Kind K) { in claimPlaceholder() 108 PlaceholderKind = (BuiltinType::Kind) 0; in claimPlaceholder() 115 bool isPlaceholder(BuiltinType::Kind K) const { in isPlaceholder() 135 if (!isPlaceholder() || isPlaceholder(BuiltinType::Overload)) in checkNonOverloadPlaceholders() 141 PlaceholderKind = (BuiltinType::Kind) 0; in checkNonOverloadPlaceholders() 843 if (ValueKind == VK_RValue && !isPlaceholder(BuiltinType::Overload)) in CheckReinterpretCast() 894 if (claimPlaceholder(BuiltinType::Overload)) { in CheckStaticCast() [all …]
|
/external/clang/test/Misc/ |
D | ast-dump-pipe.cl | 4 // CHECK-NEXT: BuiltinType {{.*}} 'int'
|