Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp96 if (StructType *STy = GTI.getStructTypeOrNull()) { in getMaxPreservedAlignment() local
97 const StructLayout *SL = DL.getStructLayout(STy); in getMaxPreservedAlignment()
162 StructType *STy = GTI.getStructTypeOrNull(); in accumulateConstantOffset() local
172 if (STy) { in accumulateConstantOffset()
174 const StructLayout *SL = DL.getStructLayout(STy); in accumulateConstantOffset()
190 if (!ExternalAnalysis || STy || ScalableType) in accumulateConstantOffset()
221 StructType *STy = GTI.getStructTypeOrNull(); in collectOffset() local
234 if (STy) { in collectOffset()
236 const StructLayout *SL = DL.getStructLayout(STy); in collectOffset()
247 if (STy || ScalableType) in collectOffset()
H A DTypeFinder.cpp132 if (StructType *STy = dyn_cast<StructType>(Ty)) in incorporateType() local
133 if (!OnlyNamed || STy->hasName()) in incorporateType()
134 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/contrib/llvm-project/llvm/lib/Target/
H A DTarget.cpp130 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset() local
131 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); in LLVMElementAtOffset()
136 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement() local
137 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element); in LLVMOffsetOfElement()
/freebsd/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/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp546 auto *STy = cast<StructType>(F->getReturnType()); in invalidate() local
547 for (unsigned I = 0, E = STy->getNumElements(); I != E; ++I) in invalidate()
551 } else if (auto *STy = dyn_cast<StructType>(Inst->getType())) { in invalidate() local
552 for (unsigned I = 0, E = STy->getNumElements(); I != E; ++I) { in invalidate()
721 if (auto *STy = dyn_cast<StructType>(F->getReturnType())) { in addTrackedFunction() local
723 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in addTrackedFunction()
760 auto *STy = dyn_cast<StructType>(V->getType()); in getStructLatticeValueFor() local
761 assert(STy && "getStructLatticeValueFor() can be called only on structs"); in getStructLatticeValueFor()
762 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in getStructLatticeValueFor()
808 if (auto *STy = dyn_cast<StructType>(V->getType())) in markOverdefined() 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/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"))
100 STy->setName(""); in findUsedValues()
H A DDeadArgumentElimination.cpp342 if (StructType *STy = dyn_cast<StructType>(RetTy)) in numRetVals() local
343 return STy->getNumElements(); in numRetVals()
356 if (StructType *STy = dyn_cast<StructType>(RetTy)) in getRetComponentType() local
357 return STy->getElementType(Idx); in getRetComponentType()
820 if (StructType *STy = dyn_cast<StructType>(RetTy)) { in removeDeadStuffFromFunction() local
823 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked()); in removeDeadStuffFromFunction()
/freebsd/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()
88 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeValueVTs() local
92 const StructLayout *SL = Offsets ? DL.getStructLayout(STy) : nullptr; in ComputeValueVTs()
93 for (StructType::element_iterator EB = STy->element_begin(), in ComputeValueVTs()
95 EE = STy->element_end(); in ComputeValueVTs()
146 if (StructType *STy = dyn_cast<StructType>(&Ty)) { in computeValueLLTs() local
150 const StructLayout *SL = Offsets ? DL.getStructLayout(STy) : nullptr; in computeValueLLTs()
151 for (unsigned I = 0, E = STy->getNumElements(); I != E; ++I) { in computeValueLLTs()
153 computeValueLLTs(DL, *STy->getElementType(I), ValueTys, Offsets, in computeValueLLTs()
/freebsd/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.cpp280 BTFTypeStruct::BTFTypeStruct(const DICompositeType *STy, bool IsStruct, in BTFTypeStruct() argument
282 : STy(STy), HasBitField(HasBitField) { in BTFTypeStruct()
284 BTFType.Size = roundupToBytes(STy->getSizeInBits()); in BTFTypeStruct()
293 BTFType.NameOff = BDebug.addString(STy->getName()); in completeType()
296 const DINodeArray Elements = STy->getElements(); in completeType()
324 std::string BTFTypeStruct::getName() { return std::string(STy->getName()); } in getName()
332 const DISubroutineType *STy, uint32_t VLen, in BTFTypeFuncProto() argument
334 : STy(STy), FuncArgNames(FuncArgNames) { in BTFTypeFuncProto()
344 DITypeRefArray Elements = STy->getTypeArray(); in completeType()
559 const DISubroutineType *STy, bool ForSubprog, in visitSubroutineType() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp79 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes);
116 if (auto *STy = dyn_cast<StructType>(Ty)) in addTypeMapping() local
117 if (STy->hasName()) in addTypeMapping()
118 STy->setName(""); in addTypeMapping()
228 void TypeMapTy::finishType(StructType *DTy, StructType *STy, in finishType() argument
230 DTy->setBody(ETypes, STy->isPacked()); in finishType()
233 if (STy->hasName()) { in finishType()
234 SmallString<16> TmpName = STy->getName(); in finishType()
235 STy->setName(""); in finishType()
292 auto *STy = cast<StructType>(Ty); in get() local
[all …]
/freebsd/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/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/contrib/llvm-project/clang/include/clang/Sema/
H A DOverload.h986 QualType STy = Surrogate->getConversionType(); in getNumParams() local
987 while (STy->isPointerType() || STy->isReferenceType()) in getNumParams()
988 STy = STy->getPointeeType(); in getNumParams()
989 return STy->castAs<FunctionProtoType>()->getNumParams(); in getNumParams()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVCodeGenPrepare.cpp190 Type *STy = VTy->getElementType(); in expandVPStrideLoad() local
191 Value *Val = Builder.CreateLoad(STy, BasePtr); in expandVPStrideLoad()
/freebsd/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/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/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroInternal.h213 if (auto STy = dyn_cast<StructType>(FTy->getReturnType())) { in getRetconResultTypes() local
214 return STy->elements().slice(1); in getRetconResultTypes()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCall.cpp1365 } else if (llvm::StructType *STy = in CreateCoercedStore() local
1369 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in CreateCoercedStore()
1511 llvm::StructType *STy = dyn_cast<llvm::StructType>(AI.getCoerceToType()); in construct() local
1512 if (AI.isDirect() && AI.getCanBeFlattened() && STy) { in construct()
1513 IRArgs.NumberOfArgs = STy->getNumElements(); in construct()
3208 llvm::StructType *STy = in EmitFunctionProlog() local
3210 if (ArgI.isDirect() && !ArgI.getCanBeFlattened() && STy && in EmitFunctionProlog()
3211 STy->getNumElements() > 1) { in EmitFunctionProlog()
3213 CGM.getDataLayout().getTypeAllocSize(STy); in EmitFunctionProlog()
3216 if (STy->containsHomogeneousScalableVectorTypes()) { in EmitFunctionProlog()
[all …]
H A DCGExprConstant.cpp506 llvm::StructType *STy = llvm::ConstantStruct::getTypeForElements( in buildFrom() local
512 if (DesiredSTy->isLayoutIdentical(STy)) in buildFrom()
513 STy = DesiredSTy; in buildFrom()
516 return llvm::ConstantStruct::get(STy, Packed ? PackedElems : UnpackedElems); in buildFrom()
541 auto *STy = dyn_cast<llvm::StructType>(DesiredTy); in condense() local
542 if (STy && STy->getNumElements() == 1 && in condense()
543 STy->getElementType(0) == Elems[First]->getType()) in condense()
544 Elems[First] = llvm::ConstantStruct::get(STy, Elems[First]); in condense()
1138 llvm::StructType *STy = llvm::StructType::get(VMContext, Types, false); in VisitCastExpr() local
1139 return llvm::ConstantStruct::get(STy, Elts); in VisitCastExpr()
[all …]
H A DCGDecl.cpp1058 llvm::StructType *STy, in constStructWithPadding() argument
1061 const llvm::StructLayout *Layout = DL.getStructLayout(STy); in constStructWithPadding()
1066 for (unsigned i = 0, e = STy->getNumElements(); i != e; i++) { in constStructWithPadding()
1069 assert(!STy->isPacked()); in constStructWithPadding()
1075 CurOp = llvm::Constant::getNullValue(STy->getElementType(i)); in constStructWithPadding()
1089 if (NestedIntact && Values.size() == STy->getNumElements()) in constStructWithPadding()
1091 return llvm::ConstantStruct::getAnon(Values, STy->isPacked()); in constStructWithPadding()
1099 if (const auto STy = dyn_cast<llvm::StructType>(OrigTy)) in constWithPadding() local
1100 return constStructWithPadding(CGM, isPattern, STy, constant); in constWithPadding()
1252 if (auto *STy = dyn_cast<llvm::StructType>(Ty)) { in emitStoresForConstant() local
[all …]

1234