| /freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/ |
| D | Operator.cpp | 44 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()
|
| D | TypeFinder.cpp | 104 if (StructType *STy = dyn_cast<StructType>(Ty)) in incorporateType() local 105 if (!OnlyNamed || STy->hasName()) in incorporateType() 106 StructTypes.push_back(STy); in incorporateType()
|
| D | InlineAsm.cpp | 294 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); in Verify() 295 if (!STy || STy->getNumElements() != NumOutputs) in Verify()
|
| D | Type.cpp | 117 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()
|
| D | AsmWriter.cpp | 517 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/ |
| D | SetVector.h | 249 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/ |
| D | MetaRenamer.cpp | 115 for (StructType *STy : StructTypes) { in MetaRename() 116 if (STy->isLiteral() || STy->getName().empty()) in MetaRename() 120 STy->setName( in MetaRename()
|
| D | SCCPSolver.cpp | 368 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/ |
| D | ArgumentPromotion.cpp | 143 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 …]
|
| D | StripSymbols.cpp | 185 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()
|
| D | GlobalOpt.cpp | 141 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 …]
|
| D | DeadArgumentElimination.cpp | 334 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/ |
| D | Target.cpp | 134 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/ |
| D | Analysis.cpp | 45 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/ |
| D | BTFDebug.h | 125 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,
|
| D | BTFDebug.cpp | 224 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/ |
| D | IRMover.cpp | 69 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/ |
| D | Operations.cpp | 226 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/ |
| D | Overload.h | 898 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/ |
| D | Local.h | 55 if (StructType *STy = GTI.getStructTypeOrNull()) { variable 57 Size = DL.getStructLayout(STy)->getElementOffset(OpValue);
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| D | SROA.cpp | 740 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/ |
| D | HexagonTargetObjectFile.cpp | 299 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/ |
| D | CGExprConstant.cpp | 492 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/ |
| D | CoroInternal.h | 228 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/ |
| D | SCCPSolver.h | 128 bool isStructLatticeConstant(Function *F, StructType *STy);
|