Home
last modified time | relevance | path

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

12345678910

/llvm-project-15.0.7/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 …]
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVTypes.cpp116 .Case<StructType>( in getElementType()
151 StructType>( in getExtensions()
165 StructType>( in getCapabilities()
960 StructType
974 StructType StructType::getIdentified(MLIRContext *context, in getIdentified()
984 StructType StructType::getEmpty(MLIRContext *context, StringRef identifier) { in getEmpty()
993 return StructType(); in getEmpty()
1009 StructType::ElementTypeRange StructType::getElementTypes() const { in getElementTypes()
1021 void StructType::getMemberDecorations( in getMemberDecorations()
1030 void StructType::getMemberDecorations( in getMemberDecorations()
[all …]
H A DSPIRVDialect.cpp569 SmallVectorImpl<StructType::OffsetInfo> &offsetInfo, in parseStructMemberDecorations()
574 StructType::OffsetInfo offset = 0; in parseStructMemberDecorations()
671 return StructType::getIdentified(dialect.getContext(), identifier); in parseStructType()
695 return StructType::getEmpty(dialect.getContext(), identifier); in parseStructType()
698 StructType idStructTy; in parseStructType()
704 SmallVector<StructType::OffsetInfo, 4> offsetInfo; in parseStructType()
705 SmallVector<StructType::MemberDecorationInfo, 4> memberDecorationInfo; in parseStructType()
737 return StructType::get(memberTypes, offsetInfo, memberDecorationInfo); in parseStructType()
808 static void print(StructType type, DialectAsmPrinter &os) { in print()
829 SmallVector<spirv::StructType::MemberDecorationInfo, 0> decorations; in print()
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DType.cpp406 StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes, in get()
411 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()
594 bool StructType::isLayoutIdentical(StructType *Other) const { in isLayoutIdentical()
[all …]
/llvm-project-15.0.7/llvm/unittests/IR/
H A DTypesTest.cpp16 TEST(TypesTest, StructType) { in TEST() argument
20 StructType *Struct = StructType::create(C, "FooBar"); in TEST()
32 StructType *Foo = StructType::create(C, "Foo"); in TEST()
33 StructType *Bar = StructType::create(C, "Bar"); in TEST()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Utils/
H A DLayoutUtils.cpp20 spirv::StructType
21 VulkanLayoutUtils::decorateType(spirv::StructType structType) { in decorateType()
27 spirv::StructType
28 VulkanLayoutUtils::decorateType(spirv::StructType structType, in decorateType()
36 SmallVector<spirv::StructType::OffsetInfo, 4> offsetInfo; in decorateType()
37 SmallVector<spirv::StructType::MemberDecorationInfo, 4> memberDecorations; in decorateType()
51 static_cast<spirv::StructType::OffsetInfo>(structMemberOffset)); in decorateType()
73 return spirv::StructType::get(memberTypes, offsetInfo, memberDecorations); in decorateType()
88 if (auto structType = type.dyn_cast<spirv::StructType>()) in decorateType()
166 auto structType = ptrType.getPointeeType().dyn_cast<spirv::StructType>(); in isLegalType()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DGetElementPtrTypeIterator.h34 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 DDerivedTypes.h213 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);
240 static StructType *create(ArrayRef<Type *> Elements);
324 bool isLayoutIdentical(StructType *Other) const;
345 return cast<StructType>(this)->getName(); in getStructName()
349 return cast<StructType>(this)->getNumElements(); in getStructNumElements()
[all …]
H A DTypeFinder.h25 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]; }
/llvm-project-15.0.7/llvm/lib/Linker/
H A DIRMover.cpp75 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes);
142 if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) { in areTypesIsomorphic()
179 } else if (StructType *DSTy = dyn_cast<StructType>(DstTy)) { in areTypesIsomorphic()
180 StructType *SSTy = cast<StructType>(SrcTy); in areTypesIsomorphic()
209 StructType *DstSTy = cast<StructType>(MappedTypes[SrcSTy]); in linkDefinedTypeBodies()
224 void TypeMapTy::finishType(StructType *DTy, StructType *STy, in finishType()
250 bool IsUniqued = !isa<StructType>(Ty) || cast<StructType>(Ty)->isLiteral(); in get()
261 StructType *DTy = StructType::create(Ty->getContext()); in get()
330 if (StructType *OldT = in get()
341 StructType *DTy = StructType::create(Ty->getContext()); in get()
[all …]
/llvm-project-15.0.7/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 DCodeGenTypes.h27 class StructType; variable
76 llvm::DenseMap<const Type*, llvm::StructType *> RecordDeclTypes;
272 llvm::StructType *Ty);
276 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
282 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/Utils/
H A DLayoutUtils.h26 class StructType; variable
54 static spirv::StructType decorateType(spirv::StructType structType);
71 static spirv::StructType decorateType(spirv::StructType structType,
/llvm-project-15.0.7/llvm/lib/Target/DirectX/
H A DDXILOpBuilder.cpp113 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()
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DLoopGeneratorsKMP.cpp38 StructType *IdentTy = in createCallSpawnThreads()
39 StructType::getTypeByName(M->getContext(), "struct.ident_t"); in createCallSpawnThreads()
323 StructType *IdentTy = in createCallGlobalThreadNum()
345 StructType *IdentTy = in createCallPushNumThreads()
370 StructType *IdentTy = in createCallStaticInit()
371 StructType::getTypeByName(M->getContext(), "struct.ident_t"); in createCallStaticInit()
411 StructType *IdentTy = in createCallStaticFini()
435 StructType *IdentTy = in createCallDispatchInit()
477 StructType *IdentTy = in createCallDispatchNext()
511 StructType *IdentTy = in createSourceLocation()
[all …]
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DDialect.cpp218 auto resultType = type.cast<StructType>(); in verifyConstantForType()
424 StructType structTy = input.getType().cast<StructType>(); in build()
433 StructType structTy = getInput().getType().cast<StructType>(); in verify()
540 StructType StructType::get(llvm::ArrayRef<mlir::Type> elementTypes) { in get()
551 llvm::ArrayRef<mlir::Type> StructType::getElementTypes() { in getElementTypes()
580 if (!elementType.isa<mlir::TensorType, StructType>()) { in parseType()
594 return StructType::get(elementTypes); in parseType()
601 StructType structType = type.cast<StructType>(); in printType()
628 addTypes<StructType>(); in initialize()
635 if (type.isa<StructType>()) in materializeConstant()
/llvm-project-15.0.7/mlir/docs/Tutorials/Toy/
H A DCh-7.md114 /// itself, see the `StructType::get` method further below.
151 class StructType : public mlir::Type::TypeBase<StructType, mlir::Type,
185 addTypes<StructType>();
204 // to demarcate the StructType as belonging to the Toy dialect.
242 `StructType` as having the following form:
277 if (!elementType.isa<mlir::TensorType, StructType>()) {
291 return StructType::get(elementTypes);
304 StructType structType = type.cast<StructType>();
336 ### Operating on `StructType`
428 #### Optimizing Operations on `StructType` argument
[all …]
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp237 Type *StructType = Arg->getParamByValType(); in adjustByValArgAlignment() local
241 TLI->getFunctionParamOptimizedAlign(Func, StructType, DL).value(); in adjustByValArgAlignment()
315 Type *StructType = Arg->getParamByValType(); in handleByValParam() local
316 assert(StructType && "Missing byval type"); in handleByValParam()
350 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam()
371 AllocaInst *AllocA = new AllocaInst(StructType, AS, Arg->getName(), FirstInst); in handleByValParam()
376 .value_or(DL.getPrefTypeAlign(StructType))); in handleByValParam()
380 Arg, PointerType::get(StructType, ADDRESS_SPACE_PARAM), Arg->getName(), in handleByValParam()
386 new LoadInst(StructType, ArgInParam, Arg->getName(), in handleByValParam()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/include/toy/
H A DDialect.h59 class StructType : public mlir::Type::TypeBase<StructType, mlir::Type,
67 static StructType get(llvm::ArrayRef<mlir::Type> elementTypes);
/llvm-project-15.0.7/clang/tools/clang-linker-wrapper/
H A DOffloadWrapper.cpp59 StructType *getEntryTy(Module &M) { in getEntryTy()
61 StructType *EntryTy = StructType::getTypeByName(C, "__tgt_offload_entry"); 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()
285 StructType *FatbinTy = StructType::getTypeByName(C, "fatbin_wrapper"); in getFatbinWrapperTy()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVTypes.h278 class StructType
279 : public Type::TypeBase<StructType, CompositeType,
314 static StructType get(ArrayRef<Type> memberTypes,
325 static StructType getIdentified(MLIRContext *context, StringRef identifier);
333 static StructType getEmpty(MLIRContext *context, StringRef identifier = "");
374 void getMemberDecorations(SmallVectorImpl<StructType::MemberDecorationInfo>
381 SmallVectorImpl<StructType::MemberDecorationInfo> &decorationsInfo) const;
397 hash_value(const StructType::MemberDecorationInfo &memberDecorationInfo);
/llvm-project-15.0.7/llvm/unittests/AsmParser/
H A DAsmParserTest.cpp205 StructType *ST = cast<StructType>(Ty); in TEST()
219 ST = cast<StructType>(Ty); in TEST()
245 ST = cast<StructType>(Ty); in TEST()
328 StructType *ST = cast<StructType>(Ty); in TEST()
343 ST = cast<StructType>(Ty); in TEST()
371 ST = cast<StructType>(Ty); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/
H A DTarget.cpp134 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
140 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DShadowStackGCLowering.cpp58 StructType *StackEntryTy = nullptr;
59 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()
/llvm-project-15.0.7/clang/tools/clang-offload-wrapper/
H A DClangOffloadWrapper.cpp89 StructType *EntryTy = nullptr;
90 StructType *ImageTy = nullptr;
91 StructType *DescTy = nullptr;
120 StructType *getEntryTy() { in getEntryTy()
122 EntryTy = StructType::create("__tgt_offload_entry", Type::getInt8PtrTy(C), in getEntryTy()
136 StructType *getDeviceImageTy() { in getDeviceImageTy()
138 ImageTy = StructType::create("__tgt_device_image", Type::getInt8PtrTy(C), in getDeviceImageTy()
154 StructType *getBinDescTy() { in getBinDescTy()
156 DescTy = StructType::create("__tgt_bin_desc", Type::getInt32Ty(C), in getBinDescTy()

12345678910