Home
last modified time | relevance | path

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

12345678

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Linker/
H A DIRMover.h21 class StructType; variable
31 KeyTy(const StructType *ST);
35 static StructType *getEmptyKey();
36 static StructType *getTombstoneKey();
38 static unsigned getHashValue(const StructType *ST);
39 static bool isEqual(const KeyTy &LHS, const StructType *RHS);
40 static bool isEqual(const StructType *LHS, const StructType *RHS);
49 DenseSet<StructType *> OpaqueStructTypes;
52 DenseSet<StructType *, StructTypeKeyInfo> NonOpaqueStructTypes;
55 void addNonOpaque(StructType *Ty);
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DType.cpp111 if (auto *STy = dyn_cast<StructType>(this)) { in isEmptyTy()
173 return cast<StructType>(this)->isSized(Visited); in isSizedDerivedType()
366 StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes, in get()
371 StructType *ST; in get()
381 ST = new (Context.pImpl->Alloc) StructType(Context); in get()
393 bool StructType::containsScalableVectorType() const { in containsScalableVectorType()
397 if (auto *STy = dyn_cast<StructType>(Ty)) in containsScalableVectorType()
405 void StructType::setBody(ArrayRef<Type*> Elements, bool isPacked) { in setBody()
422 void StructType::setName(StringRef Name) { in setName()
425 StringMap<StructType *> &SymbolTable = getContext().pImpl->NamedStructTypes; in setName()
[all …]
H A DOperator.cpp44 if (StructType *STy = GTI.getStructTypeOrNull()) { in getMaxPreservedAlignment()
105 StructType *STy = GTI.getStructTypeOrNull(); in accumulateConstantOffset()
165 StructType *STy = GTI.getStructTypeOrNull(); in collectOffset()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Linker/
H A DIRMover.cpp40 SmallVector<StructType *, 16> SpeculativeDstOpaqueTypes;
44 SmallVector<StructType *, 16> SrcDefinitionsToResolve;
48 SmallPtrSet<StructType *, 16> DstResolvedOpaqueTypes;
66 Type *get(Type *SrcTy, SmallPtrSet<StructType *, 8> &Visited);
68 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes);
95 for (StructType *Ty : SpeculativeDstOpaqueTypes) in addTypeMapping()
105 if (auto *STy = dyn_cast<StructType>(Ty)) in addTypeMapping()
135 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) { in areTypesIsomorphic()
147 if (cast<StructType>(DstTy)->isOpaque()) { in areTypesIsomorphic()
149 if (!DstResolvedOpaqueTypes.insert(cast<StructType>(DstTy)).second) in areTypesIsomorphic()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DDerivedTypes.h212 class StructType : public Type {
213 StructType(LLVMContext &C) : Type(C, StructTyID) {} in StructType() function
230 StructType(const StructType &) = delete;
231 StructType &operator=(const StructType &) = delete;
234 static StructType *create(LLVMContext &Context, StringRef Name);
235 static StructType *create(LLVMContext &Context);
237 static StructType *create(ArrayRef<Type *> Elements, StringRef Name,
239 static StructType *create(ArrayRef<Type *> Elements);
240 static StructType *create(LLVMContext &Context, ArrayRef<Type *> Elements,
242 static StructType *create(LLVMContext &Context, ArrayRef<Type *> Elements);
[all …]
H A DGetElementPtrTypeIterator.h34 PointerUnion<StructType *, Type *> CurTy;
75 return CurTy.get<StructType *>()->getTypeAtIndex(getOperand()); in getIndexedType()
92 CurTy = dyn_cast<StructType>(Ty);
118 bool isStruct() const { return CurTy.is<StructType *>(); } in isStruct()
121 StructType *getStructType() const { return CurTy.get<StructType *>(); } in getStructType()
123 StructType *getStructTypeOrNull() const { in getStructTypeOrNull()
124 return CurTy.dyn_cast<StructType *>(); in getStructTypeOrNull()
H A DTypeFinder.h24 class StructType; variable
37 std::vector<StructType*> StructTypes;
46 using iterator = std::vector<StructType*>::iterator;
47 using const_iterator = std::vector<StructType*>::const_iterator;
59 StructType *&operator[](unsigned Idx) { return StructTypes[Idx]; }
H A DGVMaterializer.h26 class StructType; variable
46 virtual std::vector<StructType *> getIdentifiedStructTypes() const = 0;
/netbsd-src/external/apache2/llvm/dist/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 DCGOpenCLRuntime.cpp47 llvm::StructType::create(Ctx, "opencl." #ImgType "_" #Suffix "_t"), \ in convertOpenCLSpecificType()
54 llvm::StructType::create(Ctx, "opencl.event_t"), AddrSpc); in convertOpenCLSpecificType()
57 llvm::StructType::create(Ctx, "opencl.clk_event_t"), AddrSpc); in convertOpenCLSpecificType()
60 llvm::StructType::create(Ctx, "opencl.queue_t"), AddrSpc); in convertOpenCLSpecificType()
63 llvm::StructType::create(Ctx, "opencl.reserve_id_t"), AddrSpc); in convertOpenCLSpecificType()
67 llvm::StructType::create(Ctx, "opencl." #ExtType), AddrSpc); in convertOpenCLSpecificType()
82 PipeTy = llvm::PointerType::get(llvm::StructType::create( in getPipeType()
91 SamplerTy = llvm::PointerType::get(llvm::StructType::create( in getSamplerType()
H A DCodeGenTypes.cpp49 llvm::StructType *Ty, in addRecordTypeName()
114 llvm::DenseMap<const Type*, llvm::StructType *>::const_iterator I = in isRecordLayoutComplete()
347 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
355 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
375 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertFunctionTypeInternal()
627 ResultType = llvm::StructType::get(EltTy, EltTy); in ConvertType()
719 T = llvm::StructType::create(getLLVMContext()); in ConvertType()
759 ResultType = llvm::StructType::create(getLLVMContext()); in ConvertType()
779 ResultType = llvm::StructType::get(getLLVMContext(), in ConvertType()
810 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { in ConvertRecordDeclType()
[all …]
H A DCodeGenTypes.h27 class StructType; variable
81 llvm::DenseMap<const Type*, llvm::StructType *> RecordDeclTypes;
276 llvm::StructType *Ty);
280 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
286 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
H A DCGObjCMac.cpp109 llvm::StructType::get(longDoubleType, longDoubleType); in getMessageSendFp2retFn()
213 llvm::StructType *SuperTy;
219 llvm::StructType *PropertyTy;
223 llvm::StructType *PropertyListTy;
228 llvm::StructType *MethodTy;
501 llvm::StructType *SymtabTy;
505 llvm::StructType *ModuleTy;
508 llvm::StructType *ProtocolTy;
513 llvm::StructType *ProtocolExtensionTy;
519 llvm::StructType *MethodDescriptionTy;
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/tools/clang-offload-wrapper/
H A DClangOffloadWrapper.cpp69 StructType *EntryTy = nullptr;
70 StructType *ImageTy = nullptr;
71 StructType *DescTy = nullptr;
91 StructType *getEntryTy() { in getEntryTy()
93 EntryTy = StructType::create("__tgt_offload_entry", Type::getInt8PtrTy(C), in getEntryTy()
107 StructType *getDeviceImageTy() { in getDeviceImageTy()
109 ImageTy = StructType::create("__tgt_device_image", Type::getInt8PtrTy(C), in getDeviceImageTy()
125 StructType *getBinDescTy() { in getBinDescTy()
127 DescTy = StructType::create("__tgt_bin_desc", Type::getInt32Ty(C), in getBinDescTy()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp235 Type *StructType = PType->getElementType(); in handleByValParam() local
269 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam()
281 AllocaInst *AllocA = new AllocaInst(StructType, AS, Arg->getName(), FirstInst); in handleByValParam()
286 .getValueOr(DL.getPrefTypeAlign(StructType))); in handleByValParam()
290 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam()
296 new LoadInst(StructType, ArgInParam, Arg->getName(), in handleByValParam()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DShadowStackGCLowering.cpp59 StructType *StackEntryTy = nullptr;
60 StructType *FrameMapTy = nullptr;
133 StructType *STy = StructType::create(EltTys, "gc_map." + utostr(NumMeta)); in GetFrameMap()
167 return StructType::create(EltTys, ("gc_stackentry." + F.getName()).str()); in GetConcreteStackEntryType()
193 FrameMapTy = StructType::create(EltTys, "gc_map"); in doInitialization()
202 StackEntryTy = StructType::create(M.getContext(), "gc_stackentry"); in doInitialization()
H A DAnalysis.cpp45 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()
137 if (StructType *STy = dyn_cast<StructType>(&Ty)) { in computeValueLLTs()
391 return Idx < cast<StructType>(T)->getNumElements(); in indexReallyValid()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/
H A DTarget.cpp134 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
140 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp144 StructType *STy = cast<StructType>(AgTy); in doPromotion()
265 StructType *STy = cast<StructType>(AgTy); in doPromotion()
395 StructType *STy = cast<StructType>(AgTy); in doPromotion()
785 if (!isa<StructType>(type)) in isDenselyPacked()
789 StructType *StructTy = cast<StructType>(type); in isDenselyPacked()
954 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in promoteArguments()
986 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in promoteArguments()
/netbsd-src/external/apache2/llvm/dist/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()
593 llvm::StructType *ArgStruct;
725 llvm::StructType *getArgStruct() const { return ArgStruct; } in getArgStruct()
729 void setArgStruct(llvm::StructType *Ty, CharUnits Align) { in setArgStruct()
H A DConstantInitBuilder.h328 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()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DSanitizerStats.h46 StructType *EmptyModuleStatsTy;
50 StructType *makeModuleStatsTy();
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp198 assert(i < cast<StructType>(V->getType())->getNumElements() && in getStructValueState()
368 if (auto *STy = dyn_cast<StructType>(F->getReturnType())) { in addTrackedFunction()
405 auto *STy = dyn_cast<StructType>(V->getType()); in getStructLatticeValueFor()
440 if (auto *STy = dyn_cast<StructType>(V->getType())) in markOverdefined()
447 bool isStructLatticeConstant(Function *F, StructType *STy);
495 bool SCCPInstVisitor::isStructLatticeConstant(Function *F, StructType *STy) { in isStructLatticeConstant()
748 if (auto *STy = dyn_cast<StructType>(ResultOp->getType())) in visitReturnInst()
830 auto *STy = dyn_cast<StructType>(IVI.getType()); in visitInsertValueInst()
1206 if (auto *STy = dyn_cast<StructType>(AI->getType())) { in handleCallArguments()
1330 if (auto *STy = dyn_cast<StructType>(F->getReturnType())) { in handleCallResult()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.cpp251 if (StructType *ST = dyn_cast<StructType>(GType)) { in isGlobalInSmallSection()
299 const StructType *STy = cast<const StructType>(Ty); in getSmallestAddressableSize()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPURewriteOutArguments.cpp338 StructType *NewRetTy = StructType::create(Ctx, ReturnTypes, F.getName()); in runOnFunction()
385 if (StructType *CT = dyn_cast<StructType>(EltTy)) { in runOnFunction()

12345678