| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | Type.cpp | 152 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 D | Operator.cpp | 76 if (StructType *STy = GTI.getStructTypeOrNull()) { in getMaxPreservedAlignment() 135 StructType *STy = GTI.getStructTypeOrNull(); in accumulateConstantOffset() 195 StructType *STy = GTI.getStructTypeOrNull(); in collectOffset()
|
| H A D | DataLayout.cpp | 48 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 D | GetElementPtrTypeIterator.h | 34 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 D | DerivedTypes.h | 213 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 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;
|
| /openbsd-src/gnu/llvm/llvm/lib/Linker/ |
| H A D | IRMover.cpp | 50 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 D | CGRecordLayout.h | 19 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 D | CodeGenTypes.h | 27 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 D | CodeGenTypes.cpp | 50 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 D | CGHLSLRuntime.h | 32 class StructType; variable 67 llvm::StructType *LayoutStruct = nullptr;
|
| H A D | CGOpenCLRuntime.cpp | 72 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 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() 314 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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXLowerArgs.cpp | 238 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 D | OffloadWrapper.cpp | 59 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 D | Target.cpp | 134 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset() 140 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | ShadowStackGCLowering.cpp | 59 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 D | Analysis.cpp | 42 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 D | SanitizerStats.h | 46 StructType *EmptyModuleStatsTy; 50 StructType *makeModuleStatsTy();
|
| /openbsd-src/gnu/llvm/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() 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 D | ConstantInitBuilder.h | 328 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 D | AMDGPUOpenCLEnqueuedBlockLowering.cpp | 106 StructType *HandleTy = nullptr; in runOnModule() 120 HandleTy = StructType::create( in runOnModule()
|