Home
last modified time | relevance | path

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

1234567

/freebsd-12.1/contrib/llvm/include/llvm/Linker/
H A DIRMover.h22 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-12.1/contrib/llvm/lib/IR/
H A DType.cpp342 StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes, in get()
347 StructType *ST; in get()
437 StructType *StructType::create(LLVMContext &Context, StringRef Name) { in create()
438 StructType *ST = new (Context.pImpl->TypeAllocator) StructType(Context); in create()
444 StructType *StructType::get(LLVMContext &Context, bool isPacked) { in get()
448 StructType *StructType::create(LLVMContext &Context, ArrayRef<Type*> Elements, in create()
455 StructType *StructType::create(LLVMContext &Context, ArrayRef<Type*> Elements) { in create()
459 StructType *StructType::create(LLVMContext &Context) { in create()
463 StructType *StructType::create(ArrayRef<Type*> Elements, StringRef Name, in create()
470 StructType *StructType::create(ArrayRef<Type*> Elements) { in create()
[all …]
H A DDataLayout.cpp46 StructLayout::StructLayout(StructType *ST, const DataLayout &DL) { in StructLayout()
556 using LayoutInfoTy = DenseMap<StructType*, StructLayout*>;
569 StructLayout *&operator[](StructType *STy) { in operator []()
588 const StructLayout *DataLayout::getStructLayout(StructType *Ty) const { in getStructLayout()
698 if (cast<StructType>(Ty)->isPacked() && abi_or_pref) in getAlignment()
702 const StructLayout *Layout = getStructLayout(cast<StructType>(Ty)); in getAlignment()
796 if (StructType *STy = GTI.getStructTypeOrNull()) { in getIndexedOffsetInType()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DDerivedTypes.h201 class StructType : public CompositeType {
219 StructType(const StructType &) = delete;
220 StructType &operator=(const StructType &) = delete;
224 static StructType *create(LLVMContext &Context);
234 StructType *>::type
253 StructType *>::type
258 return llvm::StructType::get(Ctx, StructFields); in get()
310 bool isLayoutIdentical(StructType *Other) const;
326 return cast<StructType>(this)->getName(); in getStructName()
330 return cast<StructType>(this)->getNumElements(); in getStructNumElements()
[all …]
H A DGetElementPtrTypeIterator.h37 PointerUnion<StructType *, Type *> CurTy;
72 return CurTy.get<StructType *>()->getTypeAtIndex(getOperand()); in getIndexedType()
83 CurTy = dyn_cast<StructType>(Ty);
107 bool isStruct() const { return CurTy.is<StructType *>(); } in isStruct()
110 StructType *getStructType() const { return CurTy.get<StructType *>(); } in getStructType()
112 StructType *getStructTypeOrNull() const { in getStructTypeOrNull()
113 return CurTy.dyn_cast<StructType *>(); in getStructTypeOrNull()
H A DTypeFinder.h25 class StructType; variable
38 std::vector<StructType*> StructTypes;
47 using iterator = std::vector<StructType*>::iterator;
48 using const_iterator = std::vector<StructType*>::const_iterator;
60 StructType *&operator[](unsigned Idx) { return StructTypes[Idx]; }
H A DGVMaterializer.h27 class StructType; variable
47 virtual std::vector<StructType *> getIdentifiedStructTypes() const = 0;
H A DConstants.h49 class StructType; variable
450 ConstantStruct(StructType *T, ArrayRef<Constant *> Val);
457 static Constant *get(StructType *T, ArrayRef<Constant*> V);
462 get(StructType *T, Csts *... Vs) {
479 static StructType *getTypeForElements(ArrayRef<Constant*> V,
482 static StructType *getTypeForElements(LLVMContext &Ctx,
487 inline StructType *getType() const {
488 return cast<StructType>(Value::getType());
922 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo);
/freebsd-12.1/contrib/llvm/lib/Linker/
H A DIRMover.cpp68 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes);
135 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) { in areTypesIsomorphic()
172 } else if (StructType *DSTy = dyn_cast<StructType>(DstTy)) { in areTypesIsomorphic()
173 StructType *SSTy = cast<StructType>(SrcTy); in areTypesIsomorphic()
200 StructType *DstSTy = cast<StructType>(MappedTypes[SrcSTy]); in linkDefinedTypeBodies()
215 void TypeMapTy::finishType(StructType *DTy, StructType *STy, in finishType()
241 bool IsUniqued = !isa<StructType>(Ty) || cast<StructType>(Ty)->isLiteral(); in get()
244 StructType *STy = cast<StructType>(Ty); in get()
261 StructType *DTy = StructType::create(Ty->getContext()); in get()
340 StructType *DTy = StructType::create(Ty->getContext()); in get()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGRecordLayout.h20 class StructType; variable
118 llvm::StructType *CompleteObjectType;
122 llvm::StructType *BaseSubobjectType;
150 CGRecordLayout(llvm::StructType *CompleteObjectType, in CGRecordLayout()
151 llvm::StructType *BaseSubobjectType, in CGRecordLayout()
161 llvm::StructType *getLLVMType() const { in getLLVMType()
167 llvm::StructType *getBaseSubobjectLLVMType() const { in getBaseSubobjectLLVMType()
H A DCGOpenCLRuntime.cpp48 llvm::StructType::create(Ctx, "opencl." #ImgType "_" #Suffix "_t"), \ in convertOpenCLSpecificType()
55 llvm::StructType::create(Ctx, "opencl.event_t"), AddrSpc); in convertOpenCLSpecificType()
58 llvm::StructType::create(Ctx, "opencl.clk_event_t"), AddrSpc); in convertOpenCLSpecificType()
61 llvm::StructType::create(Ctx, "opencl.queue_t"), AddrSpc); in convertOpenCLSpecificType()
64 llvm::StructType::create(Ctx, "opencl.reserve_id_t"), AddrSpc); in convertOpenCLSpecificType()
68 llvm::StructType::create(Ctx, "opencl." #ExtType), AddrSpc); in convertOpenCLSpecificType()
83 PipeTy = llvm::PointerType::get(llvm::StructType::create( in getPipeType()
92 SamplerTy = llvm::PointerType::get(llvm::StructType::create( in getSamplerType()
H A DCodeGenTypes.cpp52 llvm::StructType *Ty, in addRecordTypeName()
335 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionType()
343 return llvm::StructType::get(getLLVMContext()); in ConvertFunctionType()
363 ResultType = llvm::StructType::get(getLLVMContext()); in ConvertFunctionType()
531 ResultType = llvm::StructType::get(EltTy, EltTy); in ConvertType()
612 T = llvm::StructType::create(getLLVMContext()); in ConvertType()
650 ResultType = llvm::StructType::create(getLLVMContext()); in ConvertType()
670 ResultType = llvm::StructType::get(getLLVMContext(), in ConvertType()
701 llvm::StructType *&Entry = RecordDeclTypes[Key]; in ConvertRecordDeclType()
705 Entry = llvm::StructType::create(getLLVMContext()); in ConvertRecordDeclType()
[all …]
H A DCodeGenTypes.h28 class StructType; variable
141 llvm::DenseMap<const Type*, llvm::StructType *> RecordDeclTypes;
339 llvm::StructType *Ty);
343 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
349 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
H A DCGObjCMac.cpp214 llvm::StructType *SuperTy;
220 llvm::StructType *PropertyTy;
229 llvm::StructType *MethodTy;
502 llvm::StructType *SymtabTy;
506 llvm::StructType *ModuleTy;
509 llvm::StructType *ProtocolTy;
532 llvm::StructType *CategoryTy;
534 llvm::StructType *ClassTy;
542 llvm::StructType *IvarTy;
544 llvm::StructType *IvarListTy;
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/
H A DEfficiencySanitizer.cpp161 bool shouldIgnoreStructType(StructType *StructTy);
165 Module &M, const DataLayout &DL, StructType *StructTy,
177 unsigned getFieldCounterIdx(StructType *StructTy) { in getFieldCounterIdx()
180 unsigned getArrayCounterIdx(StructType *StructTy) { in getArrayCounterIdx()
183 unsigned getStructCounterSize(StructType *StructTy) { in getStructCounterSize()
322 Module &M, const DataLayout &DL, StructType *StructTy, in createCacheFragAuxGV()
740 StructType *StructTy = nullptr; in instrumentGetElementPtr()
743 if (isa<StructType>(SourceTy)) { in instrumentGetElementPtr()
744 StructTy = cast<StructType>(SourceTy); in instrumentGetElementPtr()
764 } else if (isa<StructType>(Ty)) { in instrumentGetElementPtr()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/
H A DTarget.cpp133 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
139 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DShadowStackGCLowering.cpp57 StructType *StackEntryTy = nullptr;
58 StructType *FrameMapTy = nullptr;
129 StructType *STy = StructType::create(EltTys, "gc_map." + utostr(NumMeta)); in GetFrameMap()
163 return StructType::create(EltTys, ("gc_stackentry." + F.getName()).str()); in GetConcreteStackEntryType()
189 FrameMapTy = StructType::create(EltTys, "gc_map"); in doInitialization()
198 StackEntryTy = StructType::create(M.getContext(), "gc_stackentry"); in doInitialization()
H A DAnalysis.cpp45 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeLinearIndex()
46 for (StructType::element_iterator EB = STy->element_begin(), in ComputeLinearIndex()
89 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeValueVTs()
91 for (StructType::element_iterator EB = STy->element_begin(), in ComputeValueVTs()
361 return Idx < cast<StructType>(T)->getNumElements(); in indexReallyValid()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/CodeGen/
H A DCGFunctionInfo.h215 static ABIArgInfo getCoerceAndExpand(llvm::StructType *coerceToType, in getCoerceAndExpand()
221 auto unpaddedStruct = dyn_cast<llvm::StructType>(unpaddedCoerceToType); in getCoerceAndExpand()
313 llvm::StructType *getCoerceAndExpandType() const { in getCoerceAndExpandType()
315 return cast<llvm::StructType>(TypeData); in getCoerceAndExpandType()
326 dyn_cast<llvm::StructType>(UnpaddedCoerceAndExpandType)) { in getCoerceAndExpandTypeSequence()
537 llvm::StructType *ArgStruct;
667 llvm::StructType *getArgStruct() const { return ArgStruct; } in getArgStruct()
671 void setArgStruct(llvm::StructType *Ty, CharUnits Align) { in setArgStruct()
H A DConstantInitBuilder.h314 llvm::Constant *finishStruct(llvm::StructType *structTy);
348 StructBuilder beginStruct(llvm::StructType *ty = nullptr) {
446 llvm::StructType *StructTy;
454 llvm::StructType *structTy) in ConstantStructBuilderTemplateBase()
466 void suggestType(llvm::StructType *structTy) { in suggestType()
500 StructBuilder beginStruct(llvm::StructType *structTy = nullptr) {
554 llvm::StructType *structTy) in ConstantStructBuilder()
/freebsd-12.1/contrib/llvm/include/llvm/Transforms/Utils/
H A DSanitizerStats.h47 StructType *EmptyModuleStatsTy;
51 StructType *makeModuleStatsTy();
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp143 StructType *STy = cast<StructType>(AgTy); in doPromotion()
259 StructType *STy = cast<StructType>(AgTy); in doPromotion()
388 StructType *STy = cast<StructType>(AgTy); in doPromotion()
762 StructType *StructTy = cast<StructType>(type); in isDenselyPacked()
920 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in promoteArguments()
952 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in promoteArguments()
/freebsd-12.1/contrib/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp161 Type *StructType = PType->getElementType(); in handleByValParam() local
163 AllocaInst *AllocA = new AllocaInst(StructType, AS, Arg->getName(), FirstInst); in handleByValParam()
171 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp31 StructType *EltTy; in appendToGlobalArray()
34 StructType *OldEltTy = cast<StructType>(ATy->getElementType()); in appendToGlobalArray()
37 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), in appendToGlobalArray()
57 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), in appendToGlobalArray()
/freebsd-12.1/contrib/llvm/lib/Transforms/Coroutines/
H A DCoroEarly.cpp72 StructType::get(Context, {AnyResumeFnPtrTy, AnyResumeFnPtrTy, Int8Ty}); in lowerCoroPromise()
114 StructType *FrameTy = StructType::create(C, "NoopCoro.Frame"); in lowerCoroNoop()

1234567