/external/clang/test/CodeGenCXX/ |
H A D | 2006-09-12-OpaqueStructCrash.cpp | 8 template <typename Ty> 12 Ty* val; 15 template <typename Ty> 21 template <typename Ty> 25 B<C<Ty> > blocks;
|
H A D | 2004-06-08-LateTemplateInstantiation.cpp | 4 template<typename Ty>
|
H A D | noinline-template.cpp | 8 template <class Ty> struct Vector {
|
/external/clang/lib/AST/ |
H A D | MangleNumberingContext.cpp | 36 const Type *Ty = nullptr; local 37 return ++ManglingNumbers[Ty]; 43 const Type *Ty = nullptr; local 44 return ++ManglingNumbers[Ty];
|
/external/clang/test/SemaCXX/ |
H A D | attr-cleanup-gcc.cpp | 9 template <typename Ty> 10 void c3(Ty *a) {}
|
/external/clang/test/Misc/ |
H A D | integer-literal-printing.cpp | 15 template <> struct Type3Helper<boolTy::b> { typedef boolTy Ty; }; typedef in struct:Type3Helper 16 template <boolTy T, typename Type3Helper<T>::Ty U> struct Type3 {}; 24 template <> struct Type4Helper<charTy::c> { typedef charTy Ty; }; typedef in struct:Type4Helper 25 template <charTy T, typename Type4Helper<T>::Ty U> struct Type4 {}; 32 template <> struct Type5Helper<scharTy::c> { typedef scharTy Ty; }; typedef in struct:Type5Helper 33 template <scharTy T, typename Type5Helper<T>::Ty U> struct Type5 {}; 40 template <> struct Type6Helper<ucharTy::c> { typedef ucharTy Ty; }; typedef in struct:Type6Helper 41 template <ucharTy T, typename Type6Helper<T>::Ty U> struct Type6 {}; 48 template <> struct Type7Helper<wcharTy::c> { typedef wcharTy Ty; }; typedef in struct:Type7Helper 49 template <wcharTy T, typename Type7Helper<T>::Ty 56 template <> struct Type8Helper<char16Ty::c> { typedef char16Ty Ty; }; typedef in struct:Type8Helper 64 template <> struct Type9Helper<char32Ty::c> { typedef char32Ty Ty; }; typedef in struct:Type9Helper [all...] |
/external/clang/test/Analysis/inlining/ |
H A D | inline-defensive-checks.cpp | 40 typedef const int *Ty; typedef 42 Ty notNullArg(Ty cf) __attribute__((nonnull)); 44 extern Ty getTyVal(); 45 inline void radar13224271_callee(Ty def, Ty& result ) { 52 Ty value;
|
/external/llvm/unittests/Analysis/ |
H A D | ScalarEvolutionTest.cpp | 46 Type *Ty = Type::getInt1Ty(Context); local 47 Constant *Init = Constant::getNullValue(Ty); 48 Value *V0 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V0"); 49 Value *V1 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V1"); 50 Value *V2 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V2"); 91 Type *Ty = Type::getInt32Ty(Context); local 93 Types.append(10, Ty); 161 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[1], B[1])); 163 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[2], B[1])); 164 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, [all...] |
/external/llvm/include/llvm/IR/ |
H A D | DataLayout.h | 146 bool ABIAlign, Type *Ty) const; 153 unsigned getAlignment(Type *Ty, bool abi_or_pref) const; 324 unsigned getPointerTypeSize(Type *Ty) const { 325 return getPointerTypeSizeInBits(Ty) / 8; 348 uint64_t getTypeSizeInBits(Type *Ty) const; 353 uint64_t getTypeStoreSize(Type *Ty) const { 354 return (getTypeSizeInBits(Ty)+7)/8; 360 uint64_t getTypeStoreSizeInBits(Type *Ty) const { 361 return 8*getTypeStoreSize(Ty); 368 uint64_t getTypeAllocSize(Type *Ty) cons [all...] |
/external/valgrind/main/memcheck/tests/ |
H A D | sh-mem.c | 129 // 'Ty' is the type of the thing we are copying. It can be an integer 131 // will be the same as 'Ty' if 'ITy' is an integer type). 'ITy' is used 134 #define DO(NNN, Ty, ITy, isF4) \ 136 NNN, #Ty, #ITy); \ 142 size_t nN = n / sizeof(Ty); \ 143 Ty* aN = (Ty*)a; \ 144 Ty* bN = (Ty*)b; \ 145 Ty* aN [all...] |
/external/llvm/lib/Target/ |
H A D | Target.cpp | 93 unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument 94 return unwrap(TD)->getTypeSizeInBits(unwrap(Ty)); 97 unsigned long long LLVMStoreSizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument 98 return unwrap(TD)->getTypeStoreSize(unwrap(Ty)); 101 unsigned long long LLVMABISizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument 102 return unwrap(TD)->getTypeAllocSize(unwrap(Ty)); 105 unsigned LLVMABIAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument 106 return unwrap(TD)->getABITypeAlignment(unwrap(Ty)); 109 unsigned LLVMCallFrameAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument 110 return unwrap(TD)->getABITypeAlignment(unwrap(Ty)); 113 LLVMPreferredAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) argument [all...] |
/external/valgrind/main/mpi/ |
H A D | mpiwrap_type_test.c | 16 typedef MPI_Datatype Ty; typedef 24 static Ty tycon_Contiguous ( int count, Ty t ) 26 Ty t2; 32 static Ty tycon_Struct2 ( int d1, int copies1, Ty t1, 33 int d2, int copies2, Ty t2 ) 37 Ty tys[2]; 38 Ty tres; 51 static Ty tycon_Vecto [all...] |
/external/llvm/lib/IR/ |
H A D | Constants.cpp | 133 Constant *Constant::getNullValue(Type *Ty) { argument 134 switch (Ty->getTypeID()) { 136 return ConstantInt::get(Ty, 0); 138 return ConstantFP::get(Ty->getContext(), 141 return ConstantFP::get(Ty->getContext(), 144 return ConstantFP::get(Ty->getContext(), 147 return ConstantFP::get(Ty->getContext(), 150 return ConstantFP::get(Ty->getContext(), 153 return ConstantFP::get(Ty->getContext(), 157 return ConstantPointerNull::get(cast<PointerType>(Ty)); 168 getIntegerValue(Type *Ty, const APInt &V) argument 185 getAllOnesValue(Type *Ty) argument 469 ConstantInt(IntegerType *Ty, const APInt& V) argument 488 getTrue(Type *Ty) argument 500 getFalse(Type *Ty) argument 528 get(Type *Ty, uint64_t V, bool isSigned) argument 538 get(IntegerType *Ty, uint64_t V, bool isSigned) argument 543 getSigned(IntegerType *Ty, int64_t V) argument 547 getSigned(Type *Ty, int64_t V) argument 551 get(Type *Ty, const APInt& V) argument 563 get(IntegerType* Ty, StringRef Str, uint8_t radix) argument 572 TypeToFloatSemantics(Type *Ty) argument 593 get(Type *Ty, double V) argument 610 get(Type *Ty, StringRef Str) argument 623 getNegativeZero(Type *Ty) argument 635 getZeroValueForNegation(Type *Ty) argument 650 Type *Ty; local 672 getInfinity(Type *Ty, bool Negative) argument 682 ConstantFP(Type *Ty, const APFloat& V) argument 783 get(ArrayType *Ty, ArrayRef<Constant*> V) argument 1197 isValueValidForType(Type *Ty, uint64_t Val) argument 1207 isValueValidForType(Type *Ty, int64_t Val) argument 1218 isValueValidForType(Type *Ty, const APFloat& Val) argument 1269 get(Type *Ty) argument 1352 get(PointerType *Ty) argument 1372 get(Type *Ty) argument 1478 getFoldedCast( Instruction::CastOps opc, Constant *C, Type *Ty) argument 1493 getCast(unsigned oc, Constant *C, Type *Ty) argument 1518 getZExtOrBitCast(Constant *C, Type *Ty) argument 1524 getSExtOrBitCast(Constant *C, Type *Ty) argument 1530 getTruncOrBitCast(Constant *C, Type *Ty) argument 1536 getPointerCast(Constant *S, Type *Ty) argument 1551 getPointerBitCastOrAddrSpaceCast(Constant *S, Type *Ty) argument 1562 getIntegerCast(Constant *C, Type *Ty, bool isSigned) argument 1575 getFPCast(Constant *C, Type *Ty) argument 1587 getTrunc(Constant *C, Type *Ty) argument 1601 getSExt(Constant *C, Type *Ty) argument 1615 getZExt(Constant *C, Type *Ty) argument 1629 getFPTrunc(Constant *C, Type *Ty) argument 1641 getFPExtend(Constant *C, Type *Ty) argument 1653 getUIToFP(Constant *C, Type *Ty) argument 1664 getSIToFP(Constant *C, Type *Ty) argument 1675 getFPToUI(Constant *C, Type *Ty) argument 1686 getFPToSI(Constant *C, Type *Ty) argument 1829 getSizeOf(Type* Ty) argument 1839 getAlignOf(Type* Ty) argument 1858 getOffsetOf(Type* Ty, Constant *FieldNo) argument 2193 getBinOpIdentity(unsigned Opcode, Type *Ty) argument 2216 getBinOpAbsorber(unsigned Opcode, Type *Ty) argument 2274 isElementTypeCompatible(const Type *Ty) argument 2395 Type *Ty = ArrayType::get(Type::getInt8Ty(Context), Elts.size()); local 2400 Type *Ty = ArrayType::get(Type::getInt16Ty(Context), Elts.size()); local 2405 Type *Ty = ArrayType::get(Type::getInt32Ty(Context), Elts.size()); local 2410 Type *Ty = ArrayType::get(Type::getInt64Ty(Context), Elts.size()); local 2415 Type *Ty = ArrayType::get(Type::getFloatTy(Context), Elts.size()); local 2420 Type *Ty = ArrayType::get(Type::getDoubleTy(Context), Elts.size()); local 2448 Type *Ty = VectorType::get(Type::getInt8Ty(Context), Elts.size()); local 2453 Type *Ty = VectorType::get(Type::getInt16Ty(Context), Elts.size()); local 2458 Type *Ty = VectorType::get(Type::getInt32Ty(Context), Elts.size()); local 2463 Type *Ty = VectorType::get(Type::getInt64Ty(Context), Elts.size()); local 2468 Type *Ty = VectorType::get(Type::getFloatTy(Context), Elts.size()); local 2473 Type *Ty = VectorType::get(Type::getDoubleTy(Context), Elts.size()); local [all...] |
H A D | DataLayout.cpp | 53 Type *Ty = ST->getElementType(i); local 54 unsigned TyAlign = ST->isPacked() ? 1 : DL.getABITypeAlignment(Ty); 64 StructSize += DL.getTypeAllocSize(Ty); // Consume space for this data item 412 Type *Ty) const { 448 unsigned Align = getTypeAllocSize(cast<VectorType>(Ty)->getElementType()); 449 Align *= cast<VectorType>(Ty)->getNumElements(); 498 const StructLayout *DataLayout::getStructLayout(StructType *Ty) const { 503 StructLayout *&SL = (*STM)[Ty]; 508 int NumElts = Ty->getNumElements(); 516 new (L) StructLayout(Ty, *thi [all...] |
/external/llvm/include/llvm/Analysis/ |
H A D | TargetTransformInfo.h | 107 virtual unsigned getOperationCost(unsigned Opcode, Type *Ty, 267 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, 277 virtual int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, 287 virtual bool isTypeLegal(Type *Ty) const; 303 virtual bool haveFastSqrt(Type *Ty) const; 307 virtual unsigned getIntImmCost(const APInt &Imm, Type *Ty) const; 313 Type *Ty) const; 315 const APInt &Imm, Type *Ty) const; 352 virtual unsigned getArithmeticInstrCost(unsigned Opcode, Type *Ty, 387 /// This is the cost of reducing the vector value of type \p Ty t [all...] |
/external/llvm/lib/CodeGen/ |
H A D | BasicTargetTransformInfo.cpp | 40 unsigned getScalarizationOverhead(Type *Ty, bool Insert, bool Extract) const; 43 unsigned getAltShuffleOverhead(Type *Ty) const; 81 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, 84 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, 88 bool isTypeLegal(Type *Ty) const override; 92 bool haveFastSqrt(Type *Ty) const override; 104 unsigned getArithmeticInstrCost(unsigned Opcode, Type *Ty, OperandValueKind, 120 unsigned getAddressComputationCost( Type *Ty, bool IsComplex) const override; 121 unsigned getReductionCost(unsigned Opcode, Type *Ty, 148 bool BasicTTI::isLegalAddressingMode(Type *Ty, GlobalValu argument 159 getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, int64_t Scale) const argument 262 getScalarizationOverhead(Type *Ty, bool Insert, bool Extract) const argument 289 getArithmeticInstrCost(unsigned Opcode, Type *Ty, OperandValueKind, OperandValueKind) const argument 624 getAddressComputationCost(Type *Ty, bool IsComplex) const argument 628 getReductionCost(unsigned Opcode, Type *Ty, bool IsPairwise) const argument [all...] |
/external/clang/lib/CodeGen/ |
H A D | CodeGenABITypes.cpp | 47 CodeGenABITypes::arrangeFreeFunctionType(CanQual<FunctionProtoType> Ty) { argument 48 return CGM->getTypes().arrangeFreeFunctionType(Ty); 52 CodeGenABITypes::arrangeFreeFunctionType(CanQual<FunctionNoProtoType> Ty) { argument 53 return CGM->getTypes().arrangeFreeFunctionType(Ty);
|
H A D | TargetInfo.cpp | 93 if (llvm::Type *Ty = getCoerceToType()) 94 Ty->print(OS); 284 static bool is32Or64BitBasicType(QualType Ty, ASTContext &Context) { argument 286 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) 287 Ty = CTy->getElementType(); 292 if (!Ty->getAs<BuiltinType>() && !Ty->hasPointerRepresentation() && 293 !Ty->isEnumeralType() && !Ty->isBlockPointerType()) 296 uint64_t Size = Context.getTypeSize(Ty); 309 canExpandIndirectArgument(QualType Ty, ASTContext &Context) argument 373 EmitVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CGF) const argument 438 EmitVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CGF) const argument 485 X86AdjustInlineAsmType(CodeGen::CodeGenFunction &CGF, StringRef Constraint, llvm::Type* Ty) argument 611 shouldReturnTypeInRegister(QualType Ty, ASTContext &Context) const argument 740 isSSEVectorType(ASTContext &Context, QualType Ty) argument 744 isRecordWithSSEVectorType(ASTContext &Context, QualType Ty) argument 769 getTypeStackAlignInBytes(QualType Ty, unsigned Align) const argument 790 getIndirectResult(QualType Ty, bool ByVal, CCState &State) const argument 825 shouldUseInReg(QualType Ty, CCState &State, bool &NeedsPadding) const argument 867 classifyArgumentType(QualType Ty, CCState &State) const argument 999 llvm::Type *Ty = llvm::Type::getInt8Ty(getVMContext()); local 1053 EmitVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CGF) const argument 1539 classify(QualType Ty, uint64_t OffsetBase, Class &Lo, Class &Hi, bool isNamedArg) const argument 3358 classifyArgumentType(QualType Ty, unsigned &AllocatedVFP, bool &IsHA, unsigned &AllocatedGPR, bool &IsSmallAggr, bool IsNamedArg) const argument 3529 EmitAArch64VAArg(llvm::Value *VAListAddr, QualType Ty, int AllocatedGPR, int AllocatedVFP, bool IsIndirect, CodeGenFunction &CGF) argument 3757 EmitAAPCSVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CGF) const argument 3769 EmitDarwinVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CGF) const argument 4064 isHomogeneousAggregate(QualType Ty, const Type *&Base, ASTContext &Context, uint64_t *HAMembers) argument 4199 classifyArgumentType(QualType Ty, bool isVariadic, bool &IsCPRC) const argument 4355 isIntegerLikeType(QualType Ty, ASTContext &Context, llvm::LLVMContext &VMContext) argument 4536 EmitVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CGF) const argument 4641 EmitVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CGF) const argument 4717 EmitVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CFG) const argument 4901 EmitVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CGF) const argument 5182 HandleAggregates(QualType Ty, uint64_t TySize) const argument 5213 const QualType Ty = i->getType(); local 5247 classifyArgumentType(QualType Ty, uint64_t &Offset) const argument 5369 EmitVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CGF) const argument 5602 EmitVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CGF) const argument 5711 addFloat(uint64_t Offset, llvm::Type *Ty, unsigned Bits) argument 5777 classifyType(QualType Ty, unsigned SizeLimit) const argument 5824 EmitVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CGF) const argument 6047 EmitVAArg(llvm::Value *VAListAddr, QualType Ty, CodeGenFunction &CGF) const argument [all...] |
H A D | CodeGenTBAA.cpp | 98 const Type *Ty = Context.getCanonicalType(QTy).getTypePtr(); local 100 if (llvm::MDNode *N = MetadataCache[Ty]) 104 if (const BuiltinType *BTy = dyn_cast<BuiltinType>(Ty)) { 133 return MetadataCache[Ty] = 141 if (Ty->isPointerType()) 142 return MetadataCache[Ty] = createTBAAScalarType("any pointer", 147 if (const EnumType *ETy = dyn_cast<EnumType>(Ty)) { 153 return MetadataCache[Ty] = getChar(); 159 return MetadataCache[Ty] = createTBAAScalarType(OutName, getChar()); 163 return MetadataCache[Ty] 214 const Type *Ty = Context.getCanonicalType(QTy).getTypePtr(); local 243 const Type *Ty = Context.getCanonicalType(QTy).getTypePtr(); local [all...] |
H A D | CodeGenTypes.cpp | 49 llvm::StructType *Ty, 77 Ty->setName(OS.str()); 99 bool CodeGenTypes::isRecordLayoutComplete(const Type *Ty) const { 101 RecordDeclTypes.find(Ty); 189 bool CodeGenTypes::isFuncParamTypeConvertible(QualType Ty) { argument 191 const TagType *TT = Ty->getAs<TagType>(); 294 const Type *Ty = T.getTypePtr(); local 297 if (const RecordType *RT = dyn_cast<RecordType>(Ty)) 301 llvm::DenseMap<const Type *, llvm::Type *>::iterator TCI = TypeCache.find(Ty); 308 switch (Ty 48 addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty, StringRef suffix) argument 636 llvm::StructType *Ty = Entry; local [all...] |
/external/llvm/include/llvm/CodeGen/ |
H A D | Analysis.h | 37 unsigned ComputeLinearIndex(Type *Ty, 42 inline unsigned ComputeLinearIndex(Type *Ty, argument 45 return ComputeLinearIndex(Ty, Indices.begin(), Indices.end(), CurIndex); 55 void ComputeValueVTs(const TargetLowering &TLI, Type *Ty,
|
/external/llvm/include/llvm/Target/ |
H A D | CostTable.h | 31 CompareTy Ty) { 33 if (ISD == Tbl[i].ISD && Ty == Tbl[i].Type) 43 CompareTy Ty) { 44 return CostTableLookup(Tbl, N, ISD, Ty); 30 CostTableLookup(const CostTblEntry<TypeTy> *Tbl, unsigned len, int ISD, CompareTy Ty) argument
|
/external/llvm/include/llvm/Transforms/IPO/ |
H A D | PassManagerBuilder.h | 132 static void addGlobalExtension(ExtensionPointTy Ty, ExtensionFn Fn); 133 void addExtension(ExtensionPointTy Ty, ExtensionFn Fn); 156 RegisterStandardPasses(PassManagerBuilder::ExtensionPointTy Ty, argument 158 PassManagerBuilder::addGlobalExtension(Ty, Fn);
|
/external/llvm/lib/Target/PowerPC/ |
H A D | PPCTargetTransformInfo.cpp | 75 unsigned getIntImmCost(const APInt &Imm, Type *Ty) const override; 78 Type *Ty) const override; 80 Type *Ty) const override; 95 virtual unsigned getArithmeticInstrCost(unsigned Opcode, Type *Ty, 132 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); 138 unsigned PPCTTI::getIntImmCost(const APInt &Imm, Type *Ty) const { 140 return TargetTransformInfo::getIntImmCost(Imm, Ty); 142 assert(Ty->isIntegerTy()); 144 unsigned BitSize = Ty->getPrimitiveSizeInBits(); 168 const APInt &Imm, Type *Ty) cons 321 getArithmeticInstrCost(unsigned Opcode, Type *Ty, OperandValueKind Op1Info, OperandValueKind Op2Info) const argument [all...] |
/external/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 554 Type *Ty = cast<PointerType>(CE->getType())->getElementType(); local 555 unsigned NumBits = Ty->getPrimitiveSizeInBits(); 559 (isa<IntegerType>(Ty) || Ty->isFloatingPointTy())) { 578 if (Ty->isFloatingPointTy()) 579 Res = ConstantExpr::getBitCast(Res, Ty); 810 Type *Ty = Ptr->getType(); local 811 assert(Ty->isPointerTy() && "Forming regular GEP of non-pointer type"); 815 if (SequentialType *ATy = dyn_cast<SequentialType>(Ty)) { 829 // The element size is 0. This may be [0 x Ty]*, s 1307 GetConstantFoldFPValue(double V, Type *Ty) argument 1344 ConstantFoldFP(double (*NativeFP)(double), double V, Type *Ty) argument 1356 ConstantFoldBinaryFP(double (*NativeFP)(double, double), double V, double W, Type *Ty) argument 1376 ConstantFoldConvertToInt(const APFloat &Val, bool roundTowardZero, Type *Ty) argument 1396 Type *Ty = Op->getType(); local 1410 ConstantFoldScalarCall(StringRef Name, unsigned IntrinsicID, Type *Ty, ArrayRef<Constant *> Operands, const TargetLibraryInfo *TLI) argument 1742 Type *Ty = VTy->getElementType(); local 1773 Type *Ty = F->getReturnType(); local [all...] |