Home
last modified time | relevance | path

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

123456789

/openbsd-src/gnu/llvm/llvm/include/llvm/Linker/
H A DIRMover.h22 class StructType; variable
32 KeyTy(const StructType *ST);
36 static StructType *getEmptyKey();
37 static StructType *getTombstoneKey();
39 static unsigned getHashValue(const StructType *ST);
40 static bool isEqual(const KeyTy &LHS, const StructType *RHS);
41 static bool isEqual(const StructType *LHS, const StructType *RHS);
50 DenseSet<StructType *> OpaqueStructTypes;
53 DenseSet<StructType *, StructTypeKeyInfo> NonOpaqueStructTypes;
56 void addNonOpaque(StructType *Ty);
[all …]
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DType.cpp152 if (auto *STy = dyn_cast<StructType>(this)) { in isEmptyTy()
217 return cast<StructType>(this)->isSized(Visited); in isSizedDerivedType()
408 StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes, in get()
413 StructType *ST; in get()
423 ST = new (Context.pImpl->Alloc) StructType(Context); in get()
435 bool StructType::containsScalableVectorType() const { in containsScalableVectorType()
439 if (auto *STy = dyn_cast<StructType>(Ty)) in containsScalableVectorType()
447 void StructType::setBody(ArrayRef<Type*> Elements, bool isPacked) { in setBody()
464 void StructType::setName(StringRef Name) { in setName()
467 StringMap<StructType *> &SymbolTable = getContext().pImpl->NamedStructTypes; in setName()
[all …]
H A DOperator.cpp76 if (StructType *STy = GTI.getStructTypeOrNull()) { in getMaxPreservedAlignment()
135 StructType *STy = GTI.getStructTypeOrNull(); in accumulateConstantOffset()
195 StructType *STy = GTI.getStructTypeOrNull(); in collectOffset()
H A DDataLayout.cpp48 StructLayout::StructLayout(StructType *ST, const DataLayout &DL) { in StructLayout()
649 using LayoutInfoTy = DenseMap<StructType*, StructLayout*>;
662 StructLayout *&operator[](StructType *STy) { in operator []()
681 const StructLayout *DataLayout::getStructLayout(StructType *Ty) const { in getStructLayout()
766 if (cast<StructType>(Ty)->isPacked() && abi_or_pref) in getAlignment()
770 const StructLayout *Layout = getStructLayout(cast<StructType>(Ty)); in getAlignment()
895 if (StructType *STy = GTI.getStructTypeOrNull()) { in getIndexedOffsetInType()
949 if (auto *STy = dyn_cast<StructType>(ElemTy)) { in getGEPIndexForOffset()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DGetElementPtrTypeIterator.h34 PointerUnion<StructType *, Type *> CurTy;
73 return CurTy.get<StructType *>()->getTypeAtIndex(getOperand()); in getIndexedType()
85 CurTy = dyn_cast<StructType>(Ty);
111 bool isStruct() const { return CurTy.is<StructType *>(); } in isStruct()
114 StructType *getStructType() const { return CurTy.get<StructType *>(); } in getStructType()
116 StructType *getStructTypeOrNull() const { in getStructTypeOrNull()
117 return CurTy.dyn_cast<StructType *>(); in getStructTypeOrNull()
H A DDerivedTypes.h213 class StructType : public Type {
214 StructType(LLVMContext &C) : Type(C, StructTyID) {} in StructType() function
231 StructType(const StructType &) = delete;
232 StructType &operator=(const StructType &) = delete;
235 static StructType *create(LLVMContext &Context, StringRef Name);
236 static StructType *create(LLVMContext &Context);
238 static StructType *create(ArrayRef<Type *> Elements, StringRef Name,
240 static StructType *create(ArrayRef<Type *> Elements);
241 static StructType *create(LLVMContext &Context, ArrayRef<Type *> Elements,
243 static StructType *create(LLVMContext &Context, ArrayRef<Type *> Elements);
[all …]
H A DTypeFinder.h25 class StructType; variable
39 std::vector<StructType*> StructTypes;
48 using iterator = std::vector<StructType*>::iterator;
49 using const_iterator = std::vector<StructType*>::const_iterator;
61 StructType *&operator[](unsigned Idx) { return StructTypes[Idx]; }
H A DGVMaterializer.h26 class StructType; variable
46 virtual std::vector<StructType *> getIdentifiedStructTypes() const = 0;
/openbsd-src/gnu/llvm/llvm/lib/Linker/
H A DIRMover.cpp50 SmallVector<StructType *, 16> SpeculativeDstOpaqueTypes;
54 SmallVector<StructType *, 16> SrcDefinitionsToResolve;
58 SmallPtrSet<StructType *, 16> DstResolvedOpaqueTypes;
76 Type *get(Type *SrcTy, SmallPtrSet<StructType *, 8> &Visited);
78 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes);
105 for (StructType *Ty : SpeculativeDstOpaqueTypes) in addTypeMapping()
115 if (auto *STy = dyn_cast<StructType>(Ty)) in addTypeMapping()
145 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) { in areTypesIsomorphic()
157 if (cast<StructType>(DstTy)->isOpaque()) { in areTypesIsomorphic()
159 if (!DstResolvedOpaqueTypes.insert(cast<StructType>(DstTy)).second) in areTypesIsomorphic()
[all …]
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A 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()
H A DCodeGenTypes.h27 class StructType; variable
76 llvm::DenseMap<const Type*, llvm::StructType *> RecordDeclTypes;
273 llvm::StructType *Ty);
277 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
283 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
H A DCodeGenTypes.cpp50 llvm::StructType *Ty, in addRecordTypeName()
123 llvm::DenseMap<const Type*, llvm::StructType *>::const_iterator I = in isRecordLayoutComplete()
356 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
364 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
384 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
650 ResultType = llvm::StructType::get(EltTy, EltTy); in ConvertType()
741 T = llvm::StructType::create(getLLVMContext()); in ConvertType()
789 Insertion.first->second = llvm::StructType::create(getLLVMContext()); in ConvertType()
811 llvm::StructType::get(getLLVMContext(), llvm::ArrayRef(elts)); in ConvertType()
844 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { in ConvertRecordDeclType()
[all …]
H A DCGHLSLRuntime.h32 class StructType; variable
67 llvm::StructType *LayoutStruct = nullptr;
H A DCGOpenCLRuntime.cpp72 llvm::PointerType::get(llvm::StructType::create(Ctx, Name), AddrSpc); in getPointerType()
87 PipeTy = llvm::PointerType::get(llvm::StructType::create( in getPipeType()
96 SamplerTy = llvm::PointerType::get(llvm::StructType::create( in getSamplerType()
/openbsd-src/gnu/llvm/llvm/lib/Target/DirectX/
H A DDXILOpBuilder.cpp113 StructType *ST = cast<StructType>(Ty); in getTypeName()
116 StructType *ST = cast<StructType>(Ty); in getTypeName()
167 static StructType *getOrCreateStructType(StringRef Name, in getOrCreateStructType()
170 StructType *ST = StructType::getTypeByName(Ctx, Name); in getOrCreateStructType()
174 return StructType::create(Ctx, EltTys, Name); in getOrCreateStructType()
177 static StructType *getResRetType(Type *OverloadTy, LLVMContext &Ctx) { in getResRetType()
185 static StructType *getHandleType(LLVMContext &Ctx) { in getHandleType()
314 auto *ST = cast<StructType>(OverloadType); in getOverloadTy()
H A DCBufferDataLayout.cpp25 StructType *ST;
43 LegacyStructLayout &getStructLayout(StructType *ST);
45 SmallDenseMap<StructType *, LegacyStructLayout> StructLayouts;
63 if (isa<StructType>(EltTy) || isa<ArrayType>(EltTy)) in applyRowAlign()
73 if (auto *ST = dyn_cast<StructType>(Ty)) { in getTypeAllocSize()
93 LegacyCBufferLayout::getStructLayout(StructType *ST) { in getStructLayout()
/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp238 Type *StructType = Arg->getParamByValType(); in adjustByValArgAlignment() local
242 TLI->getFunctionParamOptimizedAlign(Func, StructType, DL).value(); in adjustByValArgAlignment()
316 Type *StructType = Arg->getParamByValType(); in handleByValParam() local
317 assert(StructType && "Missing byval type"); in handleByValParam()
351 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam()
372 AllocaInst *AllocA = new AllocaInst(StructType, AS, Arg->getName(), FirstInst); in handleByValParam()
377 .value_or(DL.getPrefTypeAlign(StructType))); in handleByValParam()
381 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam()
387 new LoadInst(StructType, ArgInParam, Arg->getName(), in handleByValParam()
/openbsd-src/gnu/llvm/clang/tools/clang-linker-wrapper/
H A DOffloadWrapper.cpp59 StructType *getEntryTy(Module &M) { in getEntryTy()
61 StructType *EntryTy = StructType::getTypeByName(C, "__tgt_offload_entry"); in getEntryTy()
63 EntryTy = StructType::create("__tgt_offload_entry", Type::getInt8PtrTy(C), in getEntryTy()
79 StructType *getDeviceImageTy(Module &M) { in getDeviceImageTy()
81 StructType *ImageTy = StructType::getTypeByName(C, "__tgt_device_image"); in getDeviceImageTy()
83 ImageTy = StructType::create("__tgt_device_image", Type::getInt8PtrTy(C), in getDeviceImageTy()
99 StructType *getBinDescTy(Module &M) { in getBinDescTy()
101 StructType *DescTy = StructType::getTypeByName(C, "__tgt_bin_desc"); in getBinDescTy()
103 DescTy = StructType::create("__tgt_bin_desc", Type::getInt32Ty(C), in getBinDescTy()
283 StructType *getFatbinWrapperTy(Module &M) { in getFatbinWrapperTy()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/
H A DTarget.cpp134 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
140 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A 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()
H A DAnalysis.cpp42 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeLinearIndex()
85 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeValueVTs()
90 for (StructType::element_iterator EB = STy->element_begin(), in ComputeValueVTs()
134 if (StructType *STy = dyn_cast<StructType>(&Ty)) { in computeValueLLTs()
413 return Idx < cast<StructType>(T)->getNumElements(); in indexReallyValid()
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Utils/
H A DSanitizerStats.h46 StructType *EmptyModuleStatsTy;
50 StructType *makeModuleStatsTy();
/openbsd-src/gnu/llvm/clang/include/clang/CodeGen/
H A 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()
596 llvm::StructType *ArgStruct;
728 llvm::StructType *getArgStruct() const { return ArgStruct; } in getArgStruct()
732 void setArgStruct(llvm::StructType *Ty, CharUnits Align) { in setArgStruct()
H A 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()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUOpenCLEnqueuedBlockLowering.cpp106 StructType *HandleTy = nullptr; in runOnModule()
120 HandleTy = StructType::create( in runOnModule()

123456789