/freebsd/contrib/llvm-project/llvm/include/llvm/Linker/ |
H A D | IRMover.h | 22 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Type.cpp | 63 if (const auto *STy = dyn_cast<StructType>(this)) { in isScalableTy() 155 if (auto *STy = dyn_cast<StructType>(this)) { in isEmptyTy() 230 return cast<StructType>(this)->isSized(Visited); in isSizedDerivedType() 373 StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes, in get() 378 StructType *ST; in get() 388 ST = new (Context.pImpl->Alloc) StructType(Context); in get() 400 bool StructType::containsScalableVectorType( in containsScalableVectorType() 408 if (Visited && !Visited->insert(const_cast<StructType *>(this)).second) in containsScalableVectorType() 413 const_cast<StructType *>(this)->setSubclassData( in containsScalableVectorType() 417 if (auto *STy = dyn_cast<StructType>(Ty)) { in containsScalableVectorType() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Linker/ |
H A D | IRMover.cpp | 51 SmallVector<StructType *, 16> SpeculativeDstOpaqueTypes; 55 SmallVector<StructType *, 16> SrcDefinitionsToResolve; 59 SmallPtrSet<StructType *, 16> DstResolvedOpaqueTypes; 77 Type *get(Type *SrcTy, SmallPtrSet<StructType *, 8> &Visited); 79 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes); 106 for (StructType *Ty : SpeculativeDstOpaqueTypes) in addTypeMapping() 116 if (auto *STy = dyn_cast<StructType>(Ty)) in addTypeMapping() 146 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) { in areTypesIsomorphic() 158 if (cast<StructType>(DstTy)->isOpaque()) { in areTypesIsomorphic() 160 if (!DstResolvedOpaqueTypes.insert(cast<StructType>(DstTy)).second) in areTypesIsomorphic() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DerivedTypes.h | 216 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); 243 static StructType *create(ArrayRef<Type *> Elements, StringRef Name, 245 static StructType *create(ArrayRef<Type *> Elements); 246 static StructType *create(LLVMContext &Context, ArrayRef<Type *> Elements, 248 static StructType *create(LLVMContext &Context, ArrayRef<Type *> Elements); [all …]
|
H A D | GetElementPtrTypeIterator.h | 58 // 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 D | TypeFinder.h | 25 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 D | GVMaterializer.h | 26 class StructType; variable 46 virtual std::vector<StructType *> getIdentifiedStructTypes() const = 0;
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGRecordLayout.h | 19 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 D | CodeGenTypes.h | 27 class StructType; variable 71 llvm::DenseMap<const Type*, llvm::StructType *> RecordDeclTypes; 283 llvm::StructType *Ty); 287 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty, 293 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
|
H A D | CodeGenTypes.cpp | 52 llvm::StructType *Ty, in addRecordTypeName() 180 llvm::DenseMap<const Type*, llvm::StructType *>::const_iterator I = in isRecordLayoutComplete() 314 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal() 334 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal() 579 return llvm::StructType::get(getLLVMContext(), EltTys); in ConvertType() 611 ResultType = llvm::StructType::get(EltTy, EltTy); in ConvertType() 699 T = llvm::StructType::create(getLLVMContext()); in ConvertType() 738 Insertion.first->second = llvm::StructType::create(getLLVMContext()); in ConvertType() 760 llvm::StructType::get(getLLVMContext(), llvm::ArrayRef(elts)); in ConvertType() 792 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { in ConvertRecordDeclType() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | DXILOpBuilder.cpp | 113 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() 323 auto *ST = cast<StructType>(OverloadType); in getOverloadTy()
|
H A D | CBufferDataLayout.cpp | 25 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/ |
H A D | Target.cpp | 130 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset() 136 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ShadowStackGCLowering.cpp | 61 StructType *StackEntryTy = nullptr; 62 StructType *FrameMapTy = nullptr; 176 StructType *STy = StructType::create(EltTys, "gc_map." + utostr(NumMeta)); in doInitialization() 210 return StructType::create(EltTys, ("gc_stackentry." + F.getName()).str()); in doInitialization() 236 FrameMapTy = StructType::create(EltTys, "gc_map"); in CollectRoots() 245 StackEntryTy = StructType::create(M.getContext(), "gc_stackentry"); in CollectRoots()
|
H A D | Analysis.cpp | 42 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() 146 if (StructType *STy = dyn_cast<StructType>(&Ty)) { in computeValueLLTs() 425 return Idx < cast<StructType>(T)->getNumElements(); in indexReallyValid()
|
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/ |
H A D | Utility.cpp | 19 StructType *offloading::getEntryTy(Module &M) { in getEntryTy() 21 StructType *EntryTy = in getEntryTy() 22 StructType::getTypeByName(C, "struct.__tgt_offload_entry"); in getEntryTy() 24 EntryTy = StructType::create( in getEntryTy()
|
H A D | OffloadWrapper.cpp | 41 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/llvm/lib/Target/NVPTX/ |
H A D | NVPTXLowerArgs.cpp | 330 Type *StructType = Arg->getParamByValType(); in adjustByValArgAlignment() local 334 TLI->getFunctionParamOptimizedAlign(Func, StructType, DL).value(); in adjustByValArgAlignment() 417 Type *StructType = Arg->getParamByValType(); in handleByValParam() local 418 assert(StructType && "Missing byval type"); in handleByValParam() 462 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam() 505 new AllocaInst(StructType, AS, Arg->getName(), FirstInst); in handleByValParam() 510 .value_or(DL.getPrefTypeAlign(StructType))); in handleByValParam() 520 new LoadInst(StructType, ArgInParam, Arg->getName(), in handleByValParam()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | SanitizerStats.h | 46 StructType *EmptyModuleStatsTy; 50 StructType *makeModuleStatsTy();
|
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/ |
H A D | CGFunctionInfo.h | 250 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() 615 llvm::StructType *ArgStruct; 747 llvm::StructType *getArgStruct() const { return ArgStruct; } in getArgStruct() 751 void setArgStruct(llvm::StructType *Ty, CharUnits Align) { in setArgStruct()
|
H A D | ConstantInitBuilder.h | 331 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()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | Sparc.cpp | 178 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 D | Mips.cpp | 133 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/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUOpenCLEnqueuedBlockLowering.cpp | 81 StructType *HandleTy = nullptr; in runOnModule() 96 StructType::create(C, {PointerType::getUnqual(C), Int32, Int32}, in runOnModule()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | PGOCtxProfLowering.cpp | 115 StructType::get(M.getContext(), { in CtxInstrumentationLowerer() 122 ContextNodeTy = StructType::get(M.getContext(), { in CtxInstrumentationLowerer() 214 StructType *ThisContextType = nullptr; in lowerFunction() 231 ThisContextType = StructType::get( in lowerFunction()
|