Home
last modified time | relevance | path

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

123

/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp82 if (StructType *STy = GTI.getStructTypeOrNull()) { in getMaxPreservedAlignment() local
83 const StructLayout *SL = DL.getStructLayout(STy); in getMaxPreservedAlignment()
139 StructType *STy = GTI.getStructTypeOrNull(); in accumulateConstantOffset() local
149 if (STy) { in accumulateConstantOffset()
151 const StructLayout *SL = DL.getStructLayout(STy); in accumulateConstantOffset()
167 if (!ExternalAnalysis || STy || ScalableType) in accumulateConstantOffset()
198 StructType *STy = GTI.getStructTypeOrNull(); in collectOffset() local
211 if (STy) { in collectOffset()
213 const StructLayout *SL = DL.getStructLayout(STy); in collectOffset()
224 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.cpp328 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); in verify()
329 if (!STy || STy->getNumElements() != NumOutputs) in verify()
H A DType.cpp63 if (const auto *STy = dyn_cast<StructType>(this)) { in isScalableTy() local
65 return STy->containsScalableVectorType(&Visited); in isScalableTy()
155 if (auto *STy = dyn_cast<StructType>(this)) { in isEmptyTy() local
156 unsigned NumElements = STy->getNumElements(); in isEmptyTy()
158 if (!STy->getElementType(i)->isEmptyTy()) in isEmptyTy()
417 if (auto *STy = dyn_cast<StructType>(Ty)) { in containsScalableVectorType() local
418 if (STy->containsScalableVectorType(Visited)) { in containsScalableVectorType()
H A DDataLayout.cpp699 StructLayout *&operator[](StructType *STy) { in operator []() argument
700 return LayoutInfo[STy]; in operator []()
929 if (StructType *STy = GTI.getStructTypeOrNull()) { in getIndexedOffsetInType() local
934 const StructLayout *Layout = getStructLayout(STy); in getIndexedOffsetInType()
982 if (auto *STy = dyn_cast<StructType>(ElemTy)) { in getGEPIndexForOffset() local
983 const StructLayout *SL = getStructLayout(STy); in getGEPIndexForOffset()
990 ElemTy = STy->getElementType(Index); in getGEPIndexForOffset()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/
H A DTarget.cpp129 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset() local
130 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); in LLVMElementAtOffset()
135 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement() local
136 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element); in LLVMOffsetOfElement()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSetVector.h302 template <class STy>
303 bool set_union(const STy &S) { in set_union()
306 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE; in set_union()
317 template <class STy>
318 void set_subtract(const STy &S) { in set_subtract()
319 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE; in set_subtract()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp522 auto *STy = cast<StructType>(F->getReturnType()); in invalidate() local
736 auto *STy = dyn_cast<StructType>(V->getType()); in getStructLatticeValueFor() local
784 if (auto *STy = dyn_cast<StructType>(V->getType())) in markOverdefined() local
791 bool isStructLatticeConstant(Function *F, StructType *STy);
1211 if (auto *STy = dyn_cast<StructType>(ResultOp->getType())) in visitReturnInst() local
1326 auto *STy = dyn_cast<StructType>(IVI.getType()); in visitInsertValueInst() local
1327 if (!STy) in visitInsertValueInst()
1706 if (auto *STy = dyn_cast<StructType>(AI->getType())) { in handleCallArguments() local
1821 if (auto *STy = dyn_cast<StructType>(F->getReturnType())) { in handleCallResult() local
1899 if (auto *STy = dyn_cast<StructType>(I.getType())) { in resolvedUndef() local
[all …]
H A DMetaRenamer.cpp200 for (StructType *STy : StructTypes) { in MetaRename()
201 StringRef Name = STy->getName(); in MetaRename()
202 if (STy->isLiteral() || Name.empty() || in MetaRename()
207 STy->setName( in MetaRename()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DStripSymbols.cpp94 for (StructType *STy : StructTypes) { in StripTypeNames()
95 if (STy->isLiteral() || STy->getName().empty()) continue; in StripTypeNames()
97 if (PreserveDbgInfo && STy->getName().starts_with("llvm.dbg")) in StripTypeNames()
100 STy->setName(""); in StripTypeNames()
H A DDeadArgumentElimination.cpp344 if (StructType *STy = dyn_cast<StructType>(RetTy)) in numRetVals() local
345 return STy->getNumElements(); in numRetVals()
358 if (StructType *STy = dyn_cast<StructType>(RetTy)) in getRetComponentType() local
359 return STy->getElementType(Idx); in getRetComponentType()
822 if (StructType *STy = dyn_cast<StructType>(RetTy)) { in removeDeadStuffFromFunction() local
825 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked()); in removeDeadStuffFromFunction()
/freebsd-14.2/contrib/llvm-project/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.cpp281 : STy(STy), HasBitField(HasBitField) { in BTFTypeStruct()
283 BTFType.Size = roundupToBytes(STy->getSizeInBits()); in BTFTypeStruct()
292 BTFType.NameOff = BDebug.addString(STy->getName()); in completeType()
295 const DINodeArray Elements = STy->getElements(); in completeType()
331 const DISubroutineType *STy, uint32_t VLen, in BTFTypeFuncProto() argument
333 : STy(STy), FuncArgNames(FuncArgNames) { in BTFTypeFuncProto()
343 DITypeRefArray Elements = STy->getTypeArray(); in completeType()
558 const DISubroutineType *STy, bool ForSubprog, in visitSubroutineType() argument
561 DITypeRefArray Elements = STy->getTypeArray(); in visitSubroutineType()
574 TypeId = addType(std::move(TypeEntry), STy); // For func ptr in visitSubroutineType()
[all …]
/freebsd-14.2/contrib/llvm-project/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()
183 if (StructType *STy = dyn_cast<StructType>(&Ty)) { in computeValueLLTs() local
187 const StructLayout *SL = Offsets ? DL.getStructLayout(STy) : nullptr; in computeValueLLTs()
188 for (unsigned I = 0, E = STy->getNumElements(); I != E; ++I) { in computeValueLLTs()
190 computeValueLLTs(DL, *STy->getElementType(I), ValueTys, Offsets, in computeValueLLTs()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp116 if (STy->hasName()) in addTypeMapping()
117 STy->setName(""); in addTypeMapping()
229 DTy->setBody(ETypes, STy->isPacked()); in finishType()
232 if (STy->hasName()) { in finishType()
234 STy->setName(""); in finishType()
322 auto *STy = cast<StructType>(Ty); in get() local
323 bool IsPacked = STy->isPacked(); in get()
328 if (STy->isOpaque()) { in get()
329 DstStructTypesSet.addOpaque(STy); in get()
335 STy->setName(""); in get()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOperations.cpp256 auto *STy = cast<StructType>(Cur[0]->getType()); in matchScalarInAggregate() local
257 for (int I = 0, E = STy->getNumElements(); I < E; ++I) in matchScalarInAggregate()
258 if (STy->getTypeAtIndex(I) == V->getType()) in matchScalarInAggregate()
267 auto *STy = cast<StructType>(Cur[0]->getType()); in matchScalarInAggregate() local
268 for (int I = 0, E = STy->getNumElements(); I < E; ++I) in matchScalarInAggregate()
269 makeConstantsWithType(STy->getTypeAtIndex(I), Result); in matchScalarInAggregate()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DLocal.cpp48 if (StructType *STy = GTI.getStructTypeOrNull()) { in emitGEPOffset() local
50 uint64_t Size = DL.getStructLayout(STy)->getElementOffset(OpValue); in emitGEPOffset()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/
H A DOverload.h934 QualType STy = Surrogate->getConversionType(); in getNumParams() local
935 while (STy->isPointerType() || STy->isReferenceType()) in getNumParams()
936 STy = STy->getPointeeType(); in getNumParams()
937 return STy->castAs<FunctionProtoType>()->getNumParams(); in getNumParams()
/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroInternal.h210 if (auto STy = dyn_cast<StructType>(FTy->getReturnType())) { in getRetconResultTypes() local
211 return STy->elements().slice(1); in getRetconResultTypes()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp511 if (DesiredSTy->isLayoutIdentical(STy)) in buildFrom()
512 STy = DesiredSTy; in buildFrom()
540 auto *STy = dyn_cast<llvm::StructType>(DesiredTy); in condense() local
541 if (STy && STy->getNumElements() == 1 && in condense()
542 STy->getElementType(0) == Elems[First]->getType()) in condense()
543 Elems[First] = llvm::ConstantStruct::get(STy, Elems[First]); in condense()
1102 return llvm::ConstantStruct::get(STy, Elts); in VisitCastExpr()
2109 llvm::StructType *STy = in tryEmitPrivate() local
2111 return llvm::ConstantStruct::get(STy, Complex); in tryEmitPrivate()
2132 llvm::StructType *STy = in tryEmitPrivate() local
[all …]
H A DCGDecl.cpp1059 const llvm::StructLayout *Layout = DL.getStructLayout(STy); in constStructWithPadding()
1064 for (unsigned i = 0, e = STy->getNumElements(); i != e; i++) { in constStructWithPadding()
1067 assert(!STy->isPacked()); in constStructWithPadding()
1073 CurOp = llvm::Constant::getNullValue(STy->getElementType(i)); in constStructWithPadding()
1087 if (NestedIntact && Values.size() == STy->getNumElements()) in constStructWithPadding()
1089 return llvm::ConstantStruct::getAnon(Values, STy->isPacked()); in constStructWithPadding()
1097 if (const auto STy = dyn_cast<llvm::StructType>(OrigTy)) in constWithPadding() local
1098 return constStructWithPadding(CGM, isPattern, STy, constant); in constWithPadding()
1250 if (auto *STy = dyn_cast<llvm::StructType>(Ty)) { in emitStoresForConstant() local
1251 if (STy == Loc.getElementType() || in emitStoresForConstant()
[all …]
H A DCGCall.cpp1534 if (AI.isDirect() && AI.getCanBeFlattened() && STy) { in construct()
1535 IRArgs.NumberOfArgs = STy->getNumElements(); in construct()
3233 if (ArgI.isDirect() && ArgI.getCanBeFlattened() && STy && in EmitFunctionProlog()
3234 STy->getNumElements() > 1) { in EmitFunctionProlog()
3245 assert(STy->getNumElements() == NumIRArgs); in EmitFunctionProlog()
3262 AddrToStoreInto = Ptr.withElementType(STy); in EmitFunctionProlog()
3268 assert(STy->getNumElements() == NumIRArgs); in EmitFunctionProlog()
5310 llvm::StructType *STy = in EmitCall() local
5324 assert(NumIRArgs == STy->getNumElements()); in EmitCall()
5347 Src = Src.withElementType(STy); in EmitCall()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64InstrGISel.td517 ValueType VTy, ValueType STy,
520 def : Pat<(storeop (STy (vector_extract (VTy VecListOne64:$Vt), (i64 0))),
526 ValueType VTy, ValueType STy,
528 defm : VecStoreLane64_0Pat<am_unscaled64, StoreOp, VTy, STy, SubRegIdx, simm9, STR>;
532 ValueType VecTy, ValueType STy,
536 def : Pat<(storeop (STy (vector_extract (VecTy VecListOne64:$Vt), (i64 0))),
541 def : Pat<(storeop (STy (vector_extract (VecTy VecListOne64:$Vt), (i64 0))),
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanRecipes.cpp906 Type *STy = Val->getType()->getScalarType(); in getStepVector() local
907 assert((STy->isIntegerTy() || STy->isFloatingPointTy()) && in getStepVector()
909 assert(Step->getType() == STy && "Step has wrong type"); in getStepVector()
915 if (STy->isFloatingPointTy()) { in getStepVector()
917 IntegerType::get(STy->getContext(), STy->getScalarSizeInBits()); in getStepVector()
925 if (STy->isIntegerTy()) { in getStepVector()
1650 Type *STy = CanonicalIV->getType(); in execute() local
1657 Value *VStep = createStepForVF(Builder, STy, VF, Part); in execute()

123