Home
last modified time | relevance | path

Searched refs:STy (Results 1 – 25 of 80) sorted by relevance

1234

/llvm-project-15.0.7/llvm/lib/IR/
H A DOperator.cpp69 if (StructType *STy = GTI.getStructTypeOrNull()) { in getMaxPreservedAlignment() local
70 const StructLayout *SL = DL.getStructLayout(STy); in getMaxPreservedAlignment()
130 StructType *STy = GTI.getStructTypeOrNull(); in accumulateConstantOffset() local
140 if (STy) { in accumulateConstantOffset()
142 const StructLayout *SL = DL.getStructLayout(STy); in accumulateConstantOffset()
158 if (!ExternalAnalysis || STy || ScalableType) in accumulateConstantOffset()
190 StructType *STy = GTI.getStructTypeOrNull(); in collectOffset() local
203 if (STy) { in collectOffset()
205 const StructLayout *SL = DL.getStructLayout(STy); in collectOffset()
216 if (STy || ScalableType) in collectOffset()
H A DTypeFinder.cpp118 if (StructType *STy = dyn_cast<StructType>(Ty)) in incorporateType() local
119 if (!OnlyNamed || STy->hasName()) in incorporateType()
120 StructTypes.push_back(STy); in incorporateType()
H A DInlineAsm.cpp315 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); in verify()
316 if (!STy || STy->getNumElements() != NumOutputs) in verify()
H A DDataLayout.cpp659 StructLayout *&operator[](StructType *STy) { in operator []() argument
660 return LayoutInfo[STy]; in operator []()
888 if (StructType *STy = GTI.getStructTypeOrNull()) { in getIndexedOffsetInType() local
893 const StructLayout *Layout = getStructLayout(STy); in getIndexedOffsetInType()
945 if (auto *STy = dyn_cast<StructType>(ElemTy)) { in getGEPIndexForOffset() local
946 const StructLayout *SL = getStructLayout(STy); in getGEPIndexForOffset()
953 ElemTy = STy->getElementType(Index); in getGEPIndexForOffset()
/llvm-project-15.0.7/clang/test/AST/
H A Ddeduction-guides.cpp16 typedef PR46111::S<T> STy; typedef
17 HasDeductionGuide(typename STy::Child);
25 using STy = PR46111::S<T>; typedef
26 HasDeductionGuideTypeAlias(typename STy::Child);
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DSetVector.h249 template <class STy>
250 bool set_union(const STy &S) { in set_union()
253 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE; in set_union()
264 template <class STy>
265 void set_subtract(const STy &S) { in set_subtract()
266 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE; in set_subtract()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp363 if (auto *STy = dyn_cast<StructType>(F->getReturnType())) { in addTrackedFunction() local
400 auto *STy = dyn_cast<StructType>(V->getType()); in getStructLatticeValueFor() local
435 if (auto *STy = dyn_cast<StructType>(V->getType())) in markOverdefined() local
442 bool isStructLatticeConstant(Function *F, StructType *STy);
789 if (auto *STy = dyn_cast<StructType>(ResultOp->getType())) in visitReturnInst() local
876 auto *STy = dyn_cast<StructType>(IVI.getType()); in visitInsertValueInst() local
877 if (!STy) in visitInsertValueInst()
1237 if (auto *STy = dyn_cast<StructType>(AI->getType())) { in handleCallArguments() local
1355 if (auto *STy = dyn_cast<StructType>(F->getReturnType())) { in handleCallResult() local
1450 if (auto *STy = dyn_cast<StructType>(I.getType())) { in resolvedUndefsIn() local
[all …]
H A DMetaRenamer.cpp171 for (StructType *STy : StructTypes) { in MetaRename()
172 StringRef Name = STy->getName(); in MetaRename()
173 if (STy->isLiteral() || Name.empty() || in MetaRename()
178 STy->setName( in MetaRename()
/llvm-project-15.0.7/llvm/lib/Target/
H A DTarget.cpp134 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset() local
135 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); in LLVMElementAtOffset()
140 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement() local
141 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element); in LLVMOffsetOfElement()
/llvm-project-15.0.7/clang/test/OpenMP/
H A Ddeclare_simd_aarch64.c192 } STy; typedef
194 STy DoRGB(STy x);
197 static STy *RGBData;
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DAnalysis.cpp42 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeLinearIndex() local
43 for (auto I : llvm::enumerate(STy->elements())) { in ComputeLinearIndex()
85 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeValueVTs() local
89 const StructLayout *SL = Offsets ? DL.getStructLayout(STy) : nullptr; in ComputeValueVTs()
90 for (StructType::element_iterator EB = STy->element_begin(), in ComputeValueVTs()
92 EE = STy->element_end(); in ComputeValueVTs()
134 if (StructType *STy = dyn_cast<StructType>(&Ty)) { in computeValueLLTs() local
138 const StructLayout *SL = Offsets ? DL.getStructLayout(STy) : nullptr; in computeValueLLTs()
139 for (unsigned I = 0, E = STy->getNumElements(); I != E; ++I) { in computeValueLLTs()
141 computeValueLLTs(DL, *STy->getElementType(I), ValueTys, Offsets, in computeValueLLTs()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DStripSymbols.cpp185 StructType *STy = StructTypes[i]; in StripTypeNames() local
186 if (STy->isLiteral() || STy->getName().empty()) continue; in StripTypeNames()
188 if (PreserveDbgInfo && STy->getName().startswith("llvm.dbg")) in StripTypeNames()
191 STy->setName(""); in StripTypeNames()
H A DDeadArgumentElimination.cpp337 if (StructType *STy = dyn_cast<StructType>(RetTy)) in numRetVals() local
338 return STy->getNumElements(); in numRetVals()
351 if (StructType *STy = dyn_cast<StructType>(RetTy)) in getRetComponentType() local
352 return STy->getElementType(Idx); in getRetComponentType()
807 if (StructType *STy = dyn_cast<StructType>(RetTy)) { in removeDeadStuffFromFunction() local
810 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked()); in removeDeadStuffFromFunction()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBTFDebug.h127 const DICompositeType *STy; variable
132 BTFTypeStruct(const DICompositeType *STy, bool IsStruct, bool HasBitField,
144 const DISubroutineType *STy; variable
149 BTFTypeFuncProto(const DISubroutineType *STy, uint32_t NumParams,
326 const DISubroutineType *STy, bool ForSubprog,
332 void visitStructType(const DICompositeType *STy, bool IsStruct,
H A DBTFDebug.cpp279 : STy(STy), HasBitField(HasBitField) { in BTFTypeStruct()
281 BTFType.Size = roundupToBytes(STy->getSizeInBits()); in BTFTypeStruct()
290 BTFType.NameOff = BDebug.addString(STy->getName()); in completeType()
293 const DINodeArray Elements = STy->getElements(); in completeType()
329 const DISubroutineType *STy, uint32_t VLen, in BTFTypeFuncProto() argument
331 : STy(STy), FuncArgNames(FuncArgNames) { in BTFTypeFuncProto()
341 DITypeRefArray Elements = STy->getTypeArray(); in completeType()
556 const DISubroutineType *STy, bool ForSubprog, in visitSubroutineType() argument
559 DITypeRefArray Elements = STy->getTypeArray(); in visitSubroutineType()
572 TypeId = addType(std::move(TypeEntry), STy); // For func ptr in visitSubroutineType()
[all …]
/llvm-project-15.0.7/llvm/lib/Linker/
H A DIRMover.cpp113 if (STy->hasName()) in addTypeMapping()
114 STy->setName(""); in addTypeMapping()
226 DTy->setBody(ETypes, STy->isPacked()); in finishType()
229 if (STy->hasName()) { in finishType()
231 STy->setName(""); in finishType()
319 auto *STy = cast<StructType>(Ty); in get() local
320 bool IsPacked = STy->isPacked(); in get()
325 if (STy->isOpaque()) { in get()
326 DstStructTypesSet.addOpaque(STy); in get()
332 STy->setName(""); in get()
[all …]
/llvm-project-15.0.7/llvm/lib/FuzzMutate/
H A DOperations.cpp233 auto *STy = cast<StructType>(Cur[0]->getType()); in matchScalarInAggregate() local
234 for (int I = 0, E = STy->getNumElements(); I < E; ++I) in matchScalarInAggregate()
235 if (STy->getTypeAtIndex(I) == V->getType()) in matchScalarInAggregate()
244 auto *STy = cast<StructType>(Cur[0]->getType()); in matchScalarInAggregate() local
245 for (int I = 0, E = STy->getNumElements(); I < E; ++I) in matchScalarInAggregate()
246 makeConstantsWithType(STy->getTypeAtIndex(I), Result); in matchScalarInAggregate()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/Utils/
H A DLocal.h55 if (StructType *STy = GTI.getStructTypeOrNull()) { variable
57 Size = DL.getStructLayout(STy)->getElementOffset(OpValue);
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DOverload.h921 QualType STy = Surrogate->getConversionType(); in getNumParams() local
922 while (STy->isPointerType() || STy->isReferenceType()) in getNumParams()
923 STy = STy->getPointeeType(); in getNumParams()
924 return STy->castAs<FunctionProtoType>()->getNumParams(); in getNumParams()
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DLowLevelTypeTest.cpp62 const LLT STy = LLT::scalar(S); in TEST() local
67 const LLT VSTy = LLT::vector(EC, STy); in TEST()
72 EXPECT_EQ(STy, VTy.getElementType()); in TEST()
96 EXPECT_NE(VTy, STy); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.cpp298 const StructType *STy = cast<const StructType>(Ty); in getSmallestAddressableSize() local
299 for (auto &E : STy->elements()) { in getSmallestAddressableSize()
304 return (STy->getNumElements() == 0) ? 0 : SmallestElement; in getSmallestAddressableSize()
/llvm-project-15.0.7/llvm/test/Transforms/Attributor/
H A Dvalue-simplify-pointer-info.ll3997 %struct.STy = type { float*, double*, %struct.STy* }
4009 ; IS__TUNIT_OPM-NEXT: store %struct.STy* @global, %struct.STy** [[INNER]], align 8
4077 %inner = getelementptr inbounds %struct.STy, %struct.STy* %local, i64 0, i32 2
4078 store %struct.STy* @global, %struct.STy** %inner, align 8
4085 …store i8* %call, i8** bitcast (%struct.STy** getelementptr inbounds (%struct.STy, %struct.STy* @gl…
4174 %inner = getelementptr inbounds %struct.STy, %struct.STy* %S, i64 0, i32 2
4175 %0 = load %struct.STy*, %struct.STy** %inner, align 8
4176 %inner1 = getelementptr inbounds %struct.STy, %struct.STy* %0, i64 0, i32 2
4177 %1 = load %struct.STy*, %struct.STy** %inner1, align 8
4178 %src = getelementptr inbounds %struct.STy, %struct.STy* %1, i64 0, i32 1
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroInternal.h203 if (auto STy = dyn_cast<StructType>(FTy->getReturnType())) { in getRetconResultTypes() local
204 return STy->elements().slice(1); in getRetconResultTypes()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprConstant.cpp509 if (DesiredSTy->isLayoutIdentical(STy)) in buildFrom()
510 STy = DesiredSTy; in buildFrom()
538 auto *STy = dyn_cast<llvm::StructType>(DesiredTy); in condense() local
539 if (STy && STy->getNumElements() == 1 && in condense()
540 STy->getElementType(0) == Elems[First]->getType()) in condense()
541 Elems[First] = llvm::ConstantStruct::get(STy, Elems[First]); in condense()
1101 return llvm::ConstantStruct::get(STy, Elts); in VisitCastExpr()
2094 llvm::StructType *STy = in tryEmitPrivate() local
2096 return llvm::ConstantStruct::get(STy, Complex); in tryEmitPrivate()
2117 llvm::StructType *STy = in tryEmitPrivate() local
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1482 if (STy->element_begin() == STy->element_end()) in getNaturalGEPWithType()
1484 ElementTy = *STy->element_begin(); in getNaturalGEPWithType()
1840 if (STy->isStructTy()) in isVectorPromotionViableForSlice()
1843 assert(STy->isIntegerTy()); in isVectorPromotionViableForSlice()
1844 STy = SplitIntTy; in isVectorPromotionViableForSlice()
1846 if (!canConvertValue(DL, STy, SliceTy)) in isVectorPromotionViableForSlice()
3610 InnerTy = STy->getElementType(Index); in stripAggregateTypeWrapping()
3681 StructType *STy = dyn_cast<StructType>(Ty); in getTypePartition() local
3682 if (!STy) in getTypePartition()
3726 EE = STy->element_begin() + EndIndex; in getTypePartition()
[all …]

1234