/external/clang/include/clang/AST/ |
H A D | TypeLoc.h | 41 // The correctness of this relies on the property that, for Type *Ty, 42 // QualType(Ty, 0).getAsOpaquePtr() == (void*) Ty 43 const void *Ty; member in class:clang::TypeLoc 81 TypeLoc() : Ty(0), Data(0) { } 83 : Ty(ty.getAsOpaquePtr()), Data(opaqueData) { } 85 : Ty(ty), Data(opaqueData) { } 92 bool isNull() const { return !Ty; } 93 LLVM_EXPLICIT operator bool() const { return Ty; } 96 static unsigned getFullDataSizeForType(QualType Ty); 207 UnqualTypeLoc(const Type *Ty, void *Data) argument 322 classofType(const Type *Ty) argument 424 classofType(const Type *Ty) argument [all...] |
/external/clang/lib/AST/ |
H A D | DumpXML.cpp | 910 Type *Ty = const_cast<Type*>(T.getTypePtr()); local 911 push(getTypeKindName(Ty));
|
H A D | MicrosoftMangle.cpp | 319 QualType Ty = TL.getType(); local 320 if (Ty->isPointerType() || Ty->isReferenceType()) { 321 mangleType(Ty, TL.getSourceRange(), QMM_Drop); 322 mangleQualifiers(Ty->getPointeeType().getQualifiers(), false); 323 } else if (const ArrayType *AT = getASTContext().getAsArrayType(Ty)) { 329 mangleQualifiers(Ty.getQualifiers(), false); 331 mangleType(Ty, TL.getSourceRange(), QMM_Drop); 332 mangleQualifiers(Ty.getLocalQualifiers(), Ty [all...] |
/external/clang/lib/CodeGen/ |
H A D | CGRecordLayoutBuilder.cpp | 181 CharUnits getTypeAlignment(llvm::Type *Ty) const; 233 llvm::Type *Ty = Types.ConvertTypeForMem(FD->getType()); local 235 CharUnits::fromQuantity(Types.getDataLayout().getTypeAllocSize(Ty)); 392 llvm::Type *Ty = Types.ConvertTypeForMem(D->getType()); local 393 CharUnits typeAlignment = getTypeAlignment(Ty); 434 AppendField(fieldOffsetInBytes, Ty); 893 llvm::Type *Ty = llvm::Type::getInt8Ty(Types.getLLVMContext()); local 895 Ty = llvm::ArrayType::get(Ty, numBytes.getQuantity()); 897 return Ty; 949 ComputeRecordLayout(const RecordDecl *D, llvm::StructType *Ty) argument [all...] |
H A D | TargetInfo.cpp | 100 if (llvm::Type *Ty = getCoerceToType()) 101 Ty->print(OS); 293 static bool is32Or64BitBasicType(QualType Ty, ASTContext &Context) { argument 295 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) 296 Ty = CTy->getElementType(); 301 if (!Ty->getAs<BuiltinType>() && !Ty->hasPointerRepresentation() && 302 !Ty->isEnumeralType() && !Ty->isBlockPointerType()) 305 uint64_t Size = Context.getTypeSize(Ty); 318 canExpandIndirectArgument(QualType Ty, ASTContext &Context) argument 385 EmitVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CGF) const argument 456 EmitVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CGF) const argument 503 X86AdjustInlineAsmType(CodeGen::CodeGenFunction &CGF, StringRef Constraint, llvm::Type* Ty) argument 605 shouldReturnTypeInRegister(QualType Ty, ASTContext &Context, unsigned callingConvention) argument 742 isSSEVectorType(ASTContext &Context, QualType Ty) argument 746 isRecordWithSSEVectorType(ASTContext &Context, QualType Ty) argument 773 getTypeStackAlignInBytes(QualType Ty, unsigned Align) const argument 794 getIndirectResult(QualType Ty, bool ByVal, unsigned &FreeRegs) const argument 832 shouldUseInReg(QualType Ty, unsigned &FreeRegs, bool IsFastCall, bool &NeedsPadding) const argument 874 classifyArgumentType(QualType Ty, unsigned &FreeRegs, bool IsFastCall) const argument 980 EmitVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CGF) const argument 1421 classify(QualType Ty, uint64_t OffsetBase, Class &Lo, Class &Hi, bool isNamedArg) const argument [all...] |
/external/clang/lib/Driver/ |
H A D | Driver.cpp | 1043 types::ID Ty = types::TY_INVALID; local 1060 Ty = types::TY_C; 1067 Ty = TC.LookupTypeForExtension(Ext + 1); 1069 if (Ty == types::TY_INVALID) { 1071 Ty = types::TY_C; 1073 Ty = types::TY_Object; 1079 types::ID OldTy = Ty; 1080 Ty = types::lookupCXXTypeForCType(Ty); 1082 if (Ty ! [all...] |
/external/clang/lib/Parse/ |
H A D | ParseExpr.cpp | 833 TypeResult Ty = Actions.ActOnTypeName(getCurScope(), local 835 if (Ty.isInvalid()) 840 Ty.get(), 0); 996 TypeResult Ty = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo); local 997 if (Ty.isInvalid()) 1002 Ty.get(), 0); 1772 TypeResult Ty = ParseTypeName(); local 1779 if (Expr.isInvalid() || Ty.isInvalid()) 1782 Res = Actions.ActOnVAArg(StartLoc, Expr.take(), Ty.get(), ConsumeParen()); 1787 TypeResult Ty local 2032 TypeResult Ty = ParseTypeName(); local 2071 TypeResult Ty; local 2085 TypeResult Ty; local 2102 TypeResult Ty; local 2180 ParseCompoundLiteralExpression(ParsedType Ty, SourceLocation LParenLoc, SourceLocation RParenLoc) argument 2262 ParsedType Ty; local [all...] |
H A D | Parser.cpp | 1525 TypeResult Ty; local 1528 Ty = Actions.ActOnTypenameType(getCurScope(), TypenameLoc, SS, 1542 Ty = Actions.ActOnTypenameType(getCurScope(), TypenameLoc, SS, 1557 setTypeAnnotation(Tok, Ty.isInvalid() ? ParsedType() : Ty.get()); 1586 if (ParsedType Ty = Actions.getTypeName(*Tok.getIdentifierInfo(), 1600 setTypeAnnotation(Tok, Ty);
|
/external/clang/lib/Sema/ |
H A D | Sema.cpp | 262 ExprResult Sema::ImpCastExprToType(Expr *E, QualType Ty, argument 282 QualType TypeTy = Context.getCanonicalType(Ty); 301 ImpCast->setType(Ty); 307 return Owned(ImplicitCastExpr::Create(Context, Ty, Kind, E, BasePath, VK));
|
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | BugReporterVisitors.cpp | 1426 QualType Ty = CondVarExpr->getType(); local 1428 if (Ty->isPointerType()) 1430 else if (Ty->isObjCObjectPointerType()) 1432 else if (Ty->isBooleanType()) 1434 else if (Ty->isIntegralOrEnumerationType())
|
H A D | MemRegion.cpp | 1110 static bool IsCompleteType(ASTContext &Ctx, QualType Ty) { argument 1111 if (const RecordType *RT = Ty->getAs<RecordType>()) { 1231 QualType Ty; local 1234 Ty = TVR->getDesugaredValueType(getContext()); 1239 Ty = SR->getSymbol()->getType()->getPointeeType(); 1243 const CXXRecordDecl *Child = Ty->getAsCXXRecordDecl();
|
/external/clang/test/Misc/ |
H A D | diag-template-diffing.cpp | 909 typedef int Ty; typedef in struct:DependentDefault::Trait 915 template <typename T, typename = Trait<T>::Ty > struct B {};
|
/external/clang/tools/libclang/ |
H A D | CXCursor.cpp | 912 QualType Ty = Type->getType(); local 916 if (const ElaboratedType *ElabT = Ty->getAs<ElaboratedType>()) { 917 Ty = ElabT->getNamedType(); 922 if (const TypedefType *Typedef = Ty->getAs<TypedefType>()) 924 if (const TagType *Tag = Ty->getAs<TagType>()) 926 if (const TemplateTypeParmType *TemplP = Ty->getAs<TemplateTypeParmType>())
|
H A D | IndexingContext.cpp | 100 QualType Ty = IBAttr->getInterface(); local 101 if (const ObjCInterfaceType *InterTy = Ty->getAs<ObjCInterfaceType>()) {
|
/external/llvm/include/llvm/CodeGen/ |
H A D | MachineBasicBlock.h | 143 template<typename Ty, typename IterTy> 145 : public std::iterator<std::bidirectional_iterator_tag, Ty, ptrdiff_t> { 151 bundle_iterator(Ty &mi) : MII(mi) { 155 bundle_iterator(Ty *mi) : MII(mi) { 165 Ty &operator*() const { return *MII; } 166 Ty *operator->() const { return &operator*(); } 168 operator Ty*() const { return MII; }
|
/external/llvm/include/llvm/Support/ |
H A D | PatternMatch.h | 1063 typedef match_combine_and<IntrinsicID_match, Argument_match<T0> > Ty; typedef in struct:llvm::PatternMatch::m_Intrinsic_Ty 1067 typedef match_combine_and<typename m_Intrinsic_Ty<T0>::Ty, 1068 Argument_match<T1> > Ty; typedef in struct:llvm::PatternMatch::m_Intrinsic_Ty 1072 typedef match_combine_and<typename m_Intrinsic_Ty<T0, T1>::Ty, 1073 Argument_match<T2> > Ty; typedef in struct:llvm::PatternMatch::m_Intrinsic_Ty 1077 typedef match_combine_and<typename m_Intrinsic_Ty<T0, T1, T2>::Ty, 1078 Argument_match<T3> > Ty; typedef in struct:llvm::PatternMatch::m_Intrinsic_Ty 1088 inline typename m_Intrinsic_Ty<T0>::Ty 1094 inline typename m_Intrinsic_Ty<T0, T1>::Ty 1100 inline typename m_Intrinsic_Ty<T0, T1, T2>::Ty [all...] |
/external/llvm/include/llvm/Target/ |
H A D | TargetLowering.h | 486 unsigned Ty = (unsigned)VT.SimpleTy; 487 return (LegalizeAction)((IndexedModeActions[Ty][IdxMode] & 0xf0) >> 4); 504 unsigned Ty = (unsigned)VT.SimpleTy; 505 return (LegalizeAction)(IndexedModeActions[Ty][IdxMode] & 0x0f); 569 EVT getValueType(Type *Ty, bool AllowUnknown = false) const { 571 if (Ty->isPointerTy()) return PointerTy; 573 if (Ty->isVectorTy()) { 574 VectorType *VTy = cast<VectorType>(Ty); 578 Elm = EVT(PointerTy).getTypeForEVT(Ty->getContext()); 579 return EVT::getVectorVT(Ty 586 getSimpleValueType(Type *Ty, bool AllowUnknown = false) const argument 847 setBooleanContents(BooleanContent Ty) argument 851 setBooleanVectorContents(BooleanContent Ty) argument [all...] |
/external/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 482 Type *Ty = cast<PointerType>(CE->getType())->getElementType(); local 483 unsigned NumBits = Ty->getPrimitiveSizeInBits(); 487 (isa<IntegerType>(Ty) || Ty->isFloatingPointTy())) { 506 if (Ty->isFloatingPointTy()) 507 Res = ConstantExpr::getBitCast(Res, Ty); 729 Type *Ty = Ptr->getType(); local 730 assert(Ty->isPointerTy() && "Forming regular GEP of non-pointer type"); 733 if (SequentialType *ATy = dyn_cast<SequentialType>(Ty)) { 746 IntegerType *IntPtrTy = TD->getIntPtrType(Ty 1198 ConstantFoldFP(double (*NativeFP)(double), double V, Type *Ty) argument 1220 ConstantFoldBinaryFP(double (*NativeFP)(double, double), double V, double W, Type *Ty) argument 1250 ConstantFoldConvertToInt(const APFloat &Val, bool roundTowardZero, Type *Ty) argument 1277 Type *Ty = F->getReturnType(); local [all...] |
H A D | ValueTracking.cpp | 39 static unsigned getBitWidth(Type *Ty, const DataLayout *TD) { argument 40 if (unsigned BitWidth = Ty->getScalarSizeInBits()) 42 assert(isa<PointerType>(Ty) && "Expected a pointer type!"); 1128 Type *Ty = V->getType(); local 1130 Ty->getScalarSizeInBits();
|
/external/llvm/lib/Analysis/IPA/ |
H A D | InlineCost.cpp | 286 Type *Ty = I.getAllocatedType(); local 287 AllocatedSize += (TD ? TD->getTypeAllocSize(Ty) : 288 Ty->getPrimitiveSizeInBits());
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FastISel.cpp | 478 Type *Ty = I->getOperand(0)->getType(); local 483 if (StructType *StTy = dyn_cast<StructType>(Ty)) { 497 Ty = StTy->getElementType(Field); 499 Ty = cast<SequentialType>(Ty)->getElementType(); 506 TD.getTypeAllocSize(Ty)*cast<ConstantInt>(CI)->getSExtValue(); 527 uint64_t ElementSize = TD.getTypeAllocSize(Ty);
|
/external/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 982 GenericValue *Ptr, Type *Ty) { 983 const unsigned StoreBytes = getDataLayout()->getTypeStoreSize(Ty); 985 switch (Ty->getTypeID()) { 987 dbgs() << "Cannot store value of type " << *Ty << "!\n"; 1010 if (cast<VectorType>(Ty)->getElementType()->isDoubleTy()) 1012 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) 1014 if (cast<VectorType>(Ty)->getElementType()->isIntegerTy()) { 1059 Type *Ty) { 1060 const unsigned LoadBytes = getDataLayout()->getTypeStoreSize(Ty); 1062 switch (Ty 981 StoreValueToMemory(const GenericValue &Val, GenericValue *Ptr, Type *Ty) argument 1057 LoadValueFromMemory(GenericValue &Result, GenericValue *Ptr, Type *Ty) argument 1113 OS << "Cannot load value of type " << *Ty << "!"; local [all...] |
/external/llvm/lib/IR/ |
H A D | ConstantFold.cpp | 59 Type *Ty = IntegerType::get(CV->getContext(), 32); local 62 ConstantExpr::getExtractElement(CV, ConstantInt::get(Ty, i)); 333 /// on Ty, with any known factors factored out. If Folded is false, 337 static Constant *getFoldedSizeOf(Type *Ty, Type *DestTy, argument 339 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { 345 if (StructType *STy = dyn_cast<StructType>(Ty)) 369 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) 382 Constant *C = ConstantExpr::getSizeOf(Ty); 390 /// on Ty, with any known factors factored out. If Folded is false, 394 static Constant *getFoldedAlignOf(Type *Ty, Typ argument 460 getFoldedOffsetOf(Type *Ty, Constant *FieldNo, Type *DestTy, bool Folded) argument 556 Type *Ty = IntegerType::get(V->getContext(), 32); local 613 Type *Ty = local 704 Type *Ty = IntegerType::get(CondV->getContext(), 32); local 769 Type *Ty = IntegerType::get(Val->getContext(), 32); local 811 Type *Ty = IntegerType::get(V2->getContext(), 32); local 816 Type *Ty = IntegerType::get(V1->getContext(), 32); local 1139 Type *Ty = IntegerType::get(VTy->getContext(), 32); local 1206 isMaybeZeroSizedType(Type *Ty) argument 1698 Type *Ty = IntegerType::get(C1->getContext(), 32); local 1911 Type *Ty = GetElementPtrInst::getIndexedType(Ptr, Idxs); local 1925 Type *Ty = GetElementPtrInst::getIndexedType(Ptr, Idxs); local 2007 Type *Ty = C->getType(); local [all...] |
H A D | ConstantsContext.h | 42 UnaryConstantExpr(unsigned Opcode, Constant *C, Type *Ty) argument 43 : ConstantExpr(Ty, Opcode, &Op<0>(), 1) { 413 static ConstantClass *create(TypeClass *Ty, const ValType &V) { argument 414 return new(ConstantTraits<ValType>::uses(V)) ConstantClass(Ty, V); 420 static ConstantClass *create(TypeClass *Ty, ArrayRef<Constant*> V) { argument 421 return new(V.size()) ConstantClass(Ty, V); 435 static ConstantExpr *create(Type *Ty, const ExprMapKeyType &V, argument 438 return new UnaryConstantExpr(V.opcode, V.operands[0], Ty); 456 V.indices, Ty); 458 return new ExtractValueConstantExpr(V.operands[0], V.indices, Ty); 496 create(PointerType *Ty, const InlineAsmKeyType &Key) argument 579 Create(TypeClass *Ty, ValRefType V, typename MapTy::iterator I) argument 596 getOrCreate(TypeClass *Ty, ValRefType V) argument 719 Create(TypeClass *Ty, Operands V, typename MapTy::iterator I) argument 732 getOrCreate(TypeClass *Ty, Operands V) argument [all...] |
H A D | DIBuilder.cpp | 342 DIDerivedType DIBuilder::createTypedef(DIType Ty, StringRef Name, DIFile File, argument 345 assert(Ty.isType() && "Invalid typedef type!"); 356 Ty 362 DIDerivedType DIBuilder::createFriend(DIType Ty, DIType FriendTy) { argument 364 assert(Ty.isType() && "Invalid type!"); 369 Ty, 384 DIType Ty, DIType BaseTy, uint64_t BaseOffset, unsigned Flags) { 385 assert(Ty.isType() && "Unable to create inheritance"); 390 Ty, 406 unsigned Flags, DIType Ty) { 383 createInheritance( DIType Ty, DIType BaseTy, uint64_t BaseOffset, unsigned Flags) argument 403 createMemberType( DIDescriptor Scope, StringRef Name, DIFile File, unsigned LineNumber, uint64_t SizeInBits, uint64_t AlignInBits, uint64_t OffsetInBits, unsigned Flags, DIType Ty) argument 426 createStaticMemberType(DIDescriptor Scope, StringRef Name, DIFile File, unsigned LineNumber, DIType Ty, unsigned Flags, llvm::Value *Val) argument 451 createObjCIVar(StringRef Name, DIFile File, unsigned LineNumber, uint64_t SizeInBits, uint64_t AlignInBits, uint64_t OffsetInBits, unsigned Flags, DIType Ty, StringRef PropertyName, StringRef GetterName, StringRef SetterName, unsigned PropertyAttributes) argument 481 createObjCIVar(StringRef Name, DIFile File, unsigned LineNumber, uint64_t SizeInBits, uint64_t AlignInBits, uint64_t OffsetInBits, unsigned Flags, DIType Ty, MDNode *PropertyNode) argument 505 createObjCProperty(StringRef Name, DIFile File, unsigned LineNumber, StringRef GetterName, StringRef SetterName, unsigned PropertyAttributes, DIType Ty) argument 527 createTemplateTypeParameter(DIDescriptor Context, StringRef Name, DIType Ty, MDNode *File, unsigned LineNo, unsigned ColumnNo) argument 543 createTemplateValueParameter(unsigned Tag, DIDescriptor Context, StringRef Name, DIType Ty, Value *Val, MDNode *File, unsigned LineNo, unsigned ColumnNo) argument 564 createTemplateValueParameter(DIDescriptor Context, StringRef Name, DIType Ty, Value *Val, MDNode *File, unsigned LineNo, unsigned ColumnNo) argument 574 createTemplateTemplateParameter(DIDescriptor Context, StringRef Name, DIType Ty, StringRef Val, MDNode *File, unsigned LineNo, unsigned ColumnNo) argument 584 createTemplateParameterPack(DIDescriptor Context, StringRef Name, DIType Ty, DIArray Val, MDNode *File, unsigned LineNo, unsigned ColumnNo) argument 738 createArrayType(uint64_t Size, uint64_t AlignInBits, DIType Ty, DIArray Subscripts) argument 760 createVectorType(uint64_t Size, uint64_t AlignInBits, DIType Ty, DIArray Subscripts) argument 783 createArtificialType(DIType Ty) argument 808 createObjectPointerType(DIType Ty) argument 899 createGlobalVariable(StringRef Name, StringRef LinkageName, DIFile F, unsigned LineNumber, DIType Ty, bool isLocalToUnit, Value *Val) argument 924 createGlobalVariable(StringRef Name, DIFile F, unsigned LineNumber, DIType Ty, bool isLocalToUnit, Value *Val) argument 933 createStaticVariable(DIDescriptor Context, StringRef Name, StringRef LinkageName, DIFile F, unsigned LineNumber, DIType Ty, bool isLocalToUnit, Value *Val, MDNode *Decl) argument 957 createLocalVariable(unsigned Tag, DIDescriptor Scope, StringRef Name, DIFile File, unsigned LineNo, DIType Ty, bool AlwaysPreserve, unsigned Flags, unsigned ArgNo) argument 994 createComplexVariable(unsigned Tag, DIDescriptor Scope, StringRef Name, DIFile F, unsigned LineNo, DIType Ty, ArrayRef<Value *> Addr, unsigned ArgNo) argument 1015 createFunction(DIDescriptor Context, StringRef Name, StringRef LinkageName, DIFile File, unsigned LineNo, DICompositeType Ty, bool isLocalToUnit, bool isDefinition, unsigned ScopeLine, unsigned Flags, bool isOptimized, Function *Fn, MDNode *TParams, MDNode *Decl) argument 1062 createMethod(DIDescriptor Context, StringRef Name, StringRef LinkageName, DIFile F, unsigned LineNo, DICompositeType Ty, bool isLocalToUnit, bool isDefinition, unsigned VK, unsigned VIndex, MDNode *VTableHolder, unsigned Flags, bool isOptimized, Function *Fn, MDNode *TParam) argument [all...] |