Searched refs:Ty (Results 1 - 25 of 340) sorted by relevance

1234567891011>>

/external/clang/test/CodeGenCXX/
H A D2006-09-12-OpaqueStructCrash.cpp7 template <typename Ty>
11 Ty* val;
14 template <typename Ty>
20 template <typename Ty>
24 B<C<Ty> > blocks;
H A D2004-06-08-LateTemplateInstantiation.cpp4 template<typename Ty>
H A Dnoinline-template.cpp8 template <class Ty> struct Vector {
/external/llvm/bindings/ocaml/target/
H A Dtarget_ocaml.c57 CAMLprim value llvm_size_in_bits(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument
58 return caml_copy_int64(LLVMSizeOfTypeInBits(TD, Ty));
62 CAMLprim value llvm_store_size(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument
63 return caml_copy_int64(LLVMStoreSizeOfType(TD, Ty));
67 CAMLprim value llvm_abi_size(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument
68 return caml_copy_int64(LLVMABISizeOfType(TD, Ty));
72 CAMLprim value llvm_abi_align(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument
73 return Val_int(LLVMABIAlignmentOfType(TD, Ty));
77 CAMLprim value llvm_stack_align(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument
78 return Val_int(LLVMCallFrameAlignmentOfType(TD, Ty));
82 llvm_preferred_align(LLVMTargetDataRef TD, LLVMTypeRef Ty) argument
93 llvm_element_at_offset(LLVMTargetDataRef TD, LLVMTypeRef Ty, value Offset) argument
99 llvm_offset_of_element(LLVMTargetDataRef TD, LLVMTypeRef Ty, value Index) argument
[all...]
/external/clang/test/Misc/
H A Dinteger-literal-printing.cpp15 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 Dinline-defensive-checks.cpp40 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/include/llvm/IR/
H A DDataLayout.h129 bool ABIAlign, Type *Ty) const;
136 unsigned getAlignment(Type *Ty, bool abi_or_pref) const;
282 unsigned getPointerTypeSize(Type *Ty) const {
283 return getPointerTypeSizeInBits(Ty) / 8;
306 uint64_t getTypeSizeInBits(Type *Ty) const;
311 uint64_t getTypeStoreSize(Type *Ty) const {
312 return (getTypeSizeInBits(Ty)+7)/8;
318 uint64_t getTypeStoreSizeInBits(Type *Ty) const {
319 return 8*getTypeStoreSize(Ty);
326 uint64_t getTypeAllocSize(Type *Ty) cons
[all...]
/external/llvm/unittests/Analysis/
H A DScalarEvolutionTest.cpp46 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/CodeGen/
H A DAnalysis.h37 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/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp54 GenericValue Src2, Type *Ty) {
55 switch (Ty->getTypeID()) {
59 dbgs() << "Unhandled type for FAdd instruction: " << *Ty << "\n";
65 GenericValue Src2, Type *Ty) {
66 switch (Ty->getTypeID()) {
70 dbgs() << "Unhandled type for FSub instruction: " << *Ty << "\n";
76 GenericValue Src2, Type *Ty) {
77 switch (Ty->getTypeID()) {
81 dbgs() << "Unhandled type for FMul instruction: " << *Ty << "\n";
87 GenericValue Src2, Type *Ty) {
53 executeFAddInst(GenericValue &Dest, GenericValue Src1, GenericValue Src2, Type *Ty) argument
64 executeFSubInst(GenericValue &Dest, GenericValue Src1, GenericValue Src2, Type *Ty) argument
75 executeFMulInst(GenericValue &Dest, GenericValue Src1, GenericValue Src2, Type *Ty) argument
86 executeFDivInst(GenericValue &Dest, GenericValue Src1, GenericValue Src2, Type *Ty) argument
97 executeFRemInst(GenericValue &Dest, GenericValue Src1, GenericValue Src2, Type *Ty) argument
136 executeICMP_EQ(GenericValue Src1, GenericValue Src2, Type *Ty) argument
150 executeICMP_NE(GenericValue Src1, GenericValue Src2, Type *Ty) argument
164 executeICMP_ULT(GenericValue Src1, GenericValue Src2, Type *Ty) argument
1845 Type * Ty = CE->getOperand(0)->getType(); local
[all...]
/external/valgrind/main/memcheck/tests/
H A Dsh-mem.c128 // 'Ty' is the type of the thing we are copying. It can be an integer
130 // will be the same as 'Ty' if 'ITy' is an integer type). 'ITy' is used
133 #define DO(NNN, Ty, ITy, isF4) \
134 fprintf(stderr, "-- NNN: %d %s %s ------------------------\n", NNN, #Ty, #ITy); \
140 size_t nN = n / sizeof(Ty); \
141 Ty* aN = (Ty*)a; \
142 Ty* bN = (Ty*)b; \
143 Ty* aN
[all...]
/external/llvm/lib/Target/
H A DTarget.cpp91 unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument
92 return unwrap(TD)->getTypeSizeInBits(unwrap(Ty));
95 unsigned long long LLVMStoreSizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument
96 return unwrap(TD)->getTypeStoreSize(unwrap(Ty));
99 unsigned long long LLVMABISizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument
100 return unwrap(TD)->getTypeAllocSize(unwrap(Ty));
103 unsigned LLVMABIAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument
104 return unwrap(TD)->getABITypeAlignment(unwrap(Ty));
107 unsigned LLVMCallFrameAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument
108 return unwrap(TD)->getCallFrameTypeAlignment(unwrap(Ty));
111 LLVMPreferredAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) argument
[all...]
/external/clang/lib/CodeGen/
H A DTargetInfo.cpp100 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...]
H A DCGDebugInfo.h108 llvm::DIType CreateType(const BuiltinType *Ty);
109 llvm::DIType CreateType(const ComplexType *Ty);
110 llvm::DIType CreateQualifiedType(QualType Ty, llvm::DIFile F, bool Declaration);
111 llvm::DIType CreateType(const TypedefType *Ty, llvm::DIFile F, bool Declaration);
112 llvm::DIType CreateType(const ObjCObjectPointerType *Ty,
114 llvm::DIType CreateType(const PointerType *Ty, llvm::DIFile F);
115 llvm::DIType CreateType(const BlockPointerType *Ty, llvm::DIFile F);
116 llvm::DIType CreateType(const FunctionType *Ty, llvm::DIFile F);
117 llvm::DIType CreateType(const RecordType *Ty, bool Declaration);
118 llvm::DIType CreateLimitedType(const RecordType *Ty);
[all...]
H A DCGRTTI.cpp34 GetAddrOfTypeName(QualType Ty, llvm::GlobalVariable::LinkageTypes Linkage);
38 llvm::Constant *GetAddrOfExternalRTTIDescriptor(QualType Ty);
41 void BuildVTablePointer(const Type *Ty);
58 void BuildObjCObjectTypeInfo(const ObjCObjectType *Ty);
62 void BuildPointerToMemberTypeInfo(const MemberPointerType *Ty);
108 llvm::Constant *BuildTypeInfo(QualType Ty, bool Force = false);
113 RTTIBuilder::GetAddrOfTypeName(QualType Ty, argument
117 CGM.getCXXABI().getMangleContext().mangleCXXRTTIName(Ty, Out);
135 llvm::Constant *RTTIBuilder::GetAddrOfExternalRTTIDescriptor(QualType Ty) { argument
139 CGM.getCXXABI().getMangleContext().mangleCXXRTTI(Ty, Ou
158 TypeInfoIsInStandardLibrary(const BuiltinType *Ty) argument
238 IsStandardLibraryRTTIDescriptor(QualType Ty) argument
255 ShouldUseExternalRTTIDescriptor(CodeGenModule &CGM, QualType Ty) argument
295 ContainsIncompleteClassType(QualType Ty) argument
320 getTypeInfoLinkage(CodeGenModule &CGM, QualType Ty) argument
390 BuildVTablePointer(const Type *Ty) argument
511 BuildTypeInfo(QualType Ty, bool Force) argument
900 BuildPointerToMemberTypeInfo(const MemberPointerType *Ty) argument
941 GetAddrOfRTTIDescriptor(QualType Ty, bool ForEH) argument
[all...]
H A DCodeGenTBAA.cpp103 const Type *Ty = Context.getCanonicalType(QTy).getTypePtr(); local
105 if (llvm::MDNode *N = MetadataCache[Ty])
109 if (const BuiltinType *BTy = dyn_cast<BuiltinType>(Ty)) {
138 return MetadataCache[Ty] =
146 if (Ty->isPointerType())
147 return MetadataCache[Ty] = createTBAAScalarType("any pointer",
152 if (const EnumType *ETy = dyn_cast<EnumType>(Ty)) {
158 return MetadataCache[Ty] = getChar();
166 return MetadataCache[Ty] = createTBAAScalarType(OutName, getChar());
170 return MetadataCache[Ty]
222 const Type *Ty = Context.getCanonicalType(QTy).getTypePtr(); local
251 const Type *Ty = Context.getCanonicalType(QTy).getTypePtr(); local
[all...]
H A DCodeGenTypes.cpp52 llvm::StructType *Ty,
80 Ty->setName(OS.str());
102 bool CodeGenTypes::isRecordLayoutComplete(const Type *Ty) const {
104 RecordDeclTypes.find(Ty);
195 bool CodeGenTypes::isFuncTypeArgumentConvertible(QualType Ty) { argument
197 const TagType *TT = Ty->getAs<TagType>();
296 const Type *Ty = T.getTypePtr(); local
299 if (const RecordType *RT = dyn_cast<RecordType>(Ty))
303 llvm::DenseMap<const Type *, llvm::Type *>::iterator TCI = TypeCache.find(Ty);
310 switch (Ty
51 addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty, StringRef suffix) argument
638 llvm::StructType *Ty = Entry; local
[all...]
/external/clang/lib/AST/
H A DMangleNumberingContext.cpp36 const Type *Ty = 0; local
37 return ++ManglingNumbers[Ty];
/external/clang/lib/Analysis/
H A DBodyFarm.cpp28 static bool isDispatchBlock(QualType Ty) { argument
30 const BlockPointerType *BPT = Ty->getAs<BlockPointerType>();
51 BinaryOperator *makeAssignment(const Expr *LHS, const Expr *RHS, QualType Ty);
64 UnaryOperator *makeDereference(const Expr *Arg, QualType Ty);
67 Expr *makeIntegralCast(const Expr *Arg, QualType Ty);
73 ImplicitCastExpr *makeLvalueToRvalue(const Expr *Arg, QualType Ty);
87 QualType Ty) {
89 BO_Assign, Ty, VK_RValue,
122 UnaryOperator *ASTMaker::makeDereference(const Expr *Arg, QualType Ty) { argument
123 return new (C) UnaryOperator(const_cast<Expr*>(Arg), UO_Deref, Ty,
86 makeAssignment(const Expr *LHS, const Expr *RHS, QualType Ty) argument
127 makeLvalueToRvalue(const Expr *Arg, QualType Ty) argument
132 makeIntegralCast(const Expr *Arg, QualType Ty) argument
146 QualType Ty = C.getBOOLDecl() ? C.getBOOLType() : C.ObjCBuiltinBoolTy; local
178 QualType Ty = Block->getType(); local
246 QualType Ty = PV->getType(); local
[all...]
/external/valgrind/main/mpi/
H A Dmpiwrap_type_test.c16 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 DDataLayout.cpp52 Type *Ty = ST->getElementType(i); local
53 unsigned TyAlign = ST->isPacked() ? 1 : DL.getABITypeAlignment(Ty);
63 StructSize += DL.getTypeAllocSize(Ty); // Consume space for this data item
357 Type *Ty) const {
393 unsigned Align = getTypeAllocSize(cast<VectorType>(Ty)->getElementType());
394 Align *= cast<VectorType>(Ty)->getNumElements();
445 const StructLayout *DataLayout::getStructLayout(StructType *Ty) const {
450 StructLayout *&SL = (*STM)[Ty];
455 int NumElts = Ty->getNumElements();
463 new (L) StructLayout(Ty, *thi
[all...]
H A DConstants.cpp111 Constant *Constant::getNullValue(Type *Ty) { argument
112 switch (Ty->getTypeID()) {
114 return ConstantInt::get(Ty, 0);
116 return ConstantFP::get(Ty->getContext(),
119 return ConstantFP::get(Ty->getContext(),
122 return ConstantFP::get(Ty->getContext(),
125 return ConstantFP::get(Ty->getContext(),
128 return ConstantFP::get(Ty->getContext(),
131 return ConstantFP::get(Ty->getContext(),
135 return ConstantPointerNull::get(cast<PointerType>(Ty));
146 getIntegerValue(Type *Ty, const APInt &V) argument
163 getAllOnesValue(Type *Ty) argument
433 ConstantInt(IntegerType *Ty, const APInt& V) argument
452 getTrue(Type *Ty) argument
464 getFalse(Type *Ty) argument
492 get(Type *Ty, uint64_t V, bool isSigned) argument
502 get(IntegerType *Ty, uint64_t V, bool isSigned) argument
507 getSigned(IntegerType *Ty, int64_t V) argument
511 getSigned(Type *Ty, int64_t V) argument
515 get(Type *Ty, const APInt& V) argument
527 get(IntegerType* Ty, StringRef Str, uint8_t radix) argument
536 TypeToFloatSemantics(Type *Ty) argument
557 get(Type *Ty, double V) argument
574 get(Type *Ty, StringRef Str) argument
588 getNegativeZero(Type *Ty) argument
596 getZeroValueForNegation(Type *Ty) argument
616 Type *Ty; local
638 getInfinity(Type *Ty, bool Negative) argument
644 ConstantFP(Type *Ty, const APFloat& V) argument
745 get(ArrayType *Ty, ArrayRef<Constant*> V) argument
1158 isValueValidForType(Type *Ty, uint64_t Val) argument
1168 isValueValidForType(Type *Ty, int64_t Val) argument
1179 isValueValidForType(Type *Ty, const APFloat& Val) argument
1230 get(Type *Ty) argument
1313 get(PointerType *Ty) argument
1333 get(Type *Ty) argument
1428 getFoldedCast( Instruction::CastOps opc, Constant *C, Type *Ty) argument
1443 getCast(unsigned oc, Constant *C, Type *Ty) argument
1467 getZExtOrBitCast(Constant *C, Type *Ty) argument
1473 getSExtOrBitCast(Constant *C, Type *Ty) argument
1479 getTruncOrBitCast(Constant *C, Type *Ty) argument
1485 getPointerCast(Constant *S, Type *Ty) argument
1495 getIntegerCast(Constant *C, Type *Ty, bool isSigned) argument
1508 getFPCast(Constant *C, Type *Ty) argument
1520 getTrunc(Constant *C, Type *Ty) argument
1534 getSExt(Constant *C, Type *Ty) argument
1548 getZExt(Constant *C, Type *Ty) argument
1562 getFPTrunc(Constant *C, Type *Ty) argument
1574 getFPExtend(Constant *C, Type *Ty) argument
1586 getUIToFP(Constant *C, Type *Ty) argument
1597 getSIToFP(Constant *C, Type *Ty) argument
1608 getFPToUI(Constant *C, Type *Ty) argument
1619 getFPToSI(Constant *C, Type *Ty) argument
1742 getSizeOf(Type* Ty) argument
1752 getAlignOf(Type* Ty) argument
1771 getOffsetOf(Type* Ty, Constant *FieldNo) argument
2106 getBinOpIdentity(unsigned Opcode, Type *Ty) argument
2129 getBinOpAbsorber(unsigned Opcode, Type *Ty) argument
2187 isElementTypeCompatible(const Type *Ty) argument
2308 Type *Ty = ArrayType::get(Type::getInt8Ty(Context), Elts.size()); local
2313 Type *Ty = ArrayType::get(Type::getInt16Ty(Context), Elts.size()); local
2318 Type *Ty = ArrayType::get(Type::getInt32Ty(Context), Elts.size()); local
2323 Type *Ty = ArrayType::get(Type::getInt64Ty(Context), Elts.size()); local
2328 Type *Ty = ArrayType::get(Type::getFloatTy(Context), Elts.size()); local
2333 Type *Ty = ArrayType::get(Type::getDoubleTy(Context), Elts.size()); local
2361 Type *Ty = VectorType::get(Type::getInt8Ty(Context), Elts.size()); local
2366 Type *Ty = VectorType::get(Type::getInt16Ty(Context), Elts.size()); local
2371 Type *Ty = VectorType::get(Type::getInt32Ty(Context), Elts.size()); local
2376 Type *Ty = VectorType::get(Type::getInt64Ty(Context), Elts.size()); local
2381 Type *Ty = VectorType::get(Type::getFloatTy(Context), Elts.size()); local
2386 Type *Ty = VectorType::get(Type::getDoubleTy(Context), Elts.size()); local
[all...]
/external/llvm/include/llvm/ADT/
H A DSTLExtras.h32 template<class Ty>
33 struct identity : public std::unary_function<Ty, Ty> {
34 Ty &operator()(Ty &self) const {
37 const Ty &operator()(const Ty &self) const {
42 template<class Ty>
43 struct less_ptr : public std::binary_function<Ty, Ty, boo
[all...]
/external/llvm/include/llvm/Transforms/IPO/
H A DPassManagerBuilder.h120 static void addGlobalExtension(ExtensionPointTy Ty, ExtensionFn Fn);
121 void addExtension(ExtensionPointTy Ty, ExtensionFn Fn);
144 RegisterStandardPasses(PassManagerBuilder::ExtensionPointTy Ty, argument
146 PassManagerBuilder::addGlobalExtension(Ty, Fn);
/external/llvm/lib/CodeGen/
H A DBasicTargetTransformInfo.cpp33 unsigned getScalarizationOverhead(Type *Ty, bool Insert, bool Extract) const;
75 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
78 virtual int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
82 virtual bool isTypeLegal(Type *Ty) const;
95 virtual unsigned getArithmeticInstrCost(unsigned Opcode, Type *Ty,
113 virtual unsigned getAddressComputationCost(Type *Ty, bool IsComplex) const;
139 bool BasicTTI::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, argument
147 return getTLI()->isLegalAddressingMode(AM, Ty);
150 int BasicTTI::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, argument
158 return getTLI()->getScalingFactorCost(AM, Ty);
191 getScalarizationOverhead(Type *Ty, bool Insert, bool Extract) const argument
218 getArithmeticInstrCost(unsigned Opcode, Type *Ty, OperandValueKind, OperandValueKind) const argument
498 getAddressComputationCost(Type *Ty, bool IsComplex) const argument
[all...]

Completed in 526 milliseconds

1234567891011>>