Home
last modified time | relevance | path

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

1234

/freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/
DOperator.cpp44 if (StructType *STy = GTI.getStructTypeOrNull()) { in getMaxPreservedAlignment() local
45 const StructLayout *SL = DL.getStructLayout(STy); in getMaxPreservedAlignment()
105 StructType *STy = GTI.getStructTypeOrNull(); in accumulateConstantOffset() local
115 if (STy) { in accumulateConstantOffset()
117 const StructLayout *SL = DL.getStructLayout(STy); in accumulateConstantOffset()
133 if (!ExternalAnalysis || STy || ScalableType) in accumulateConstantOffset()
165 StructType *STy = GTI.getStructTypeOrNull(); in collectOffset() local
178 if (STy) { in collectOffset()
180 const StructLayout *SL = DL.getStructLayout(STy); in collectOffset()
191 if (STy || ScalableType) in collectOffset()
DTypeFinder.cpp104 if (StructType *STy = dyn_cast<StructType>(Ty)) in incorporateType() local
105 if (!OnlyNamed || STy->hasName()) in incorporateType()
106 StructTypes.push_back(STy); in incorporateType()
DInlineAsm.cpp294 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); in Verify()
295 if (!STy || STy->getNumElements() != NumOutputs) in Verify()
DType.cpp117 if (auto *STy = dyn_cast<StructType>(this)) { in isEmptyTy() local
118 unsigned NumElements = STy->getNumElements(); in isEmptyTy()
120 if (!STy->getElementType(i)->isEmptyTy()) in isEmptyTy()
403 if (auto *STy = dyn_cast<StructType>(Ty)) in containsScalableVectorType() local
404 if (STy->containsScalableVectorType()) in containsScalableVectorType()
DAsmWriter.cpp517 StructType *STy = *I; in incorporateTypes() local
520 if (STy->isLiteral()) in incorporateTypes()
523 if (STy->getName().empty()) in incorporateTypes()
524 Type2Number[STy] = NextNumber++; in incorporateTypes()
526 *NextToUse++ = STy; in incorporateTypes()
571 StructType *STy = cast<StructType>(Ty); in print() local
573 if (STy->isLiteral()) in print()
574 return printStructBody(STy, OS); in print()
576 if (!STy->getName().empty()) in print()
577 return PrintLLVMName(OS, STy->getName(), LocalPrefix); in print()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/ADT/
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()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
DMetaRenamer.cpp115 for (StructType *STy : StructTypes) { in MetaRename()
116 if (STy->isLiteral() || STy->getName().empty()) in MetaRename()
120 STy->setName( in MetaRename()
DSCCPSolver.cpp368 if (auto *STy = dyn_cast<StructType>(F->getReturnType())) { in addTrackedFunction() local
370 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in addTrackedFunction()
405 auto *STy = dyn_cast<StructType>(V->getType()); in getStructLatticeValueFor() local
406 assert(STy && "getStructLatticeValueFor() can be called only on structs"); in getStructLatticeValueFor()
407 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in getStructLatticeValueFor()
440 if (auto *STy = dyn_cast<StructType>(V->getType())) in markOverdefined() local
441 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in markOverdefined()
447 bool isStructLatticeConstant(Function *F, StructType *STy);
506 bool SCCPInstVisitor::isStructLatticeConstant(Function *F, StructType *STy) { in isStructLatticeConstant() argument
507 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in isStructLatticeConstant()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp143 StructType *STy = cast<StructType>(AgTy); in doPromotion() local
144 llvm::append_range(Params, STy->elements()); in doPromotion()
145 ArgAttrVec.insert(ArgAttrVec.end(), STy->getNumElements(), in doPromotion()
264 StructType *STy = cast<StructType>(AgTy); in doPromotion() local
267 const StructLayout *SL = DL.getStructLayout(STy); in doPromotion()
269 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in doPromotion()
272 IRB.CreateGEP(STy, *AI, Idxs, (*AI)->getName() + "." + Twine(i)); in doPromotion()
277 STy->getElementType(i), Idx, Alignment, Idx->getName() + ".val")); in doPromotion()
394 StructType *STy = cast<StructType>(AgTy); in doPromotion() local
397 const StructLayout *SL = DL.getStructLayout(STy); in doPromotion()
[all …]
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()
DGlobalOpt.cpp141 StructType *STy = cast<StructType>(Ty); in isLeakCheckerRoot() local
142 if (STy->isOpaque()) return true; in isLeakCheckerRoot()
143 for (StructType::element_iterator I = STy->element_begin(), in isLeakCheckerRoot()
144 E = STy->element_end(); I != E; ++I) { in isLeakCheckerRoot()
535 if (StructType *STy = dyn_cast<StructType>(Ty)) in SRAGlobal() local
536 ElTy = STy->getElementType(ElementIdx); in SRAGlobal()
552 if (StructType *STy = dyn_cast<StructType>(Ty)) { in SRAGlobal() local
553 const StructLayout &Layout = *DL.getStructLayout(STy); in SRAGlobal()
560 if (NewAlign > DL.getABITypeAlign(STy->getElementType(ElementIdx))) in SRAGlobal()
1384 auto *STy = S->getValueOperand()->getType(); in isPointerValueDeadOnEntryToFunction() local
[all …]
DDeadArgumentElimination.cpp334 else if (StructType *STy = dyn_cast<StructType>(RetTy)) in NumRetVals() local
335 return STy->getNumElements(); in NumRetVals()
349 if (StructType *STy = dyn_cast<StructType>(RetTy)) in getRetComponentType() local
350 return STy->getElementType(Idx); in getRetComponentType()
821 if (StructType *STy = dyn_cast<StructType>(RetTy)) { in RemoveDeadStuffFromFunction() local
824 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked()); in RemoveDeadStuffFromFunction()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/
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()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/
DAnalysis.cpp45 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeLinearIndex() local
46 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()
137 if (StructType *STy = dyn_cast<StructType>(&Ty)) { in computeValueLLTs() local
141 const StructLayout *SL = Offsets ? DL.getStructLayout(STy) : nullptr; in computeValueLLTs()
142 for (unsigned I = 0, E = STy->getNumElements(); I != E; ++I) { in computeValueLLTs()
144 computeValueLLTs(DL, *STy->getElementType(I), ValueTys, Offsets, in computeValueLLTs()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/BPF/
DBTFDebug.h125 const DICompositeType *STy; variable
130 BTFTypeStruct(const DICompositeType *STy, bool IsStruct, bool HasBitField,
142 const DISubroutineType *STy; variable
147 BTFTypeFuncProto(const DISubroutineType *STy, uint32_t NumParams,
287 const DISubroutineType *STy, bool ForSubprog,
293 void visitStructType(const DICompositeType *STy, bool IsStruct,
DBTFDebug.cpp224 BTFTypeStruct::BTFTypeStruct(const DICompositeType *STy, bool IsStruct, in BTFTypeStruct() argument
226 : STy(STy), HasBitField(HasBitField) { in BTFTypeStruct()
228 BTFType.Size = roundupToBytes(STy->getSizeInBits()); in BTFTypeStruct()
237 BTFType.NameOff = BDebug.addString(STy->getName()); in completeType()
240 const DINodeArray Elements = STy->getElements(); in completeType()
268 std::string BTFTypeStruct::getName() { return std::string(STy->getName()); } in getName()
276 const DISubroutineType *STy, uint32_t VLen, in BTFTypeFuncProto() argument
278 : STy(STy), FuncArgNames(FuncArgNames) { in BTFTypeFuncProto()
288 DITypeRefArray Elements = STy->getTypeArray(); in completeType()
454 const DISubroutineType *STy, bool ForSubprog, in visitSubroutineType() argument
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Linker/
DIRMover.cpp69 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes);
106 if (auto *STy = dyn_cast<StructType>(Ty)) in addTypeMapping() local
107 if (STy->hasName()) in addTypeMapping()
108 STy->setName(""); in addTypeMapping()
218 void TypeMapTy::finishType(StructType *DTy, StructType *STy, in finishType() argument
220 DTy->setBody(ETypes, STy->isPacked()); in finishType()
223 if (STy->hasName()) { in finishType()
224 SmallString<16> TmpName = STy->getName(); in finishType()
225 STy->setName(""); in finishType()
282 auto *STy = cast<StructType>(Ty); in get() local
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/FuzzMutate/
DOperations.cpp226 auto *STy = cast<StructType>(Cur[0]->getType()); in matchScalarInAggregate() local
227 for (int I = 0, E = STy->getNumElements(); I < E; ++I) in matchScalarInAggregate()
228 if (STy->getTypeAtIndex(I) == V->getType()) in matchScalarInAggregate()
237 auto *STy = cast<StructType>(Cur[0]->getType()); in matchScalarInAggregate() local
238 for (int I = 0, E = STy->getNumElements(); I < E; ++I) in matchScalarInAggregate()
239 makeConstantsWithType(STy->getTypeAtIndex(I), Result); in matchScalarInAggregate()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/
DOverload.h898 QualType STy = Surrogate->getConversionType(); in getNumParams() local
899 while (STy->isPointerType() || STy->isReferenceType()) in getNumParams()
900 STy = STy->getPointeeType(); in getNumParams()
901 return STy->castAs<FunctionProtoType>()->getNumParams(); in getNumParams()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/Utils/
DLocal.h55 if (StructType *STy = GTI.getStructTypeOrNull()) { variable
57 Size = DL.getStructLayout(STy)->getElementOffset(OpValue);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
DSROA.cpp740 if (StructType *STy = GTI.getStructTypeOrNull()) { in visitGetElementPtrInst() local
742 const StructLayout *SL = DL.getStructLayout(STy); in visitGetElementPtrInst()
1449 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { in getNaturalGEPWithType() local
1450 if (STy->element_begin() == STy->element_end()) in getNaturalGEPWithType()
1452 ElementTy = *STy->element_begin(); in getNaturalGEPWithType()
1516 StructType *STy = dyn_cast<StructType>(Ty); in getNaturalGEPRecursively() local
1517 if (!STy) in getNaturalGEPRecursively()
1520 const StructLayout *SL = DL.getStructLayout(STy); in getNaturalGEPRecursively()
1526 Type *ElementTy = STy->getElementType(Index); in getNaturalGEPRecursively()
1870 Type *STy = SI->getValueOperand()->getType(); in isVectorPromotionViableForSlice() local
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
DHexagonTargetObjectFile.cpp299 const StructType *STy = cast<const StructType>(Ty); in getSmallestAddressableSize() local
300 for (auto &E : STy->elements()) { in getSmallestAddressableSize()
305 return (STy->getNumElements() == 0) ? 0 : SmallestElement; in getSmallestAddressableSize()
/freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/
DCGExprConstant.cpp492 llvm::StructType *STy = llvm::ConstantStruct::getTypeForElements( in buildFrom() local
498 if (DesiredSTy->isLayoutIdentical(STy)) in buildFrom()
499 STy = DesiredSTy; in buildFrom()
502 return llvm::ConstantStruct::get(STy, Packed ? PackedElems : UnpackedElems); in buildFrom()
527 auto *STy = dyn_cast<llvm::StructType>(DesiredTy); in condense() local
528 if (STy && STy->getNumElements() == 1 && in condense()
529 STy->getElementType(0) == Elems[First]->getType()) in condense()
530 Elems[First] = llvm::ConstantStruct::get(STy, Elems[First]); in condense()
1080 llvm::StructType *STy = llvm::StructType::get(VMContext, Types, false); in VisitCastExpr() local
1081 return llvm::ConstantStruct::get(STy, Elts); in VisitCastExpr()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
DCoroInternal.h228 if (auto STy = dyn_cast<StructType>(FTy->getReturnType())) { in getRetconResultTypes() local
229 return STy->elements().slice(1); in getRetconResultTypes()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
DSCCPSolver.h128 bool isStructLatticeConstant(Function *F, StructType *STy);

1234