Home
last modified time | relevance | path

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

123456

/NextBSD/contrib/llvm/include/llvm/Linker/
HDLinker.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 …]
/NextBSD/contrib/llvm/lib/IR/
HDType.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()
404 StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes, in get()
409 StructType *ST; in get()
413 ST = new (Context.pImpl->TypeAllocator) StructType(Context); in get()
424 void StructType::setBody(ArrayRef<Type*> Elements, bool isPacked) { in setBody()
439 void StructType::setName(StringRef Name) { in setName()
[all …]
HDOperator.cpp30 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in accumulateConstantOffset()
HDDataLayout.cpp40 StructLayout::StructLayout(StructType *ST, const DataLayout &DL) { in StructLayout()
519 typedef DenseMap<StructType*, StructLayout*> LayoutInfoTy;
532 StructLayout *&operator[](StructType *STy) { in operator []()
551 const StructLayout *DataLayout::getStructLayout(StructType *Ty) const { in getStructLayout()
641 if (cast<StructType>(Ty)->isPacked() && abi_or_pref) in getAlignment()
645 const StructLayout *Layout = getStructLayout(cast<StructType>(Ty)); in getAlignment()
731 if (StructType *STy = dyn_cast<StructType>(*TI)) { in getIndexedOffset()
/NextBSD/contrib/llvm/include/llvm/IR/
HDDerivedTypes.h191 class StructType : public CompositeType {
192 StructType(const StructType &) = delete;
193 const StructType &operator=(const StructType &) = delete;
194 StructType(LLVMContext &C) in StructType() function
213 static StructType *create(LLVMContext &Context, StringRef Name);
214 static StructType *create(LLVMContext &Context);
216 static StructType *create(ArrayRef<Type*> Elements,
219 static StructType *create(ArrayRef<Type*> Elements);
220 static StructType *create(LLVMContext &Context,
224 static StructType *create(LLVMContext &Context, ArrayRef<Type*> Elements);
[all …]
HDTypeFinder.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]; }
HDGVMaterializer.h28 class StructType; variable
59 virtual std::vector<StructType *> getIdentifiedStructTypes() const = 0;
HDDataLayout.h39 class StructType; variable
451 const StructLayout *getStructLayout(StructType *Ty) const;
502 StructLayout(StructType *ST, const DataLayout &DL);
521 return getStructLayout(cast<StructType>(Ty))->getSizeInBits(); in getTypeSizeInBits()
/NextBSD/contrib/llvm/lib/Linker/
HDLinkModules.cpp52 SmallVector<StructType*, 16> SpeculativeDstOpaqueTypes;
56 SmallVector<StructType*, 16> SrcDefinitionsToResolve;
60 SmallPtrSet<StructType*, 16> DstResolvedOpaqueTypes;
78 Type *get(Type *SrcTy, SmallPtrSet<StructType *, 8> &Visited);
80 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes);
118 for (StructType *Ty : SpeculativeDstOpaqueTypes) in addTypeMapping()
122 if (auto *STy = dyn_cast<StructType>(Ty)) in addTypeMapping()
152 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) { in areTypesIsomorphic()
164 if (cast<StructType>(DstTy)->isOpaque()) { in areTypesIsomorphic()
166 if (!DstResolvedOpaqueTypes.insert(cast<StructType>(DstTy)).second) in areTypesIsomorphic()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/CodeGen/
HDCGOpenCLRuntime.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()
HDCGRecordLayout.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()
HDCodeGenTypes.cpp49 llvm::StructType *Ty, in addRecordTypeName()
100 llvm::DenseMap<const Type*, llvm::StructType *>::const_iterator I = in isRecordLayoutComplete()
411 ResultType = llvm::StructType::get(EltTy, EltTy, nullptr); in ConvertType()
497 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertType()
507 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertType()
529 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertType()
558 T = llvm::StructType::create(getLLVMContext()); in ConvertType()
594 return llvm::StructType::create(getLLVMContext()); in ConvertType()
613 ResultType = llvm::StructType::get(getLLVMContext(), in ConvertType()
635 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { in ConvertRecordDeclType()
[all …]
HDCodeGenTypes.h30 class StructType; variable
143 llvm::DenseMap<const Type*, llvm::StructType *> RecordDeclTypes;
288 llvm::StructType *Ty);
292 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
298 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
HDCGObjCGNU.cpp104 llvm::StructType *ObjCSuperTy;
192 llvm::GlobalVariable *MakeGlobal(llvm::StructType *Ty, in MakeGlobal()
697 llvm::StructType *SlotStructTy = llvm::StructType::get(PtrTy, in CGObjCGNUstep()
941 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()
1278 llvm::Type *CastTy = llvm::StructType::get(IdTy, IdTy, nullptr); in GenerateMessageSendSuper()
1286 llvm::StructType *ObjCSuperTy = llvm::StructType::get( in GenerateMessageSendSuper()
1475 llvm::StructType *ObjCMethodTy = llvm::StructType::get( in GenerateMethodList()
1505 llvm::StructType *ObjCMethodListTy = llvm::StructType::create(VMContext); in GenerateMethodList()
[all …]
HDCGExprConstant.cpp538 llvm::StructType *STy = in Finalize()
542 if (llvm::StructType *ValSTy = dyn_cast<llvm::StructType>(ValTy)) { in Finalize()
670 llvm::StructType* STy = in VisitCastExpr()
671 llvm::StructType::get(C->getType()->getContext(), Types, false); in VisitCastExpr()
813 llvm::StructType *SType = llvm::StructType::get(AType->getContext(), in EmitArrayInitialization()
894 llvm::StructType *SType = llvm::StructType::get(AType->getContext(), in EmitDesignatedInitUpdater()
1310 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), in EmitConstantValue()
1333 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), in EmitConstantValue()
1415 llvm::StructType *SType = llvm::StructType::get(VMContext, Types, true); in EmitConstantValue()
1471 llvm::StructType *structure = in EmitNullConstant()
HDCGObjCMac.cpp109 llvm::StructType::get(longDoubleType, longDoubleType, nullptr); in getMessageSendFp2retFn()
213 llvm::StructType *SuperTy;
219 llvm::StructType *PropertyTy;
223 llvm::StructType *PropertyListTy;
228 llvm::StructType *MethodTy;
496 llvm::StructType *SymtabTy;
500 llvm::StructType *ModuleTy;
503 llvm::StructType *ProtocolTy;
508 llvm::StructType *ProtocolExtensionTy;
514 llvm::StructType *MethodDescriptionTy;
[all …]
/NextBSD/contrib/llvm/lib/Target/
HDTarget.cpp121 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
127 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/NextBSD/contrib/llvm/lib/CodeGen/
HDShadowStackGCLowering.cpp36 StructType *StackEntryTy;
37 StructType *FrameMapTy;
146 StructType::get(Type::getInt8PtrTy(C), Type::getInt32Ty(C), nullptr); in Next()
222 StructType *STy = StructType::create(EltTys, "gc_map." + utostr(NumMeta)); in GetFrameMap()
256 return StructType::create(EltTys, ("gc_stackentry." + F.getName()).str()); in GetConcreteStackEntryType()
282 FrameMapTy = StructType::create(EltTys, "gc_map"); in doInitialization()
291 StackEntryTy = StructType::create(M.getContext(), "gc_stackentry"); in doInitialization()
HDAnalysis.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()
379 return Idx < cast<StructType>(T)->getNumElements(); in indexReallyValid()
/NextBSD/contrib/llvm/lib/Target/NVPTX/
HDNVPTXLowerKernelArgs.cpp116 Type *StructType = PType->getElementType(); in handleByValParam() local
117 AllocaInst *AllocA = new AllocaInst(StructType, Arg->getName(), FirstInst); in handleByValParam()
125 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam()
/NextBSD/contrib/llvm/lib/Transforms/IPO/
HDArgumentPromotion.cpp148 StructType *StructTy = cast<StructType>(type); in isDenselyPacked()
274 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in PromoteArguments()
304 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in PromoteArguments()
643 StructType *STy = cast<StructType>(AgTy); in DoPromotion()
789 StructType *STy = cast<StructType>(AgTy); in DoPromotion()
922 StructType *STy = cast<StructType>(AgTy); in DoPromotion()
/NextBSD/contrib/llvm/lib/Transforms/Utils/
HDModuleUtils.cpp32 StructType *EltTy; in appendToGlobalArray()
37 EltTy = cast<StructType>(ATy->getElementType()); in appendToGlobalArray()
47 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), in appendToGlobalArray()
/NextBSD/contrib/llvm/lib/Transforms/Scalar/
HDScalarReplAggregates.cpp811 if (StructType *ST = dyn_cast<StructType>(ToType)) { in ConvertScalar_ExtractValue()
941 if (StructType *ST = dyn_cast<StructType>(SV->getType())) { in ConvertScalar_InsertValue()
1464 if (StructType *ST = dyn_cast<StructType>(T)) in ShouldAttemptScalarRepl()
1553 if (StructType *ST = dyn_cast<StructType>(AI->getAllocatedType())) { in DoScalarReplacement()
1768 if (StructType *ST = dyn_cast<StructType>(T)) { in isHomogeneousAggregate()
1848 if (StructType *ST = dyn_cast<StructType>(T)) { in TypeHasComponent()
2028 if (StructType *ST = dyn_cast<StructType>(T)) { in FindElementAndOffset()
2248 if (StructType *ST = dyn_cast<StructType>(OtherTy)) { in RewriteMemIntrinUserOfAlloca()
2372 if (StructType *EltSTy = dyn_cast<StructType>(AllocaEltTy)) { in RewriteStoreUserOfWholeAlloca()
2482 if (StructType *EltSTy = dyn_cast<StructType>(AllocaEltTy)) { in RewriteLoadUserOfWholeAlloca()
[all …]
HDSCCP.cpp242 if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) { in AddTrackedFunction()
296 if (StructType *STy = dyn_cast<StructType>(V->getType())) in markAnythingOverdefined()
394 assert(i < cast<StructType>(V->getType())->getNumElements() && in getStructValueState()
727 if (StructType *STy = dyn_cast<StructType>(ResultOp->getType())) in visitReturnInst()
780 StructType *STy = dyn_cast<StructType>(IVI.getType()); in visitInsertValueInst()
1142 if (StructType *STy = dyn_cast<StructType>(AI->getType())) { in visitCallSite()
1154 if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) { in visitCallSite()
1256 if (StructType *STy = dyn_cast<StructType>(I->getType())) { in ResolvedUndefsIn()
/NextBSD/contrib/llvm/lib/Target/X86/
HDX86WinEHState.cpp84 StructType *EHLinkRegistrationTy = nullptr;
85 StructType *CXXEHRegistrationTy = nullptr;
86 StructType *SEHRegistrationTy = nullptr;
192 EHLinkRegistrationTy = StructType::create(Context, "EHRegistrationNode"); in getEHLinkRegistrationType()
217 StructType::create(FieldTys, "CXXExceptionRegistration"); in getCXXEHRegistrationType()
240 SEHRegistrationTy = StructType::create(FieldTys, "SEHExceptionRegistration"); in getSEHRegistrationType()

123456