Home
last modified time | relevance | path

Searched refs:Ty (Results 1 – 25 of 567) sorted by relevance

12345678910>>...23

/external/llvm/test/Transforms/DeadArgElim/
Dreturned.ll3 %Ty = type { i32, i32 }
8 define internal %Ty* @test1(%Ty* %this) {
9 ret %Ty* %this
15 define internal %Ty* @test2(%Ty* returned %this) {
16 ret %Ty* %this
20 @dummy = global %Ty* null
23 ; CHECK-LABEL: define internal void @test3(%Ty* %this)
25 define internal %Ty* @test3(%Ty* %this) {
26 store volatile %Ty* %this, %Ty** @dummy
27 ret %Ty* %this
[all …]
/external/llvm/lib/IR/
DConstants.cpp196 Constant *Constant::getNullValue(Type *Ty) { in getNullValue() argument
197 switch (Ty->getTypeID()) { in getNullValue()
199 return ConstantInt::get(Ty, 0); in getNullValue()
201 return ConstantFP::get(Ty->getContext(), in getNullValue()
204 return ConstantFP::get(Ty->getContext(), in getNullValue()
207 return ConstantFP::get(Ty->getContext(), in getNullValue()
210 return ConstantFP::get(Ty->getContext(), in getNullValue()
213 return ConstantFP::get(Ty->getContext(), in getNullValue()
216 return ConstantFP::get(Ty->getContext(), in getNullValue()
220 return ConstantPointerNull::get(cast<PointerType>(Ty)); in getNullValue()
[all …]
DDataLayout.cpp49 Type *Ty = ST->getElementType(i); in StructLayout() local
50 unsigned TyAlign = ST->isPacked() ? 1 : DL.getABITypeAlignment(Ty); in StructLayout()
62 StructSize += DL.getTypeAllocSize(Ty); // Consume space for this data item in StructLayout()
459 Type *Ty) const { in getAlignmentInfo()
493 unsigned Align = getTypeAllocSize(cast<VectorType>(Ty)->getElementType()); in getAlignmentInfo()
494 Align *= cast<VectorType>(Ty)->getNumElements(); in getAlignmentInfo()
510 unsigned Align = getTypeStoreSize(Ty); in getAlignmentInfo()
556 const StructLayout *DataLayout::getStructLayout(StructType *Ty) const { in getStructLayout()
561 StructLayout *&SL = (*STM)[Ty]; in getStructLayout()
566 int NumElts = Ty->getNumElements(); in getStructLayout()
[all …]
DInstructions.cpp1121 AllocaInst::AllocaInst(Type *Ty, const Twine &Name, Instruction *InsertBefore) in AllocaInst() argument
1122 : AllocaInst(Ty, /*ArraySize=*/nullptr, Name, InsertBefore) {} in AllocaInst()
1124 AllocaInst::AllocaInst(Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd) in AllocaInst() argument
1125 : AllocaInst(Ty, /*ArraySize=*/nullptr, Name, InsertAtEnd) {} in AllocaInst()
1127 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize, const Twine &Name, in AllocaInst() argument
1129 : AllocaInst(Ty, ArraySize, /*Align=*/0, Name, InsertBefore) {} in AllocaInst()
1131 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize, const Twine &Name, in AllocaInst() argument
1133 : AllocaInst(Ty, ArraySize, /*Align=*/0, Name, InsertAtEnd) {} in AllocaInst()
1135 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize, unsigned Align, in AllocaInst() argument
1137 : UnaryInstruction(PointerType::getUnqual(Ty), Alloca, in AllocaInst()
[all …]
DDIBuilder.cpp266 DIDerivedType *DIBuilder::createTypedef(DIType *Ty, StringRef Name, in createTypedef() argument
272 DITypeRef::get(Ty), 0, 0, 0, 0); in createTypedef()
275 DIDerivedType *DIBuilder::createFriend(DIType *Ty, DIType *FriendTy) { in createFriend() argument
276 assert(Ty && "Invalid type!"); in createFriend()
279 DITypeRef::get(Ty), DITypeRef::get(FriendTy), 0, 0, in createFriend()
283 DIDerivedType *DIBuilder::createInheritance(DIType *Ty, DIType *BaseTy, in createInheritance() argument
286 assert(Ty && "Unable to create inheritance"); in createInheritance()
288 0, DITypeRef::get(Ty), DITypeRef::get(BaseTy), 0, 0, in createInheritance()
297 unsigned Flags, DIType *Ty) { in createMemberType() argument
300 DIScopeRef::get(getNonCompileUnitScope(Scope)), DITypeRef::get(Ty), in createMemberType()
[all …]
/external/llvm/unittests/Analysis/
DScalarEvolutionTest.cpp57 Type *Ty = Type::getInt1Ty(Context); in TEST_F() local
58 Constant *Init = Constant::getNullValue(Ty); in TEST_F()
59 Value *V0 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V0"); in TEST_F()
60 Value *V1 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V1"); in TEST_F()
61 Value *V2 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V2"); in TEST_F()
100 Type *Ty = Type::getInt32Ty(Context); in TEST_F() local
102 Types.append(10, Ty); in TEST_F()
168 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[1], B[1])); in TEST_F()
170 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[2], B[1])); in TEST_F()
171 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[1], B[2])); in TEST_F()
[all …]
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp56 GenericValue Src2, Type *Ty) { in executeFAddInst() argument
57 switch (Ty->getTypeID()) { in executeFAddInst()
61 dbgs() << "Unhandled type for FAdd instruction: " << *Ty << "\n"; in executeFAddInst()
67 GenericValue Src2, Type *Ty) { in executeFSubInst() argument
68 switch (Ty->getTypeID()) { in executeFSubInst()
72 dbgs() << "Unhandled type for FSub instruction: " << *Ty << "\n"; in executeFSubInst()
78 GenericValue Src2, Type *Ty) { in executeFMulInst() argument
79 switch (Ty->getTypeID()) { in executeFMulInst()
83 dbgs() << "Unhandled type for FMul instruction: " << *Ty << "\n"; in executeFMulInst()
89 GenericValue Src2, Type *Ty) { in executeFDivInst() argument
[all …]
/external/clang/lib/CodeGen/
DTargetInfo.cpp47 static ABIArgInfo coerceToIntArray(QualType Ty, in coerceToIntArray() argument
51 const uint64_t Size = Context.getTypeSize(Ty); in coerceToIntArray()
52 const uint64_t Alignment = Context.getTypeAlign(Ty); in coerceToIntArray()
77 ABIInfo::getNaturalAlignIndirect(QualType Ty, bool ByRef, bool Realign, in getNaturalAlignIndirect() argument
79 return ABIArgInfo::getIndirect(getContext().getTypeAlignInChars(Ty), in getNaturalAlignIndirect()
84 ABIInfo::getNaturalAlignIndirectInReg(QualType Ty, bool Realign) const { in getNaturalAlignIndirectInReg() argument
85 return ABIArgInfo::getIndirectInReg(getContext().getTypeAlignInChars(Ty), in getNaturalAlignIndirectInReg()
90 QualType Ty) const { in EmitMSVAArg()
114 static QualType useFirstFieldIfTransparentUnion(QualType Ty) { in useFirstFieldIfTransparentUnion() argument
115 if (const RecordType *UT = Ty->getAsUnionType()) { in useFirstFieldIfTransparentUnion()
[all …]
DCodeGenTypes.cpp48 llvm::StructType *Ty, in addRecordTypeName() argument
76 Ty->setName(OS.str()); in addRecordTypeName()
98 bool CodeGenTypes::isRecordLayoutComplete(const Type *Ty) const { in isRecordLayoutComplete()
100 RecordDeclTypes.find(Ty); in isRecordLayoutComplete()
191 bool CodeGenTypes::isFuncParamTypeConvertible(QualType Ty) { in isFuncParamTypeConvertible() argument
194 if (const auto *MPT = Ty->getAs<MemberPointerType>()) in isFuncParamTypeConvertible()
198 const TagType *TT = Ty->getAs<TagType>(); in isFuncParamTypeConvertible()
300 const Type *Ty = QFT.getTypePtr(); in ConvertFunctionType() local
326 if (!RecordsBeingLaidOut.insert(Ty).second) { in ConvertFunctionType()
356 RecordsBeingLaidOut.erase(Ty); in ConvertFunctionType()
[all …]
DCodeGenTBAA.cpp98 const Type *Ty = Context.getCanonicalType(QTy).getTypePtr(); in getTBAAInfo() local
100 if (llvm::MDNode *N = MetadataCache[Ty]) in getTBAAInfo()
104 if (const BuiltinType *BTy = dyn_cast<BuiltinType>(Ty)) { in getTBAAInfo()
133 return MetadataCache[Ty] = in getTBAAInfo()
141 if (Ty->isPointerType()) in getTBAAInfo()
142 return MetadataCache[Ty] = createTBAAScalarType("any pointer", in getTBAAInfo()
147 if (const EnumType *ETy = dyn_cast<EnumType>(Ty)) { in getTBAAInfo()
153 return MetadataCache[Ty] = getChar(); in getTBAAInfo()
158 return MetadataCache[Ty] = createTBAAScalarType(OutName, getChar()); in getTBAAInfo()
162 return MetadataCache[Ty] = getChar(); in getTBAAInfo()
[all …]
DCGDebugInfo.h143 llvm::DIType *CreateType(const BuiltinType *Ty);
144 llvm::DIType *CreateType(const ComplexType *Ty);
145 llvm::DIType *CreateQualifiedType(QualType Ty, llvm::DIFile *Fg);
146 llvm::DIType *CreateType(const TypedefType *Ty, llvm::DIFile *Fg);
147 llvm::DIType *CreateType(const TemplateSpecializationType *Ty,
149 llvm::DIType *CreateType(const ObjCObjectPointerType *Ty, llvm::DIFile *F);
150 llvm::DIType *CreateType(const PointerType *Ty, llvm::DIFile *F);
151 llvm::DIType *CreateType(const BlockPointerType *Ty, llvm::DIFile *F);
152 llvm::DIType *CreateType(const FunctionType *Ty, llvm::DIFile *F);
155 llvm::DIType *CreateTypeDefinition(const RecordType *Ty);
[all …]
DCGDebugInfo.cpp576 llvm::DIType *CGDebugInfo::CreateType(const ComplexType *Ty) { in CreateType() argument
579 if (Ty->isComplexIntegerType()) in CreateType()
582 uint64_t Size = CGM.getContext().getTypeSize(Ty); in CreateType()
583 uint64_t Align = CGM.getContext().getTypeAlign(Ty); in CreateType()
587 llvm::DIType *CGDebugInfo::CreateQualifiedType(QualType Ty, in CreateQualifiedType() argument
590 const Type *T = Qc.strip(Ty); in CreateQualifiedType()
621 llvm::DIType *CGDebugInfo::CreateType(const ObjCObjectPointerType *Ty, in CreateType() argument
627 if (Ty->isObjCQualifiedIdType()) in CreateType()
630 return CreatePointerLikeType(llvm::dwarf::DW_TAG_pointer_type, Ty, in CreateType()
631 Ty->getPointeeType(), Unit); in CreateType()
[all …]
/external/llvm/include/llvm/IR/
DDataLayout.h153 bool ABIAlign, Type *Ty) const;
158 unsigned getAlignment(Type *Ty, bool abi_or_pref) const;
340 unsigned getPointerTypeSize(Type *Ty) const { in getPointerTypeSize() argument
341 return getPointerTypeSizeInBits(Ty) / 8; in getPointerTypeSize()
365 uint64_t getTypeSizeInBits(Type *Ty) const;
371 uint64_t getTypeStoreSize(Type *Ty) const { in getTypeStoreSize() argument
372 return (getTypeSizeInBits(Ty) + 7) / 8; in getTypeStoreSize()
379 uint64_t getTypeStoreSizeInBits(Type *Ty) const { in getTypeStoreSizeInBits() argument
380 return 8 * getTypeStoreSize(Ty); in getTypeStoreSizeInBits()
388 uint64_t getTypeAllocSize(Type *Ty) const { in getTypeAllocSize() argument
[all …]
DConstants.h51 ConstantInt(IntegerType *Ty, const APInt& V);
66 static Constant *getTrue(Type *Ty);
67 static Constant *getFalse(Type *Ty);
71 static Constant *get(Type *Ty, uint64_t V, bool isSigned = false);
79 static ConstantInt *get(IntegerType *Ty, uint64_t V,
87 static ConstantInt *getSigned(IntegerType *Ty, int64_t V);
88 static Constant *getSigned(Type *Ty, int64_t V);
96 static ConstantInt *get(IntegerType *Ty, StringRef Str,
101 static Constant *get(Type* Ty, const APInt& V);
153 static bool isValueValidForType(Type *Ty, uint64_t V);
[all …]
DDIBuilder.h171 DIDerivedType *createTypedef(DIType *Ty, StringRef Name, DIFile *File,
175 DIDerivedType *createFriend(DIType *Ty, DIType *FriendTy);
184 DIDerivedType *createInheritance(DIType *Ty, DIType *BaseTy,
201 DIType *Ty);
214 DIType *Ty, unsigned Flags,
231 DIType *Ty, MDNode *PropertyNode);
246 unsigned PropertyAttributes, DIType *Ty);
314 createTemplateTypeParameter(DIScope *Scope, StringRef Name, DIType *Ty);
324 DIType *Ty,
334 DIType *Ty,
[all …]
/external/clang/test/Misc/
Dinteger-literal-printing.cpp15 template <> struct Type3Helper<boolTy::b> { typedef boolTy Ty; }; typedef
16 template <boolTy T, typename Type3Helper<T>::Ty U> struct Type3 {};
24 template <> struct Type4Helper<charTy::c> { typedef charTy Ty; }; typedef
25 template <charTy T, typename Type4Helper<T>::Ty U> struct Type4 {};
32 template <> struct Type5Helper<scharTy::c> { typedef scharTy Ty; }; typedef
33 template <scharTy T, typename Type5Helper<T>::Ty U> struct Type5 {};
40 template <> struct Type6Helper<ucharTy::c> { typedef ucharTy Ty; }; typedef
41 template <ucharTy T, typename Type6Helper<T>::Ty U> struct Type6 {};
48 template <> struct Type7Helper<wcharTy::c> { typedef wcharTy Ty; }; typedef
49 template <wcharTy T, typename Type7Helper<T>::Ty U> struct Type7 {};
[all …]
/external/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h47 unsigned getScalarizationOverhead(Type *Ty, bool Insert, bool Extract) { in getScalarizationOverhead() argument
48 assert(Ty->isVectorTy() && "Can only scalarize vectors"); in getScalarizationOverhead()
51 for (int i = 0, e = Ty->getVectorNumElements(); i < e; ++i) { in getScalarizationOverhead()
54 ->getVectorInstrCost(Instruction::InsertElement, Ty, i); in getScalarizationOverhead()
57 ->getVectorInstrCost(Instruction::ExtractElement, Ty, i); in getScalarizationOverhead()
64 unsigned getAltShuffleOverhead(Type *Ty) { in getAltShuffleOverhead() argument
65 assert(Ty->isVectorTy() && "Can only shuffle vectors"); in getAltShuffleOverhead()
74 for (int i = 0, e = Ty->getVectorNumElements(); i < e; ++i) { in getAltShuffleOverhead()
76 ->getVectorInstrCost(Instruction::InsertElement, Ty, i); in getAltShuffleOverhead()
78 ->getVectorInstrCost(Instruction::ExtractElement, Ty, i); in getAltShuffleOverhead()
[all …]
/external/llvm/lib/Target/Mips/
DMipsISelLowering.h296 SDValue getGlobalReg(SelectionDAG &DAG, EVT Ty) const;
303 SDValue getAddrLocal(NodeTy *N, SDLoc DL, EVT Ty, SelectionDAG &DAG, in getAddrLocal() argument
306 SDValue GOT = DAG.getNode(MipsISD::Wrapper, DL, Ty, getGlobalReg(DAG, Ty), in getAddrLocal()
307 getTargetNode(N, Ty, DAG, GOTFlag)); in getAddrLocal()
309 DAG.getLoad(Ty, DL, DAG.getEntryNode(), GOT, in getAddrLocal()
313 SDValue Lo = DAG.getNode(MipsISD::Lo, DL, Ty, in getAddrLocal()
314 getTargetNode(N, Ty, DAG, LoFlag)); in getAddrLocal()
315 return DAG.getNode(ISD::ADD, DL, Ty, Load, Lo); in getAddrLocal()
323 SDValue getAddrGlobal(NodeTy *N, SDLoc DL, EVT Ty, SelectionDAG &DAG, in getAddrGlobal() argument
326 SDValue Tgt = DAG.getNode(MipsISD::Wrapper, DL, Ty, getGlobalReg(DAG, Ty), in getAddrGlobal()
[all …]
/external/llvm/include/llvm/Analysis/
DTargetTransformInfo.h136 int getOperationCost(unsigned Opcode, Type *Ty, Type *OpTy = nullptr) const;
311 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
333 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset,
347 bool isTypeLegal(Type *Ty) const;
369 bool haveFastSqrt(Type *Ty) const;
373 int getFPOpCost(Type *Ty) const;
377 int getIntImmCost(const APInt &Imm, Type *Ty) const;
383 Type *Ty) const;
385 Type *Ty) const;
426 unsigned Opcode, Type *Ty, OperandValueKind Opd1Info = OK_AnyValue,
[all …]
/external/valgrind/mpi/
Dmpiwrap_type_test.c16 typedef MPI_Datatype Ty; typedef
24 static Ty tycon_Contiguous ( int count, Ty t ) in tycon_Contiguous()
26 Ty t2; in tycon_Contiguous()
32 static Ty tycon_Struct2 ( int d1, int copies1, Ty t1, in tycon_Struct2()
33 int d2, int copies2, Ty t2 ) in tycon_Struct2()
37 Ty tys[2]; in tycon_Struct2()
38 Ty tres; in tycon_Struct2()
51 static Ty tycon_Vector ( int count, int blocklen, int stride, Ty t ) in tycon_Vector()
53 Ty tres; in tycon_Vector()
60 static Ty tycon_HVector ( int count, int blocklen, MPI_Aint stride, Ty t ) in tycon_HVector()
[all …]
/external/llvm/lib/Analysis/
DConstantFolding.cpp562 Type *Ty = cast<PointerType>(CE->getType())->getElementType(); in ConstantFoldLoadFromConstPtr() local
563 unsigned NumBits = Ty->getPrimitiveSizeInBits(); in ConstantFoldLoadFromConstPtr()
567 (isa<IntegerType>(Ty) || Ty->isFloatingPointTy())) { in ConstantFoldLoadFromConstPtr()
586 if (Ty->isFloatingPointTy()) in ConstantFoldLoadFromConstPtr()
587 Res = ConstantExpr::getBitCast(Res, Ty); in ConstantFoldLoadFromConstPtr()
811 Type *Ty = Ptr->getType(); in SymbolicallyEvaluateGEP() local
812 assert(Ty->isPointerTy() && "Forming regular GEP of non-pointer type"); in SymbolicallyEvaluateGEP()
816 if (SequentialType *ATy = dyn_cast<SequentialType>(Ty)) { in SymbolicallyEvaluateGEP()
841 Ty = ATy->getElementType(); in SymbolicallyEvaluateGEP()
842 } else if (StructType *STy = dyn_cast<StructType>(Ty)) { in SymbolicallyEvaluateGEP()
[all …]
DTargetTransformInfo.cpp49 int TargetTransformInfo::getOperationCost(unsigned Opcode, Type *Ty, in getOperationCost() argument
51 int Cost = TTIImpl->getOperationCost(Opcode, Ty, OpTy); in getOperationCost()
107 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, in isLegalAddressingMode() argument
112 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode()
132 int TargetTransformInfo::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument
137 int Cost = TTIImpl->getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost()
151 bool TargetTransformInfo::isTypeLegal(Type *Ty) const { in isTypeLegal()
152 return TTIImpl->isTypeLegal(Ty); in isTypeLegal()
180 bool TargetTransformInfo::haveFastSqrt(Type *Ty) const { in haveFastSqrt()
181 return TTIImpl->haveFastSqrt(Ty); in haveFastSqrt()
[all …]
/external/llvm/lib/Target/
DTarget.cpp90 unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMSizeOfTypeInBits() argument
91 return unwrap(TD)->getTypeSizeInBits(unwrap(Ty)); in LLVMSizeOfTypeInBits()
94 unsigned long long LLVMStoreSizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMStoreSizeOfType() argument
95 return unwrap(TD)->getTypeStoreSize(unwrap(Ty)); in LLVMStoreSizeOfType()
98 unsigned long long LLVMABISizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMABISizeOfType() argument
99 return unwrap(TD)->getTypeAllocSize(unwrap(Ty)); in LLVMABISizeOfType()
102 unsigned LLVMABIAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMABIAlignmentOfType() argument
103 return unwrap(TD)->getABITypeAlignment(unwrap(Ty)); in LLVMABIAlignmentOfType()
106 unsigned LLVMCallFrameAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMCallFrameAlignmentOfType() argument
107 return unwrap(TD)->getABITypeAlignment(unwrap(Ty)); in LLVMCallFrameAlignmentOfType()
[all …]
/external/valgrind/memcheck/tests/
Dsh-mem.c134 #define DO(NNN, Ty, ITy, isF4) \ in main() argument
136 NNN, #Ty, #ITy); \ in main()
142 size_t nN = n / sizeof(Ty); \ in main()
143 Ty* aN = (Ty*)a; \ in main()
144 Ty* bN = (Ty*)b; \ in main()
145 Ty* aNb = (Ty*)(((U1*)aN) + h); /* set offset from a[] */ \ in main()
146 Ty* bNb = (Ty*)(((U1*)bN) + h); /* set offset from b[] */ \ in main()
155 Ty* undefN_Ty; \ in main()
171 undefN_Ty = (Ty*)&undefN_ITy; \ in main()
/external/llvm/lib/CodeGen/AsmPrinter/
DDwarfUnit.cpp354 void DwarfUnit::addSourceLine(DIE &Die, const DIType *Ty) { in addSourceLine() argument
355 assert(Ty); in addSourceLine()
357 addSourceLine(Die, Ty->getLine(), Ty->getFilename(), Ty->getDirectory()); in addSourceLine()
360 void DwarfUnit::addSourceLine(DIE &Die, const DIObjCProperty *Ty) { in addSourceLine() argument
361 assert(Ty); in addSourceLine()
363 addSourceLine(Die, Ty->getLine(), Ty->getFilename(), Ty->getDirectory()); in addSourceLine()
440 const DIType *Ty = DV.getType(); in addBlockByrefAddress() local
441 const DIType *TmpTy = Ty; in addBlockByrefAddress()
442 uint16_t Tag = Ty->getTag(); in addBlockByrefAddress()
448 auto *DTy = cast<DIDerivedType>(Ty); in addBlockByrefAddress()
[all …]

12345678910>>...23