Home
last modified time | relevance | path

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

123456789

/freebsd/contrib/llvm-project/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);
41 static bool isEqual(const StructType *LHS, const StructType *RHS);
50 DenseSet<StructType *> OpaqueStructTypes;
56 void addNonOpaque(StructType *Ty);
57 void switchToNonOpaque(StructType *Ty);
58 void addOpaque(StructType *Ty);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DType.cpp373 StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes, in get()
378 StructType *ST; in get()
513 StructType *StructType::create(LLVMContext &Context, StringRef Name) { in create()
514 StructType *ST = new (Context.pImpl->Alloc) StructType(Context); in create()
520 StructType *StructType::get(LLVMContext &Context, bool isPacked) { in get()
524 StructType *StructType::create(LLVMContext &Context, ArrayRef<Type*> Elements, in create()
535 StructType *StructType::create(LLVMContext &Context) { in create()
539 StructType *StructType::create(ArrayRef<Type*> Elements, StringRef Name, in create()
546 StructType *StructType::create(ArrayRef<Type*> Elements) { in create()
603 bool StructType::isLayoutIdentical(StructType *Other) const { in isLayoutIdentical()
[all …]
H A DOperator.cpp82 if (StructType *STy = GTI.getStructTypeOrNull()) { in getMaxPreservedAlignment()
139 StructType *STy = GTI.getStructTypeOrNull(); in accumulateConstantOffset()
198 StructType *STy = GTI.getStructTypeOrNull(); in collectOffset()
/freebsd/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp78 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes);
145 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) { in areTypesIsomorphic()
182 } else if (StructType *DSTy = dyn_cast<StructType>(DstTy)) { in areTypesIsomorphic()
183 StructType *SSTy = cast<StructType>(SrcTy); in areTypesIsomorphic()
212 StructType *DstSTy = cast<StructType>(MappedTypes[SrcSTy]); in linkDefinedTypeBodies()
227 void TypeMapTy::finishType(StructType *DTy, StructType *STy, in finishType()
253 bool IsUniqued = !isa<StructType>(Ty) || cast<StructType>(Ty)->isLiteral(); in get()
264 StructType *DTy = StructType::create(Ty->getContext()); in get()
333 if (StructType *OldT = in get()
344 StructType *DTy = StructType::create(Ty->getContext()); in get()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.h216 class StructType : public Type {
217 StructType(LLVMContext &C) : Type(C, StructTyID) {} in StructType() function
236 StructType(const StructType &) = delete;
237 StructType &operator=(const StructType &) = delete;
240 static StructType *create(LLVMContext &Context, StringRef Name);
241 static StructType *create(LLVMContext &Context);
245 static StructType *create(ArrayRef<Type *> Elements);
338 bool isLayoutIdentical(StructType *Other) const;
359 return cast<StructType>(this)->getName(); in getStructName()
363 return cast<StructType>(this)->getNumElements(); in getStructNumElements()
[all …]
H A DGetElementPtrTypeIterator.h66 PointerUnion<StructType *, VectorType *, Type *> CurTy;
107 return cast<StructType *>(CurTy)->getTypeAtIndex(getOperand()); in getIndexedType()
119 CurTy = dyn_cast<StructType>(Ty);
145 bool isStruct() const { return isa<StructType *>(CurTy); } in isStruct()
164 StructType *getStructType() const { return cast<StructType *>(CurTy); } in getStructType()
166 StructType *getStructTypeOrNull() const { in getStructTypeOrNull()
167 return dyn_cast_if_present<StructType *>(CurTy); in getStructTypeOrNull()
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;
/freebsd/contrib/llvm-project/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;
266 llvm::StructType *Ty);
270 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
276 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
H A DCodeGenTypes.cpp51 llvm::StructType *Ty, in addRecordTypeName()
124 llvm::DenseMap<const Type*, llvm::StructType *>::const_iterator I = in isRecordLayoutComplete()
258 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
278 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
523 return llvm::StructType::get(getLLVMContext(), EltTys); in ConvertType()
551 ResultType = llvm::StructType::get(EltTy, EltTy); in ConvertType()
638 T = llvm::StructType::create(getLLVMContext()); in ConvertType()
699 llvm::StructType::get(getLLVMContext(), llvm::ArrayRef(elts)); in ConvertType()
736 llvm::StructType *&Entry = RecordDeclTypes[Key]; in ConvertRecordDeclType()
740 Entry = llvm::StructType::create(getLLVMContext()); in ConvertRecordDeclType()
[all …]
H A DCGHLSLRuntime.h32 class StructType; variable
67 llvm::StructType *LayoutStruct = nullptr;
/freebsd/contrib/llvm-project/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()
315 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()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp241 Type *StructType = Arg->getParamByValType(); in adjustByValArgAlignment() local
245 TLI->getFunctionParamOptimizedAlign(Func, StructType, DL).value(); in adjustByValArgAlignment()
320 Type *StructType = Arg->getParamByValType(); in handleByValParam() local
321 assert(StructType && "Missing byval type"); in handleByValParam()
355 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()
/freebsd/contrib/llvm-project/llvm/lib/Target/
H A DTarget.cpp129 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
135 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/
H A DUtility.cpp18 StructType *offloading::getEntryTy(Module &M) { in getEntryTy()
20 StructType *EntryTy = in getEntryTy()
21 StructType::getTypeByName(C, "struct.__tgt_offload_entry"); in getEntryTy()
23 EntryTy = StructType::create( in getEntryTy()
H A DOffloadWrapper.cpp41 StructType *getDeviceImageTy(Module &M) { in getDeviceImageTy()
43 StructType *ImageTy = StructType::getTypeByName(C, "__tgt_device_image"); in getDeviceImageTy()
46 StructType::create("__tgt_device_image", PointerType::getUnqual(C), in getDeviceImageTy()
62 StructType *getBinDescTy(Module &M) { in getBinDescTy()
64 StructType *DescTy = StructType::getTypeByName(C, "__tgt_bin_desc"); in getBinDescTy()
66 DescTy = StructType::create( in getBinDescTy()
246 StructType *getFatbinWrapperTy(Module &M) { in getFatbinWrapperTy()
248 StructType *FatbinTy = StructType::getTypeByName(C, "fatbin_wrapper"); in getFatbinWrapperTy()
250 FatbinTy = StructType::create( in getFatbinWrapperTy()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSanitizerStats.h46 StructType *EmptyModuleStatsTy;
50 StructType *makeModuleStatsTy();
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DShadowStackGCLowering.cpp61 StructType *StackEntryTy = nullptr;
62 StructType *FrameMapTy = nullptr;
176 StructType *STy = StructType::create(EltTys, "gc_map." + utostr(NumMeta)); in GetFrameMap()
210 return StructType::create(EltTys, ("gc_stackentry." + F.getName()).str()); in GetConcreteStackEntryType()
236 FrameMapTy = StructType::create(EltTys, "gc_map"); in doInitialization()
245 StackEntryTy = StructType::create(M.getContext(), "gc_stackentry"); in doInitialization()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DSparc.cpp178 void addStruct(uint64_t Offset, llvm::StructType *StrTy) { in addStruct()
185 addStruct(ElemOffset, cast<llvm::StructType>(ElemTy)); in addStruct()
210 bool isUsableType(llvm::StructType *Ty) const { in isUsableType()
219 return llvm::StructType::get(Context, Elems); in getType()
260 llvm::StructType *StrTy = dyn_cast<llvm::StructType>(CGT.ConvertType(Ty)); in classifyType()
H A DMips.cpp133 return llvm::StructType::get(getVMContext(), ArgList); in HandleAggregates()
144 return llvm::StructType::get(getVMContext(), ArgList); in HandleAggregates()
181 return llvm::StructType::get(getVMContext(), ArgList); in HandleAggregates()
275 return llvm::StructType::get(getVMContext(), RTList, in returnAggregateInRegs()
283 return llvm::StructType::get(getVMContext(), RTList); in returnAggregateInRegs()
/freebsd/contrib/llvm-project/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()
605 llvm::StructType *ArgStruct;
736 llvm::StructType *getArgStruct() const { return ArgStruct; } in getArgStruct()
740 void setArgStruct(llvm::StructType *Ty, CharUnits Align) { in setArgStruct()
H A DConstantInitBuilder.h323 llvm::Constant *finishStruct(llvm::StructType *structTy);
361 StructBuilder beginStruct(llvm::StructType *ty = nullptr) {
459 llvm::StructType *StructTy;
467 llvm::StructType *structTy) in ConstantStructBuilderTemplateBase()
479 void suggestType(llvm::StructType *structTy) { in suggestType()
513 StructBuilder beginStruct(llvm::StructType *structTy = nullptr) {
567 llvm::StructType *structTy) in ConstantStructBuilder()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUOpenCLEnqueuedBlockLowering.cpp81 StructType *HandleTy = nullptr; in runOnModule()
96 StructType::create(C, {PointerType::getUnqual(C), Int32, Int32}, in runOnModule()

123456789