Home
last modified time | relevance | path

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

1234567891011

/freebsd/contrib/llvm-project/llvm/include/llvm/Linker/
H A DIRMover.h23 class StructType; variable
33 LLVM_ABI KeyTy(const StructType *ST);
37 LLVM_ABI static StructType *getEmptyKey();
38 LLVM_ABI static StructType *getTombstoneKey();
40 LLVM_ABI static unsigned getHashValue(const StructType *ST);
41 LLVM_ABI static bool isEqual(const KeyTy &LHS, const StructType *RHS);
42 LLVM_ABI static bool isEqual(const StructType *LHS, const StructType *RHS);
51 DenseSet<StructType *> OpaqueStructTypes;
54 DenseSet<StructType *, StructTypeKeyInfo> NonOpaqueStructTypes;
57 LLVM_ABI void addNonOpaque(StructType *Ty);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DVectorTypeUtils.h34 LLVM_ABI Type *toVectorizedStructTy(StructType *StructTy, ElementCount EC);
38 LLVM_ABI Type *toScalarizedStructTy(StructType *StructTy);
42 LLVM_ABI bool isVectorizedStructTy(StructType *StructTy);
46 LLVM_ABI bool canVectorizeStructTy(StructType *StructTy);
56 if (StructType *StructTy = dyn_cast<StructType>(Ty)) in toVectorizedTy()
66 if (StructType *StructTy = dyn_cast<StructType>(Ty)) in toScalarizedTy()
74 if (StructType *StructTy = dyn_cast<StructType>(Ty)) in isVectorizedTy()
86 if (StructType *StructTy = dyn_cast<StructType>(Ty)) in canVectorizeTy()
94 if (auto *StructTy = dyn_cast<StructType>(Ty)) in getContainedTypes()
105 inline bool isUnpackedStructLiteral(StructType *StructTy) { in isUnpackedStructLiteral()
H A DGetElementPtrTypeIterator.h58 // CurTy contains a StructType* pointing at `%my.struct`.
66 PointerUnion<StructType *, VectorType *, Type *> CurTy;
107 return cast<StructType *>(CurTy)->getTypeAtIndex(getOperand());
119 CurTy = dyn_cast<StructType>(Ty);
145 bool isStruct() const { return isa<StructType *>(CurTy); }
164 StructType *getStructType() const { return cast<StructType *>(CurTy); }
166 StructType *getStructTypeOrNull() const {
167 return dyn_cast_if_present<StructType *>(CurTy);
H A DDerivedTypes.h218 class StructType : public Type {
219 StructType(LLVMContext &C) : Type(C, StructTyID) {} in StructType() function
242 StructType(const StructType &) = delete;
243 StructType &operator=(const StructType &) = delete;
246 LLVM_ABI static StructType *create(LLVMContext &Context, StringRef Name);
247 LLVM_ABI static StructType *create(LLVMContext &Context);
249 LLVM_ABI static StructType *create(ArrayRef<Type *> Elements, StringRef Name,
251 LLVM_ABI static StructType *create(ArrayRef<Type *> Elements);
252 LLVM_ABI static StructType *create(LLVMContext &Context,
255 LLVM_ABI static StructType *create(LLVMContext &Context,
[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;
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DType.cpp65 if (const auto *STy = dyn_cast<StructType>(this)) in isScalableTy()
79 if (const auto *STy = dyn_cast<StructType>(this)) in containsNonGlobalTargetExtType()
95 if (const auto *STy = dyn_cast<StructType>(this)) in containsNonLocalTargetExtType()
187 if (auto *STy = dyn_cast<StructType>(this)) { in isEmptyTy()
258 auto *ST = cast<StructType>(this); in isFirstClassType()
274 return cast<StructType>(this)->isSized(Visited); in isSizedDerivedType()
416 StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes, in get()
421 StructType *ST; in get()
431 ST = new (Context.pImpl->Alloc) StructType(Context); in get()
443 bool StructType::isScalableTy(SmallPtrSetImpl<const Type *> &Visited) const { in isScalableTy()
[all …]
H A DVectorTypeUtils.cpp16 Type *llvm::toVectorizedStructTy(StructType *StructTy, ElementCount EC) { in toVectorizedStructTy()
23 return StructType::get( in toVectorizedStructTy()
32 Type *llvm::toScalarizedStructTy(StructType *StructTy) { in toScalarizedStructTy()
35 return StructType::get( in toScalarizedStructTy()
44 bool llvm::isVectorizedStructTy(StructType *StructTy) { in isVectorizedStructTy()
58 bool llvm::canVectorizeStructTy(StructType *StructTy) { in canVectorizeStructTy()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILOpBuilder.cpp121 StructType *ST = cast<StructType>(Ty); in getOverloadKind()
133 StructType *ST = cast<StructType>(Ty); in getTypeName()
136 StructType *ST = cast<StructType>(Ty); in getTypeName()
185 static StructType *getOrCreateStructType(StringRef Name, in getOrCreateStructType()
188 StructType *ST = StructType::getTypeByName(Ctx, Name); in getOrCreateStructType()
192 return StructType::create(Ctx, EltTys, Name); in getOrCreateStructType()
195 static StructType *getResRetType(Type *ElementTy) { in getResRetType()
204 static StructType *getCBufRetType(Type *ElementTy) { in getCBufRetType()
227 static StructType *getHandleType(LLVMContext &Ctx) { in getHandleType()
232 static StructType *getResBindType(LLVMContext &Context) { in getResBindType()
[all …]
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()
H A DDXILOpBuilder.h51 StructType *getResRetType(Type *ElementTy);
54 StructType *getCBufRetType(Type *ElementTy);
57 StructType *getHandleType();
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGRecordLayout.h19 class StructType; variable
131 llvm::StructType *CompleteObjectType;
135 llvm::StructType *BaseSubobjectType;
163 CGRecordLayout(llvm::StructType *CompleteObjectType, in CGRecordLayout()
164 llvm::StructType *BaseSubobjectType, in CGRecordLayout()
174 llvm::StructType *getLLVMType() const { in getLLVMType()
180 llvm::StructType *getBaseSubobjectLLVMType() const { in getBaseSubobjectLLVMType()
H A DCodeGenTypes.cpp54 llvm::StructType *Ty, in addRecordTypeName()
189 llvm::DenseMap<const Type*, llvm::StructType *>::const_iterator I = in isRecordLayoutComplete()
323 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
343 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
532 return llvm::StructType::get(VTy, VTy); in ConvertType()
534 return llvm::StructType::get(VTy, VTy, VTy); in ConvertType()
536 return llvm::StructType::get(VTy, VTy, VTy, VTy); in ConvertType()
602 ResultType = llvm::StructType::get(EltTy, EltTy); in ConvertType()
692 T = llvm::StructType::create(getLLVMContext()); in ConvertType()
731 Insertion.first->second = llvm::StructType::create(getLLVMContext()); in ConvertType()
[all …]
H A DCodeGenTypes.h27 class StructType; variable
71 llvm::DenseMap<const Type*, llvm::StructType *> RecordDeclTypes;
290 llvm::StructType *Ty);
294 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
300 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
/freebsd/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp101 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) { in recursivelyAddMappingIfTypesAreIsomorphic()
102 if (SSTy->isOpaque() || cast<StructType>(DstTy)->isOpaque()) in recursivelyAddMappingIfTypesAreIsomorphic()
119 } else if (StructType *DSTy = dyn_cast<StructType>(DstTy)) { in recursivelyAddMappingIfTypesAreIsomorphic()
120 StructType *SSTy = cast<StructType>(SrcTy); in recursivelyAddMappingIfTypesAreIsomorphic()
142 if (auto *STy = dyn_cast<StructType>(SrcTy)) { in recursivelyAddMappingIfTypesAreIsomorphic()
162 bool IsUniqued = !isa<StructType>(Ty) || cast<StructType>(Ty)->isLiteral(); in get()
215 auto *STy = cast<StructType>(Ty); in get()
218 return *Entry = StructType::get(Ty->getContext(), ElementTypes, IsPacked); in get()
226 if (StructType *OldT = in get()
237 StructType *DTy = in get()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/
H A DTarget.cpp130 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
136 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DCodeExtractor.h39 class StructType; variable
290 StructType *&StructTy);
297 StructType *StructArgTy, BasicBlock *header,
304 Function *newFunction, StructType *StructArgTy,
H A DSanitizerStats.h47 StructType *EmptyModuleStatsTy;
51 StructType *makeModuleStatsTy();
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DShadowStackGCLowering.cpp60 StructType *StackEntryTy = nullptr;
61 StructType *FrameMapTy = nullptr;
175 StructType *STy = StructType::create(EltTys, "gc_map." + utostr(NumMeta)); in GetFrameMap()
209 return StructType::create(EltTys, ("gc_stackentry." + F.getName()).str()); in GetConcreteStackEntryType()
235 FrameMapTy = StructType::create(EltTys, "gc_map"); in doInitialization()
249 StackEntryTy = StructType::create(EltTys, "gc_stackentry"); in doInitialization()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/
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()
254 StructType *getFatbinWrapperTy(Module &M) { in getFatbinWrapperTy()
256 StructType *FatbinTy = StructType::getTypeByName(C, "fatbin_wrapper"); in getFatbinWrapperTy()
258 FatbinTy = StructType::create( in getFatbinWrapperTy()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DSparc.cpp180 void addStruct(uint64_t Offset, llvm::StructType *StrTy) { in addStruct()
187 addStruct(ElemOffset, cast<llvm::StructType>(ElemTy)); in addStruct()
212 bool isUsableType(llvm::StructType *Ty) const { in isUsableType()
221 return llvm::StructType::get(Context, Elems); in getType()
280 llvm::StructType *StrTy = dyn_cast<llvm::StructType>(CGT.ConvertType(Ty)); in classifyType()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DType.cpp61 StructType *StructType::get(Context &Ctx, ArrayRef<Type *> Elements, in get()
67 return cast<StructType>( in get()
68 Ctx.getType(llvm::StructType::get(Ctx.LLVMCtx, LLVMElements, IsPacked))); in get()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DType.h38 class StructType; variable
51 friend class StructType; // For LLVMTy. variable
313 class StructType : public Type {
316 LLVM_ABI static StructType *get(Context &Ctx, ArrayRef<Type *> Elements,
319 bool isPacked() const { return cast<llvm::StructType>(LLVMTy)->isPacked(); } in isPacked()
323 return isa<llvm::StructType>(From->LLVMTy); in classof()
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DConstantInitBuilder.h331 llvm::Constant *finishStruct(llvm::StructType *structTy);
369 StructBuilder beginStruct(llvm::StructType *ty = nullptr) {
467 llvm::StructType *StructTy;
475 llvm::StructType *structTy) in ConstantStructBuilderTemplateBase()
487 void suggestType(llvm::StructType *structTy) { in suggestType()
521 StructBuilder beginStruct(llvm::StructType *structTy = nullptr) {
575 llvm::StructType *structTy) in ConstantStructBuilder()
H A DCGFunctionInfo.h262 static ABIArgInfo getCoerceAndExpand(llvm::StructType *coerceToType, in getCoerceAndExpand()
268 auto unpaddedStruct = dyn_cast<llvm::StructType>(unpaddedCoerceToType); in getCoerceAndExpand()
376 llvm::StructType *getCoerceAndExpandType() const { in getCoerceAndExpandType()
378 return cast<llvm::StructType>(TypeData); in getCoerceAndExpandType()
389 dyn_cast<llvm::StructType>(UnpaddedCoerceAndExpandType)) { in getCoerceAndExpandTypeSequence()
633 llvm::StructType *ArgStruct;
765 llvm::StructType *getArgStruct() const { return ArgStruct; } in getArgStruct()
769 void setArgStruct(llvm::StructType *Ty, CharUnits Align) { in setArgStruct()

1234567891011