Home
last modified time | relevance | path

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

123456

/minix3/external/bsd/llvm/dist/llvm/include/llvm/Linker/
H A DLinker.h20 class StructType; variable
34 KeyTy(const StructType *ST);
38 static StructType *getEmptyKey();
39 static StructType *getTombstoneKey();
41 static unsigned getHashValue(const StructType *ST);
42 static bool isEqual(const KeyTy &LHS, const StructType *RHS);
43 static bool isEqual(const StructType *LHS, const StructType *RHS);
46 typedef DenseSet<StructType *, StructTypeKeyInfo> NonOpaqueStructTypeSet;
47 typedef DenseSet<StructType *> OpaqueStructTypeSet;
56 void addNonOpaque(StructType *Ty);
[all …]
/minix3/external/bsd/llvm/dist/llvm/lib/IR/
H A DType.cpp109 const StructType *STy = dyn_cast<StructType>(this); in isEmptyTy()
169 return cast<StructType>(this)->isSized(Visited); in isSizedDerivedType()
193 return cast<StructType>(this)->getName(); in getStructName()
197 return cast<StructType>(this)->getNumElements(); in getStructNumElements()
201 return cast<StructType>(this)->getElementType(N); in getStructElementType()
402 StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes, in get()
407 StructType *ST; in get()
411 ST = new (Context.pImpl->TypeAllocator) StructType(Context); in get()
422 void StructType::setBody(ArrayRef<Type*> Elements, bool isPacked) { in setBody()
437 void StructType::setName(StringRef Name) { in setName()
[all …]
H A DLLVMContextImpl.h84 KeyTy(const StructType *ST) in KeyTy()
97 static inline StructType* getEmptyKey() { in getEmptyKey()
98 return DenseMapInfo<StructType*>::getEmptyKey(); in getEmptyKey()
100 static inline StructType* getTombstoneKey() { in getTombstoneKey()
101 return DenseMapInfo<StructType*>::getTombstoneKey(); in getTombstoneKey()
108 static unsigned getHashValue(const StructType *ST) { in getHashValue()
111 static bool isEqual(const KeyTy& LHS, const StructType *RHS) { in isEqual()
116 static bool isEqual(const StructType *LHS, const StructType *RHS) { in isEqual()
342 typedef DenseSet<StructType *, AnonStructTypeKeyInfo> StructTypeSet;
344 StringMap<StructType*> NamedStructTypes;
H A DAsmWriter.h53 DenseMap<StructType*, unsigned> NumberedTypes;
63 void printStructBody(StructType *Ty, raw_ostream &OS);
H A DDataLayout.cpp45 StructLayout::StructLayout(StructType *ST, const DataLayout &DL) { in StructLayout()
489 typedef DenseMap<StructType*, StructLayout*> LayoutInfoTy;
502 StructLayout *&operator[](StructType *STy) { in operator []()
521 const StructLayout *DataLayout::getStructLayout(StructType *Ty) const { in getStructLayout()
673 if (cast<StructType>(Ty)->isPacked() && abi_or_pref) in getAlignment()
677 const StructLayout *Layout = getStructLayout(cast<StructType>(Ty)); in getAlignment()
763 if (StructType *STy = dyn_cast<StructType>(*TI)) { in getIndexedOffset()
/minix3/external/bsd/llvm/dist/clang/lib/CodeGen/
H A DCGOpenCLRuntime.cpp44 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()
59 return llvm::PointerType::get(llvm::StructType::create( in convertOpenCLSpecificType()
64 return llvm::PointerType::get(llvm::StructType::create( in convertOpenCLSpecificType()
H A 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()
H A DCodeGenTypes.cpp49 llvm::StructType *Ty, in addRecordTypeName()
100 llvm::DenseMap<const Type*, llvm::StructType *>::const_iterator I = in isRecordLayoutComplete()
409 ResultType = llvm::StructType::get(EltTy, EltTy, nullptr); in ConvertType()
495 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertType()
505 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertType()
527 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertType()
556 T = llvm::StructType::create(getLLVMContext()); in ConvertType()
592 return llvm::StructType::create(getLLVMContext()); in ConvertType()
611 ResultType = llvm::StructType::get(getLLVMContext(), in ConvertType()
633 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { in ConvertRecordDeclType()
[all …]
H A DCodeGenTypes.h30 class StructType; variable
142 llvm::DenseMap<const Type*, llvm::StructType *> RecordDeclTypes;
285 llvm::StructType *Ty);
289 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
295 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
H A DCGObjCGNU.cpp109 llvm::StructType *ObjCSuperTy;
195 llvm::GlobalVariable *MakeGlobal(llvm::StructType *Ty, in MakeGlobal()
699 llvm::StructType *SlotStructTy = llvm::StructType::get(PtrTy, in CGObjCGNUstep()
943 ObjCSuperTy = llvm::StructType::get(IdTy, IdTy, nullptr); in CGObjCGNU()
1163 MakeGlobal(llvm::StructType::get(PtrToInt8Ty, PtrToInt8Ty, in GetEHType()
1199 llvm::StructType::get(PtrToIdTy, PtrToInt8Ty, IntTy, nullptr), in GenerateConstantString()
1280 llvm::StructType::get(IdTy, IdTy, nullptr))); in GenerateMessageSendSuper()
1286 llvm::StructType *ObjCSuperTy = llvm::StructType::get( in GenerateMessageSendSuper()
1473 llvm::StructType *ObjCMethodTy = llvm::StructType::get( in GenerateMethodList()
1503 llvm::StructType *ObjCMethodListTy = llvm::StructType::create(VMContext); in GenerateMethodList()
[all …]
/minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DDerivedTypes.h190 class StructType : public CompositeType {
191 StructType(const StructType &) LLVM_DELETED_FUNCTION;
192 const StructType &operator=(const StructType &) LLVM_DELETED_FUNCTION;
193 StructType(LLVMContext &C) in StructType() function
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,
223 static StructType *create(LLVMContext &Context, ArrayRef<Type*> Elements);
[all …]
H A DTypeFinder.h24 class StructType; variable
37 std::vector<StructType*> StructTypes;
46 typedef std::vector<StructType*>::iterator iterator;
47 typedef std::vector<StructType*>::const_iterator const_iterator;
59 StructType *&operator[](unsigned Idx) { return StructTypes[Idx]; }
H A DGVMaterializer.h28 class StructType; variable
56 virtual std::vector<StructType *> getIdentifiedStructTypes() const = 0;
H A DDataLayout.h39 class StructType; variable
427 const StructLayout *getStructLayout(StructType *Ty) const;
494 StructLayout(StructType *ST, const DataLayout &DL);
513 return getStructLayout(cast<StructType>(Ty))->getSizeInBits(); in getTypeSizeInBits()
/minix3/external/bsd/llvm/dist/llvm/lib/Linker/
H A DLinkModules.cpp51 SmallVector<StructType*, 16> SpeculativeDstOpaqueTypes;
55 SmallVector<StructType*, 16> SrcDefinitionsToResolve;
59 SmallPtrSet<StructType*, 16> DstResolvedOpaqueTypes;
77 Type *get(Type *SrcTy, SmallPtrSet<StructType *, 8> &Visited);
79 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes);
117 for (StructType *Ty : SpeculativeDstOpaqueTypes) in addTypeMapping()
121 if (auto *STy = dyn_cast<StructType>(Ty)) in addTypeMapping()
151 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) { in areTypesIsomorphic()
163 if (cast<StructType>(DstTy)->isOpaque()) { in areTypesIsomorphic()
165 if (!DstResolvedOpaqueTypes.insert(cast<StructType>(DstTy)).second) in areTypesIsomorphic()
[all …]
/minix3/external/bsd/llvm/dist/llvm/unittests/IR/
H A DTypesTest.cpp17 TEST(TypesTest, StructType) { in TEST() argument
21 StructType *Struct = StructType::create(C, "FooBar"); in TEST()
H A 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()
/minix3/external/bsd/llvm/dist/clang/test/Sema/
H A Dinvalid-decl.c28 } StructType; typedef
29 void f(StructType *buf) { in f()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/
H A DTarget.cpp124 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
130 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXLowerStructArgs.cpp64 Type *StructType = PType->getElementType(); in handleParam() local
65 AllocaInst *AllocA = new AllocaInst(StructType, Arg->getName(), FirstInst); in handleParam()
91 CallCVT, PointerType::get(StructType, ADDRESS_SPACE_PARAM), in handleParam()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp31 StructType *EltTy; in appendToGlobalArray()
36 EltTy = cast<StructType>(ATy->getElementType()); in appendToGlobalArray()
46 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), in appendToGlobalArray()
/minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/
H A DShadowStackGC.cpp49 StructType *StackEntryTy;
50 StructType *FrameMapTy;
146 Type *ExnTy = StructType::get(Type::getInt8PtrTy(C), in Next()
231 StructType *STy = StructType::create(EltTys, "gc_map."+utostr(NumMeta)); in GetFrameMap()
266 return StructType::create(EltTys, "gc_stackentry."+F.getName().str()); in GetConcreteStackEntryType()
282 FrameMapTy = StructType::create(EltTys, "gc_map"); in initializeCustomLowering()
291 StackEntryTy = StructType::create(M.getContext(), "gc_stackentry"); in initializeCustomLowering()
H A DAnalysis.cpp45 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeLinearIndex()
46 for (StructType::element_iterator EB = STy->element_begin(), in ComputeLinearIndex()
89 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeValueVTs()
91 for (StructType::element_iterator EB = STy->element_begin(), in ComputeValueVTs()
378 return Idx < cast<StructType>(T)->getNumElements(); in indexReallyValid()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp150 StructType *StructTy = cast<StructType>(type); in isDenselyPacked()
256 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in PromoteArguments()
286 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in PromoteArguments()
626 StructType *STy = cast<StructType>(AgTy); in DoPromotion()
767 StructType *STy = cast<StructType>(AgTy); in DoPromotion()
901 StructType *STy = cast<StructType>(AgTy); in DoPromotion()
/minix3/external/bsd/llvm/dist/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.h235 std::vector<StructType *> getIdentifiedStructTypes() const override;
249 std::vector<StructType *> IdentifiedStructTypes;
250 StructType *createIdentifiedStructType(LLVMContext &Context, StringRef Name);
251 StructType *createIdentifiedStructType(LLVMContext &Context);

123456