Home
last modified time | relevance | path

Searched refs:StructType (Results 1 – 25 of 112) sorted by relevance

12345

/external/llvm/lib/IR/
DType.cpp105 const StructType *STy = dyn_cast<StructType>(this); in isEmptyTy()
171 return cast<StructType>(this)->isSized(); in isSizedDerivedType()
195 return cast<StructType>(this)->getName(); in getStructName()
199 return cast<StructType>(this)->getNumElements(); in getStructNumElements()
203 return cast<StructType>(this)->getElementType(N); in getStructElementType()
405 StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes, in get()
411 StructType *ST; in get()
415 ST = new (Context.pImpl->TypeAllocator) StructType(Context); in get()
426 void StructType::setBody(ArrayRef<Type*> Elements, bool isPacked) { in setBody()
441 void StructType::setName(StringRef Name) { in setName()
[all …]
DLLVMContextImpl.h103 KeyTy(const StructType* ST) : in KeyTy()
117 static inline StructType* getEmptyKey() { in getEmptyKey()
118 return DenseMapInfo<StructType*>::getEmptyKey(); in getEmptyKey()
120 static inline StructType* getTombstoneKey() { in getTombstoneKey()
121 return DenseMapInfo<StructType*>::getTombstoneKey(); in getTombstoneKey()
128 static unsigned getHashValue(const StructType *ST) { in getHashValue()
131 static bool isEqual(const KeyTy& LHS, const StructType *RHS) { in isEqual()
136 static bool isEqual(const StructType *LHS, const StructType *RHS) { in isEqual()
269 typedef ConstantAggrUniqueMap<StructType, ConstantStruct> StructConstantsTy;
308 typedef DenseMap<StructType*, bool, AnonStructTypeKeyInfo> StructTypeMap;
[all …]
DDataLayout.cpp44 StructLayout::StructLayout(StructType *ST, const DataLayout &TD) { in StructLayout()
413 typedef DenseMap<StructType*, StructLayout*> LayoutInfoTy;
427 StructLayout *&operator[](StructType *STy) { in operator []()
447 const StructLayout *DataLayout::getStructLayout(StructType *Ty) const { in getStructLayout()
528 return getStructLayout(cast<StructType>(Ty))->getSizeInBits(); in getTypeSizeInBits()
583 if (cast<StructType>(Ty)->isPacked() && abi_or_pref) in getAlignment()
587 const StructLayout *Layout = getStructLayout(cast<StructType>(Ty)); in getAlignment()
675 if (StructType *STy = dyn_cast<StructType>(*TI)) { in getIndexedOffset()
/external/llvm/include/llvm/IR/
DDerivedTypes.h187 class StructType : public CompositeType {
188 StructType(const StructType &) LLVM_DELETED_FUNCTION;
189 const StructType &operator=(const StructType &) LLVM_DELETED_FUNCTION;
190 StructType(LLVMContext &C) in StructType() function
207 ~StructType() { in ~StructType()
212 static StructType *create(LLVMContext &Context, StringRef Name);
213 static StructType *create(LLVMContext &Context);
215 static StructType *create(ArrayRef<Type*> Elements,
218 static StructType *create(ArrayRef<Type*> Elements);
219 static StructType *create(LLVMContext &Context,
[all …]
DTypeFinder.h24 class StructType; variable
36 std::vector<StructType*> StructTypes;
45 typedef std::vector<StructType*>::iterator iterator;
46 typedef std::vector<StructType*>::const_iterator const_iterator;
58 StructType *&operator[](unsigned Idx) { return StructTypes[Idx]; }
DConstants.h34 class StructType; variable
380 friend struct ConstantArrayCreator<ConstantStruct, StructType>;
383 ConstantStruct(StructType *T, ArrayRef<Constant *> Val);
386 static Constant *get(StructType *T, ArrayRef<Constant*> V);
387 static Constant *get(StructType *T, ...) END_WITH_NULL;
402 static StructType *getTypeForElements(ArrayRef<Constant*> V,
405 static StructType *getTypeForElements(LLVMContext &Ctx,
414 inline StructType *getType() const {
415 return reinterpret_cast<StructType*>(Value::getType());
822 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo);
DDataLayout.h33 class StructType; variable
360 const StructLayout *getStructLayout(StructType *Ty) const;
423 StructLayout(StructType *ST, const DataLayout &TD);
DModule.h30 class StructType; variable
302 typedef DenseMap<StructType*, unsigned, DenseMapInfo<StructType*> >
307 StructType *getTypeByName(StringRef Name) const;
/external/clang/lib/CodeGen/
DCGOpenCLRuntime.cpp41 return llvm::PointerType::get(llvm::StructType::create( in convertOpenCLSpecificType()
44 return llvm::PointerType::get(llvm::StructType::create( in convertOpenCLSpecificType()
47 return llvm::PointerType::get(llvm::StructType::create( in convertOpenCLSpecificType()
50 return llvm::PointerType::get(llvm::StructType::create( in convertOpenCLSpecificType()
53 return llvm::PointerType::get(llvm::StructType::create( in convertOpenCLSpecificType()
56 return llvm::PointerType::get(llvm::StructType::create( in convertOpenCLSpecificType()
61 return llvm::PointerType::get(llvm::StructType::create( in convertOpenCLSpecificType()
DCGRecordLayout.h20 class StructType; variable
118 llvm::StructType *CompleteObjectType;
122 llvm::StructType *BaseSubobjectType;
150 CGRecordLayout(llvm::StructType *CompleteObjectType, in CGRecordLayout()
151 llvm::StructType *BaseSubobjectType, in CGRecordLayout()
161 llvm::StructType *getLLVMType() const { in getLLVMType()
167 llvm::StructType *getBaseSubobjectLLVMType() const { in getBaseSubobjectLLVMType()
DCodeGenTypes.h29 class StructType; variable
85 llvm::DenseMap<const Type*, llvm::StructType *> RecordDeclTypes;
225 llvm::StructType *Ty);
229 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
235 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
DCodeGenTypes.cpp52 llvm::StructType *Ty, in addRecordTypeName()
103 llvm::DenseMap<const Type*, llvm::StructType *>::const_iterator I = in isRecordLayoutComplete()
397 ResultType = llvm::StructType::get(EltTy, EltTy, NULL); in ConvertType()
483 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertType()
493 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertType()
515 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertType()
544 T = llvm::StructType::create(getLLVMContext()); in ConvertType()
597 ResultType = llvm::StructType::get(getLLVMContext(), in ConvertType()
619 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { in ConvertRecordDeclType()
624 llvm::StructType *&Entry = RecordDeclTypes[Key]; in ConvertRecordDeclType()
[all …]
DCGObjCGNU.cpp108 llvm::StructType *ObjCSuperTy;
194 llvm::GlobalVariable *MakeGlobal(llvm::StructType *Ty, in MakeGlobal()
710 llvm::StructType *SlotStructTy = llvm::StructType::get(PtrTy, in CGObjCGNUstep()
940 ObjCSuperTy = llvm::StructType::get(IdTy, IdTy, NULL); in CGObjCGNU()
1161 MakeGlobal(llvm::StructType::get(PtrToInt8Ty, PtrToInt8Ty, in GetEHType()
1197 llvm::StructType::get(PtrToIdTy, PtrToInt8Ty, IntTy, NULL), in GenerateConstantString()
1278 llvm::StructType::get(IdTy, IdTy, NULL))); in GenerateMessageSendSuper()
1284 llvm::StructType *ObjCSuperTy = llvm::StructType::get( in GenerateMessageSendSuper()
1470 llvm::StructType *ObjCMethodTy = llvm::StructType::get( in GenerateMethodList()
1500 llvm::StructType *ObjCMethodListTy = llvm::StructType::create(VMContext); in GenerateMethodList()
[all …]
/external/llvm/unittests/IR/
DTypesTest.cpp17 TEST(TypesTest, StructType) { in TEST() argument
21 StructType *Struct = StructType::create(C, "FooBar"); in TEST()
DTypeBuilderTest.cpp186 static StructType *get(LLVMContext &Context) { in get()
193 static StructType *const result = StructType::get(Context, st); in get()
209 static StructType *get(LLVMContext &Context) { in get()
216 static StructType *const result = StructType::get(Context, st); in get()
233 EXPECT_EQ(PointerType::getUnqual(StructType::get( in TEST()
239 EXPECT_EQ(PointerType::getUnqual(StructType::get( in TEST()
245 EXPECT_EQ(PointerType::getUnqual(StructType::get( in TEST()
/external/llvm/lib/Linker/
DLinkModules.cpp51 SmallVector<StructType*, 16> SrcDefinitionsToResolve;
55 SmallPtrSet<StructType*, 16> DstResolvedOpaqueTypes;
137 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) { in areTypesIsomorphic()
150 if (cast<StructType>(DstTy)->isOpaque()) { in areTypesIsomorphic()
152 if (!DstResolvedOpaqueTypes.insert(cast<StructType>(DstTy))) in areTypesIsomorphic()
174 } else if (StructType *DSTy = dyn_cast<StructType>(DstTy)) { in areTypesIsomorphic()
175 StructType *SSTy = cast<StructType>(SrcTy); in areTypesIsomorphic()
210 StructType *SrcSTy = SrcDefinitionsToResolve.pop_back_val(); in linkDefinedTypeBodies()
211 StructType *DstSTy = cast<StructType>(MappedTypes[SrcSTy]); in linkDefinedTypeBodies()
261 if (!isa<StructType>(Ty) || cast<StructType>(Ty)->isLiteral()) { in getImpl()
[all …]
/external/llvm/lib/Target/
DTarget.cpp104 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
110 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/external/llvm/lib/CodeGen/
DAnalysis.cpp42 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeLinearIndex()
43 for (StructType::element_iterator EB = STy->element_begin(), in ComputeLinearIndex()
79 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeValueVTs()
81 for (StructType::element_iterator EB = STy->element_begin(), in ComputeValueVTs()
328 if (!isa<InsertValueInst>(RetVal) || !isa<StructType>(RetVal->getType())) in isInTailCallPosition()
334 for (unsigned i = 0, e =cast<StructType>(RetVal->getType())->getNumElements(); in isInTailCallPosition()
DShadowStackGC.cpp48 StructType *StackEntryTy;
49 StructType *FrameMapTy;
145 Type *ExnTy = StructType::get(Type::getInt8PtrTy(C), in Next()
230 StructType *STy = StructType::create(EltTys, "gc_map."+utostr(NumMeta)); in GetFrameMap()
265 return StructType::create(EltTys, "gc_stackentry."+F.getName().str()); in GetConcreteStackEntryType()
281 FrameMapTy = StructType::create(EltTys, "gc_map"); in initializeCustomLowering()
290 StackEntryTy = StructType::create(M.getContext(), "gc_stackentry"); in initializeCustomLowering()
/external/clang/test/Sema/
Dinvalid-decl.c28 } StructType; typedef
29 void f(StructType *buf) { in f()
/external/llvm/lib/Transforms/Utils/
DModuleUtils.cpp26 StructType *Ty = StructType::get( in appendToGlobalArray()
/external/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp164 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in PromoteArguments()
194 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in PromoteArguments()
532 StructType *STy = cast<StructType>(AgTy); in DoPromotion()
664 StructType *STy = cast<StructType>(AgTy); in DoPromotion()
795 StructType *STy = cast<StructType>(AgTy); in DoPromotion()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp804 if (StructType *ST = dyn_cast<StructType>(ToType)) { in ConvertScalar_ExtractValue()
933 if (StructType *ST = dyn_cast<StructType>(SV->getType())) { in ConvertScalar_InsertValue()
1456 if (StructType *ST = dyn_cast<StructType>(T)) in ShouldAttemptScalarRepl()
1543 if (StructType *ST = dyn_cast<StructType>(AI->getAllocatedType())) { in DoScalarReplacement()
1765 if (StructType *ST = dyn_cast<StructType>(T)) { in isHomogeneousAggregate()
1843 if (StructType *ST = dyn_cast<StructType>(T)) { in TypeHasComponent()
2021 if (StructType *ST = dyn_cast<StructType>(T)) { in FindElementAndOffset()
2236 if (StructType *ST = dyn_cast<StructType>(OtherTy)) { in RewriteMemIntrinUserOfAlloca()
2358 if (StructType *EltSTy = dyn_cast<StructType>(AllocaEltTy)) { in RewriteStoreUserOfWholeAlloca()
2466 if (StructType *EltSTy = dyn_cast<StructType>(AllocaEltTy)) { in RewriteLoadUserOfWholeAlloca()
[all …]
DSCCP.cpp240 if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) { in AddTrackedFunction()
294 if (StructType *STy = dyn_cast<StructType>(V->getType())) in markAnythingOverdefined()
392 assert(i < cast<StructType>(V->getType())->getNumElements() && in getStructValueState()
724 if (StructType *STy = dyn_cast<StructType>(ResultOp->getType())) in visitReturnInst()
777 StructType *STy = dyn_cast<StructType>(IVI.getType()); in visitInsertValueInst()
1135 if (StructType *STy = dyn_cast<StructType>(AI->getType())) { in visitCallSite()
1147 if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) { in visitCallSite()
1251 if (StructType *STy = dyn_cast<StructType>(I->getType())) { in ResolvedUndefsIn()
/external/llvm/lib/Transforms/Instrumentation/
DBlackList.cpp103 if (StructType *SGType = dyn_cast<StructType>(GType)) { in GetGVTypeString()

12345