Home
last modified time | relevance | path

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

12345678

/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Linker/
DIRMover.h21 class StructType; variable
31 KeyTy(const StructType *ST);
35 static StructType *getEmptyKey();
36 static StructType *getTombstoneKey();
38 static unsigned getHashValue(const StructType *ST);
39 static bool isEqual(const KeyTy &LHS, const StructType *RHS);
40 static bool isEqual(const StructType *LHS, const StructType *RHS);
49 DenseSet<StructType *> OpaqueStructTypes;
52 DenseSet<StructType *, StructTypeKeyInfo> NonOpaqueStructTypes;
55 void addNonOpaque(StructType *Ty);
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/
DType.cpp117 if (auto *STy = dyn_cast<StructType>(this)) { in isEmptyTy()
179 return cast<StructType>(this)->isSized(Visited); in isSizedDerivedType()
372 StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes, in get()
377 StructType *ST; in get()
387 ST = new (Context.pImpl->Alloc) StructType(Context); in get()
399 bool StructType::containsScalableVectorType() const { in containsScalableVectorType()
403 if (auto *STy = dyn_cast<StructType>(Ty)) in containsScalableVectorType()
411 void StructType::setBody(ArrayRef<Type*> Elements, bool isPacked) { in setBody()
428 void StructType::setName(StringRef Name) { in setName()
431 StringMap<StructType *> &SymbolTable = getContext().pImpl->NamedStructTypes; in setName()
[all …]
DOperator.cpp44 if (StructType *STy = GTI.getStructTypeOrNull()) { in getMaxPreservedAlignment()
105 StructType *STy = GTI.getStructTypeOrNull(); in accumulateConstantOffset()
165 StructType *STy = GTI.getStructTypeOrNull(); in collectOffset()
DDataLayout.cpp47 StructLayout::StructLayout(StructType *ST, const DataLayout &DL) { in StructLayout()
639 using LayoutInfoTy = DenseMap<StructType*, StructLayout*>;
652 StructLayout *&operator[](StructType *STy) { in operator []()
671 const StructLayout *DataLayout::getStructLayout(StructType *Ty) const { in getStructLayout()
755 if (cast<StructType>(Ty)->isPacked() && abi_or_pref) in getAlignment()
759 const StructLayout *Layout = getStructLayout(cast<StructType>(Ty)); in getAlignment()
884 if (StructType *STy = GTI.getStructTypeOrNull()) { in getIndexedOffsetInType()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Linker/
DIRMover.cpp41 SmallVector<StructType *, 16> SpeculativeDstOpaqueTypes;
45 SmallVector<StructType *, 16> SrcDefinitionsToResolve;
49 SmallPtrSet<StructType *, 16> DstResolvedOpaqueTypes;
67 Type *get(Type *SrcTy, SmallPtrSet<StructType *, 8> &Visited);
69 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes);
96 for (StructType *Ty : SpeculativeDstOpaqueTypes) in addTypeMapping()
106 if (auto *STy = dyn_cast<StructType>(Ty)) in addTypeMapping()
136 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) { in areTypesIsomorphic()
148 if (cast<StructType>(DstTy)->isOpaque()) { in areTypesIsomorphic()
150 if (!DstResolvedOpaqueTypes.insert(cast<StructType>(DstTy)).second) in areTypesIsomorphic()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/
DDerivedTypes.h212 class StructType : public Type {
213 StructType(LLVMContext &C) : Type(C, StructTyID) {} in StructType() function
230 StructType(const StructType &) = delete;
231 StructType &operator=(const StructType &) = delete;
234 static StructType *create(LLVMContext &Context, StringRef Name);
235 static StructType *create(LLVMContext &Context);
237 static StructType *create(ArrayRef<Type *> Elements, StringRef Name,
239 static StructType *create(ArrayRef<Type *> Elements);
240 static StructType *create(LLVMContext &Context, ArrayRef<Type *> Elements,
242 static StructType *create(LLVMContext &Context, ArrayRef<Type *> Elements);
[all …]
DGetElementPtrTypeIterator.h34 PointerUnion<StructType *, Type *> CurTy;
75 return CurTy.get<StructType *>()->getTypeAtIndex(getOperand()); in getIndexedType()
92 CurTy = dyn_cast<StructType>(Ty);
118 bool isStruct() const { return CurTy.is<StructType *>(); } in isStruct()
121 StructType *getStructType() const { return CurTy.get<StructType *>(); } in getStructType()
123 StructType *getStructTypeOrNull() const { in getStructTypeOrNull()
124 return CurTy.dyn_cast<StructType *>(); in getStructTypeOrNull()
DTypeFinder.h24 class StructType; variable
37 std::vector<StructType*> StructTypes;
46 using iterator = std::vector<StructType*>::iterator;
47 using const_iterator = std::vector<StructType*>::const_iterator;
59 StructType *&operator[](unsigned Idx) { return StructTypes[Idx]; }
DGVMaterializer.h26 class StructType; variable
46 virtual std::vector<StructType *> getIdentifiedStructTypes() const = 0;
/freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/
DCGRecordLayout.h19 class StructType; variable
130 llvm::StructType *CompleteObjectType;
134 llvm::StructType *BaseSubobjectType;
162 CGRecordLayout(llvm::StructType *CompleteObjectType, in CGRecordLayout()
163 llvm::StructType *BaseSubobjectType, in CGRecordLayout()
173 llvm::StructType *getLLVMType() const { in getLLVMType()
179 llvm::StructType *getBaseSubobjectLLVMType() const { in getBaseSubobjectLLVMType()
DCGOpenCLRuntime.cpp47 llvm::StructType::create(Ctx, "opencl." #ImgType "_" #Suffix "_t"), \ in convertOpenCLSpecificType()
54 llvm::StructType::create(Ctx, "opencl.event_t"), AddrSpc); in convertOpenCLSpecificType()
57 llvm::StructType::create(Ctx, "opencl.clk_event_t"), AddrSpc); in convertOpenCLSpecificType()
60 llvm::StructType::create(Ctx, "opencl.queue_t"), AddrSpc); in convertOpenCLSpecificType()
63 llvm::StructType::create(Ctx, "opencl.reserve_id_t"), AddrSpc); in convertOpenCLSpecificType()
67 llvm::StructType::create(Ctx, "opencl." #ExtType), AddrSpc); in convertOpenCLSpecificType()
82 PipeTy = llvm::PointerType::get(llvm::StructType::create( in getPipeType()
91 SamplerTy = llvm::PointerType::get(llvm::StructType::create( in getSamplerType()
DCodeGenTypes.h27 class StructType; variable
81 llvm::DenseMap<const Type*, llvm::StructType *> RecordDeclTypes;
276 llvm::StructType *Ty);
280 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
286 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
DCodeGenTypes.cpp60 llvm::StructType *Ty, in addRecordTypeName()
125 llvm::DenseMap<const Type*, llvm::StructType *>::const_iterator I = in isRecordLayoutComplete()
358 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
366 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
386 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
653 ResultType = llvm::StructType::get(EltTy, EltTy); in ConvertType()
745 T = llvm::StructType::create(getLLVMContext()); in ConvertType()
785 ResultType = llvm::StructType::create(getLLVMContext()); in ConvertType()
805 ResultType = llvm::StructType::get(getLLVMContext(), in ConvertType()
844 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { in ConvertRecordDeclType()
[all …]
DCGObjCMac.cpp109 llvm::StructType::get(longDoubleType, longDoubleType); in getMessageSendFp2retFn()
213 llvm::StructType *SuperTy;
219 llvm::StructType *PropertyTy;
223 llvm::StructType *PropertyListTy;
228 llvm::StructType *MethodTy;
501 llvm::StructType *SymtabTy;
505 llvm::StructType *ModuleTy;
508 llvm::StructType *ProtocolTy;
513 llvm::StructType *ProtocolExtensionTy;
519 llvm::StructType *MethodDescriptionTy;
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/
DNVPTXLowerArgs.cpp236 Type *StructType = PType->getElementType(); in handleByValParam() local
270 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam()
282 AllocaInst *AllocA = new AllocaInst(StructType, AS, Arg->getName(), FirstInst); in handleByValParam()
287 .getValueOr(DL.getPrefTypeAlign(StructType))); in handleByValParam()
291 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam()
297 new LoadInst(StructType, ArgInParam, Arg->getName(), in handleByValParam()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/
DShadowStackGCLowering.cpp59 StructType *StackEntryTy = nullptr;
60 StructType *FrameMapTy = nullptr;
134 StructType *STy = StructType::create(EltTys, "gc_map." + utostr(NumMeta)); in GetFrameMap()
168 return StructType::create(EltTys, ("gc_stackentry." + F.getName()).str()); in GetConcreteStackEntryType()
194 FrameMapTy = StructType::create(EltTys, "gc_map"); in doInitialization()
203 StackEntryTy = StructType::create(M.getContext(), "gc_stackentry"); in doInitialization()
DAnalysis.cpp45 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeLinearIndex()
88 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeValueVTs()
93 for (StructType::element_iterator EB = STy->element_begin(), in ComputeValueVTs()
137 if (StructType *STy = dyn_cast<StructType>(&Ty)) { in computeValueLLTs()
391 return Idx < cast<StructType>(T)->getNumElements(); in indexReallyValid()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/
DTarget.cpp134 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
140 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
DSanitizerStats.h46 StructType *EmptyModuleStatsTy;
50 StructType *makeModuleStatsTy();
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp143 StructType *STy = cast<StructType>(AgTy); in doPromotion()
264 StructType *STy = cast<StructType>(AgTy); in doPromotion()
394 StructType *STy = cast<StructType>(AgTy); in doPromotion()
784 if (!isa<StructType>(type)) in isDenselyPacked()
788 StructType *StructTy = cast<StructType>(type); in isDenselyPacked()
953 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in promoteArguments()
985 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in promoteArguments()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/CodeGen/
DCGFunctionInfo.h250 static ABIArgInfo getCoerceAndExpand(llvm::StructType *coerceToType, in getCoerceAndExpand()
256 auto unpaddedStruct = dyn_cast<llvm::StructType>(unpaddedCoerceToType); in getCoerceAndExpand()
358 llvm::StructType *getCoerceAndExpandType() const { in getCoerceAndExpandType()
360 return cast<llvm::StructType>(TypeData); in getCoerceAndExpandType()
371 dyn_cast<llvm::StructType>(UnpaddedCoerceAndExpandType)) { in getCoerceAndExpandTypeSequence()
593 llvm::StructType *ArgStruct;
725 llvm::StructType *getArgStruct() const { return ArgStruct; } in getArgStruct()
729 void setArgStruct(llvm::StructType *Ty, CharUnits Align) { in setArgStruct()
DConstantInitBuilder.h328 llvm::Constant *finishStruct(llvm::StructType *structTy);
366 StructBuilder beginStruct(llvm::StructType *ty = nullptr) {
464 llvm::StructType *StructTy;
472 llvm::StructType *structTy) in ConstantStructBuilderTemplateBase()
484 void suggestType(llvm::StructType *structTy) { in suggestType()
518 StructBuilder beginStruct(llvm::StructType *structTy = nullptr) {
572 llvm::StructType *structTy) in ConstantStructBuilder()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
DHexagonTargetObjectFile.cpp251 if (StructType *ST = dyn_cast<StructType>(GType)) { in isGlobalInSmallSection()
299 const StructType *STy = cast<const StructType>(Ty); in getSmallestAddressableSize()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPURewriteOutArguments.cpp338 StructType *NewRetTy = StructType::create(Ctx, ReturnTypes, F.getName()); in runOnFunction()
385 if (StructType *CT = dyn_cast<StructType>(EltTy)) { in runOnFunction()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
DSCCPSolver.cpp198 assert(i < cast<StructType>(V->getType())->getNumElements() && in getStructValueState()
368 if (auto *STy = dyn_cast<StructType>(F->getReturnType())) { in addTrackedFunction()
405 auto *STy = dyn_cast<StructType>(V->getType()); in getStructLatticeValueFor()
440 if (auto *STy = dyn_cast<StructType>(V->getType())) in markOverdefined()
447 bool isStructLatticeConstant(Function *F, StructType *STy);
506 bool SCCPInstVisitor::isStructLatticeConstant(Function *F, StructType *STy) { in isStructLatticeConstant()
778 if (auto *STy = dyn_cast<StructType>(ResultOp->getType())) in visitReturnInst()
860 auto *STy = dyn_cast<StructType>(IVI.getType()); in visitInsertValueInst()
1236 if (auto *STy = dyn_cast<StructType>(AI->getType())) { in handleCallArguments()
1360 if (auto *STy = dyn_cast<StructType>(F->getReturnType())) { in handleCallResult()
[all …]

12345678