/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); 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 D | Type.cpp | 373 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 D | Operator.cpp | 82 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 D | IRMover.cpp | 78 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 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); 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 D | GetElementPtrTypeIterator.h | 66 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 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 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; 266 llvm::StructType *Ty); 270 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty, 276 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
|
H A D | CodeGenTypes.cpp | 51 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 D | CGHLSLRuntime.h | 32 class StructType; variable 67 llvm::StructType *LayoutStruct = nullptr;
|
/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() 315 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/NVPTX/ |
H A D | NVPTXLowerArgs.cpp | 241 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 D | Target.cpp | 129 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 D | Utility.cpp | 18 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 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() 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 D | SanitizerStats.h | 46 StructType *EmptyModuleStatsTy; 50 StructType *makeModuleStatsTy();
|
/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 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 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/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() 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 D | ConstantInitBuilder.h | 323 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 D | AMDGPUOpenCLEnqueuedBlockLowering.cpp | 81 StructType *HandleTy = nullptr; in runOnModule() 96 StructType::create(C, {PointerType::getUnqual(C), Int32, Int32}, in runOnModule()
|