| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Operator.cpp | 98 if (StructType *STy = GTI.getStructTypeOrNull()) { in getMaxPreservedAlignment() local 99 const StructLayout *SL = DL.getStructLayout(STy); in getMaxPreservedAlignment() 167 StructType *STy = GTI.getStructTypeOrNull(); in accumulateConstantOffset() local 178 if (STy) { in accumulateConstantOffset() 180 const StructLayout *SL = DL.getStructLayout(STy); in accumulateConstantOffset() 196 if (!ExternalAnalysis || STy || ScalableType) in accumulateConstantOffset() 229 StructType *STy = GTI.getStructTypeOrNull(); in collectOffset() local 243 if (STy) { in collectOffset() 245 const StructLayout *SL = DL.getStructLayout(STy); in collectOffset() 256 if (STy || ScalableType) in collectOffset()
|
| H A D | TypeFinder.cpp | 132 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 D | Type.cpp | 65 if (const auto *STy = dyn_cast<StructType>(this)) in isScalableTy() local 66 return STy->isScalableTy(Visited); in isScalableTy() 79 if (const auto *STy = dyn_cast<StructType>(this)) in containsNonGlobalTargetExtType() local 80 return STy->containsNonGlobalTargetExtType(Visited); in containsNonGlobalTargetExtType() 95 if (const auto *STy = dyn_cast<StructType>(this)) in containsNonLocalTargetExtType() local 96 return STy->containsNonLocalTargetExtType(Visited); in containsNonLocalTargetExtType() 187 if (auto *STy = dyn_cast<StructType>(this)) { in isEmptyTy() local 188 unsigned NumElements = STy->getNumElements(); in isEmptyTy() 190 if (!STy->getElementType(i)->isEmptyTy()) in isEmptyTy()
|
| H A D | InlineAsm.cpp | 329 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); in verify() 330 if (!STy || STy->getNumElements() != NumOutputs) in verify()
|
| H A D | DataLayout.cpp | 136 StructLayout *&operator[](StructType *STy) { return LayoutInfo[STy]; } in operator []() argument 901 if (StructType *STy = GTI.getStructTypeOrNull()) { in getIndexedOffsetInType() local 906 const StructLayout *Layout = getStructLayout(STy); in getIndexedOffsetInType() 954 if (auto *STy = dyn_cast<StructType>(ElemTy)) { in getGEPIndexForOffset() local 955 const StructLayout *SL = getStructLayout(STy); in getGEPIndexForOffset() 962 ElemTy = STy->getElementType(Index); in getGEPIndexForOffset()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ |
| H A D | Target.cpp | 130 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 D | SetVector.h | 312 template <class STy> 313 bool set_union(const STy &S) { in set_union() 316 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE; in set_union() 327 template <class STy> 328 void set_subtract(const STy &S) { in set_subtract() 329 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 D | SCCPSolver.cpp | 627 auto *STy = cast<StructType>(F->getReturnType()); in invalidate() local 628 for (unsigned I = 0, E = STy->getNumElements(); I != E; ++I) in invalidate() 632 } else if (auto *STy = dyn_cast<StructType>(Inst->getType())) { in invalidate() local 633 for (unsigned I = 0, E = STy->getNumElements(); I != E; ++I) { in invalidate() 784 if (auto *STy = dyn_cast<StructType>(F->getReturnType())) { in addTrackedFunction() local 786 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in addTrackedFunction() 826 auto *STy = dyn_cast<StructType>(V->getType()); in getStructLatticeValueFor() local 827 assert(STy && "getStructLatticeValueFor() can be called only on structs"); in getStructLatticeValueFor() 828 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in getStructLatticeValueFor() 875 if (auto *STy = dyn_cast<StructType>(V->getType())) in markOverdefined() local [all …]
|
| H A D | MetaRenamer.cpp | 200 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/CodeGen/ |
| H A D | Analysis.cpp | 42 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/Transforms/IPO/ |
| H A D | StripSymbols.cpp | 95 for (StructType *STy : StructTypes) { in StripTypeNames() 96 if (STy->isLiteral() || STy->getName().empty()) continue; in StripTypeNames() 98 if (PreserveDbgInfo && STy->getName().starts_with("llvm.dbg")) in StripTypeNames() 101 STy->setName(""); in StripTypeNames()
|
| H A D | DeadArgumentElimination.cpp | 337 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() 826 if (StructType *STy = dyn_cast<StructType>(RetTy)) { in removeDeadStuffFromFunction() local 829 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked()); in removeDeadStuffFromFunction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BTFDebug.h | 127 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, 327 const DISubroutineType *STy, bool ForSubprog, 333 void visitStructType(const DICompositeType *STy, bool IsStruct,
|
| H A D | BTFDebug.cpp | 308 BTFTypeStruct::BTFTypeStruct(const DICompositeType *STy, bool IsStruct, in BTFTypeStruct() argument 310 : STy(STy), HasBitField(HasBitField) { in BTFTypeStruct() 312 BTFType.Size = roundupToBytes(STy->getSizeInBits()); in BTFTypeStruct() 321 BTFType.NameOff = BDebug.addString(STy->getName()); in completeType() 323 if (STy->getTag() == dwarf::DW_TAG_variant_part) { in completeType() 332 const auto *DTy = STy->getDiscriminator(); in completeType() 346 const DINodeArray Elements = STy->getElements(); in completeType() 390 std::string BTFTypeStruct::getName() { return std::string(STy->getName()); } in getName() 398 const DISubroutineType *STy, uint32_t VLen, in BTFTypeFuncProto() argument 400 : STy(STy), FuncArgNames(FuncArgNames) { in BTFTypeFuncProto() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/ |
| H A D | Operations.cpp | 260 auto *STy = cast<StructType>(Cur[0]->getType()); in matchScalarInAggregate() local 261 for (int I = 0, E = STy->getNumElements(); I < E; ++I) in matchScalarInAggregate() 262 if (STy->getTypeAtIndex(I) == V->getType()) in matchScalarInAggregate() 271 auto *STy = cast<StructType>(Cur[0]->getType()); in matchScalarInAggregate() local 272 for (int I = 0, E = STy->getNumElements(); I < E; ++I) in matchScalarInAggregate() 273 makeConstantsWithType(STy->getTypeAtIndex(I), Result); in matchScalarInAggregate()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | Local.cpp | 48 if (StructType *STy = GTI.getStructTypeOrNull()) { in emitGEPOffset() local 50 uint64_t Size = DL.getStructLayout(STy)->getElementOffset(OpValue); in emitGEPOffset()
|
| /freebsd/contrib/llvm-project/llvm/lib/Linker/ |
| H A D | IRMover.cpp | 142 if (auto *STy = dyn_cast<StructType>(SrcTy)) { in recursivelyAddMappingIfTypesAreIsomorphic() local 148 if (STy->hasName()) in recursivelyAddMappingIfTypesAreIsomorphic() 149 STy->setName(""); in recursivelyAddMappingIfTypesAreIsomorphic() 215 auto *STy = cast<StructType>(Ty); in get() local 216 bool IsPacked = STy->isPacked(); in get() 221 if (STy->isOpaque()) { in get() 222 DstStructTypesSet.addOpaque(STy); in get() 228 STy->setName(""); in get() 233 DstStructTypesSet.addNonOpaque(STy); in get() 238 StructType::create(Ty->getContext(), ElementTypes, "", STy->isPacked()); in get() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUMemoryUtils.cpp | 46 if (auto *STy = dyn_cast<StructType>(Ty)) { in isNamedBarrier() local 47 if (STy->getNumElements() == 0) in isNamedBarrier() 49 Ty = STy->getElementType(0); in isNamedBarrier()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonTargetObjectFile.cpp | 298 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 D | AArch64InstrGISel.td | 460 ValueType VTy, ValueType STy, 463 def : Pat<(storeop (STy (vector_extract (VTy VecListOne64:$Vt), (i64 0))), 469 ValueType VTy, ValueType STy, 471 defm : VecStoreLane64_0Pat<am_unscaled64, StoreOp, VTy, STy, SubRegIdx, simm9, STR>; 475 ValueType VecTy, ValueType STy, 479 def : Pat<(storeop (STy (vector_extract (VecTy VecListOne64:$Vt), (i64 0))), 484 def : Pat<(storeop (STy (vector_extract (VecTy VecListOne64:$Vt), (i64 0))),
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
| H A D | RISCV.cpp | 452 llvm::StructType *STy = dyn_cast<llvm::StructType>(CGT.ConvertType(Ty)); in detectVLSCCEligibleStruct() local 453 if (!STy) in detectVLSCCEligibleStruct() 456 unsigned NumElts = STy->getStructNumElements(); in detectVLSCCEligibleStruct() 460 auto *FirstEltTy = STy->getElementType(0); in detectVLSCCEligibleStruct() 461 if (!STy->containsHomogeneousTypes()) in detectVLSCCEligibleStruct()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVCodeGenPrepare.cpp | 266 Type *STy = VTy->getElementType(); in expandVPStrideLoad() local 267 Value *Val = Builder.CreateLoad(STy, BasePtr); in expandVPStrideLoad()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Coroutines/ |
| H A D | CoroShape.h | 215 if (auto STy = dyn_cast<StructType>(FTy->getReturnType())) { in getRetconResultTypes() local 216 return STy->elements().slice(1); in getRetconResultTypes()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Overload.h | 1071 QualType STy = Surrogate->getConversionType(); in getNumParams() local 1072 while (STy->isPointerOrReferenceType()) in getNumParams() 1073 STy = STy->getPointeeType(); in getNumParams() 1074 return STy->castAs<FunctionProtoType>()->getNumParams(); in getNumParams()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprConstant.cpp | 513 llvm::StructType *STy = llvm::ConstantStruct::getTypeForElements( in buildFrom() local 519 if (DesiredSTy->isLayoutIdentical(STy)) in buildFrom() 520 STy = DesiredSTy; in buildFrom() 523 return llvm::ConstantStruct::get(STy, Packed ? PackedElems : UnpackedElems); in buildFrom() 548 auto *STy = dyn_cast<llvm::StructType>(DesiredTy); in condense() local 549 if (STy && STy->getNumElements() == 1 && in condense() 550 STy->getElementType(0) == Elems[First]->getType()) in condense() 551 Elems[First] = llvm::ConstantStruct::get(STy, Elems[First]); in condense() 1222 llvm::StructType *STy = llvm::StructType::get(VMContext, Types, false); in VisitCastExpr() local 1223 return llvm::ConstantStruct::get(STy, Elts); in VisitCastExpr() [all …]
|