/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | Operator.cpp | 44 if (StructType *STy = GTI.getStructTypeOrNull()) { 45 const StructLayout *SL = DL.getStructLayout(STy); 97 StructType *STy = GTI.getStructTypeOrNull(); local 107 if (STy) { 109 const StructLayout *SL = DL.getStructLayout(STy); 125 if (!ExternalAnalysis || STy || ScalableType)
|
H A D | TypeFinder.cpp | 103 if (StructType *STy = dyn_cast<StructType>(Ty)) 104 if (!OnlyNamed || STy->hasName()) 105 StructTypes.push_back(STy);
|
H A D | InlineAsm.cpp | 293 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); local 294 if (!STy || STy->getNumElements() != NumOutputs)
|
H A D | ConstantFold.cpp | 362 if (StructType *STy = dyn_cast<StructType>(Ty)) 363 if (!STy->isPacked()) { 364 unsigned NumElems = STy->getNumElements(); 370 getFoldedSizeOf(STy->getElementType(0), DestTy, true); 374 getFoldedSizeOf(STy->getElementType(i), DestTy, true)) { 422 if (StructType *STy = dyn_cast<StructType>(Ty)) { 424 if (STy->isPacked()) 430 unsigned NumElems = STy->getNumElements(); 436 getFoldedAlignOf(STy->getElementType(0), DestTy, true); 439 if (MemberAlign != getFoldedAlignOf(STy 2469 auto *STy = cast<ArrayType>(Ty); local [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | MetaRenamer.cpp | 116 for (StructType *STy : StructTypes) { 117 if (STy->isLiteral() || STy->getName().empty()) continue; 120 STy->setName((Twine("struct.") +
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ |
H A D | Target.cpp | 134 StructType *STy = unwrap<StructType>(StructTy); local 135 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); 140 StructType *STy = unwrap<StructType>(StructTy); local 141 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element);
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | SetVector.h | 244 template <class STy> 245 bool set_union(const STy &S) { 248 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE; 259 template <class STy> 260 void set_subtract(const STy &S) { 261 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE;
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | IPConstantPropagation.cpp | 171 StructType *STy = dyn_cast<StructType>(F.getReturnType()); local 172 if (STy) 173 for (unsigned i = 0, e = STy->getNumElements(); i < e; ++i) 174 RetVals.push_back(UndefValue::get(STy->getElementType(i))); 189 if (!STy) 238 if (!STy) {
|
H A D | StripSymbols.cpp | 182 StructType *STy = StructTypes[i]; local 183 if (STy->isLiteral() || STy->getName().empty()) continue; 185 if (PreserveDbgInfo && STy->getName().startswith("llvm.dbg")) 188 STy->setName("");
|
H A D | ArgumentPromotion.cpp | 144 StructType *STy = cast<StructType>(AgTy); local 145 Params.insert(Params.end(), STy->element_begin(), STy->element_end()); 146 ArgAttrVec.insert(ArgAttrVec.end(), STy->getNumElements(), 260 StructType *STy = cast<StructType>(AgTy); local 263 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 266 IRB.CreateGEP(STy, *AI, Idxs, (*AI)->getName() + "." + Twine(i)); 268 Args.push_back(IRB.CreateLoad(STy->getElementType(i), Idx, 389 StructType *STy = cast<StructType>(AgTy); local 393 for (unsigned i = 0, e = STy [all...] |
H A D | DeadArgumentElimination.cpp | 330 else if (StructType *STy = dyn_cast<StructType>(RetTy)) 331 return STy->getNumElements(); 345 if (StructType *STy = dyn_cast<StructType>(RetTy)) 346 return STy->getElementType(Idx); 817 if (StructType *STy = dyn_cast<StructType>(RetTy)) { 820 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked());
|
H A D | GlobalOpt.cpp | 142 StructType *STy = cast<StructType>(Ty); local 143 if (STy->isOpaque()) return true; 144 for (StructType::element_iterator I = STy->element_begin(), 145 E = STy->element_end(); I != E; ++I) { 530 if (StructType *STy = dyn_cast<StructType>(Ty)) 531 ElTy = STy->getElementType(ElementIdx); 547 if (StructType *STy = dyn_cast<StructType>(Ty)) { 548 const StructLayout &Layout = *DL.getStructLayout(STy); 555 if (NewAlign > DL.getABITypeAlign(STy->getElementType(ElementIdx))) 1310 StructType *STy [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/Utils/ |
H A D | Local.h | 54 if (StructType *STy = GTI.getStructTypeOrNull()) { 56 Size = DL.getStructLayout(STy)->getElementOffset(OpValue);
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/FuzzMutate/ |
H A D | Operations.cpp | 226 auto *STy = cast<StructType>(Cur[0]->getType()); 227 for (int I = 0, E = STy->getNumElements(); I < E; ++I) 228 if (STy->getTypeAtIndex(I) == V->getType()) 237 auto *STy = cast<StructType>(Cur[0]->getType()); 238 for (int I = 0, E = STy->getNumElements(); I < E; ++I) 239 makeConstantsWithType(STy->getTypeAtIndex(I), Result);
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Linker/ |
H A D | IRMover.cpp | 67 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes); 104 if (auto *STy = dyn_cast<StructType>(Ty)) 105 if (STy->hasName()) 106 STy->setName(""); 216 void TypeMapTy::finishType(StructType *DTy, StructType *STy, argument 218 DTy->setBody(ETypes, STy->isPacked()); 220 // Steal STy's name. 221 if (STy->hasName()) { 222 SmallString<16> TmpName = STy->getName(); 223 STy 245 StructType *STy = cast<StructType>(Ty); local 289 auto *STy = cast<StructType>(Ty); local 321 auto *STy = cast<StructType>(Ty); local [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/BPF/ |
H A D | BTFDebug.h | 121 const DICompositeType *STy; member in class:llvm::BTFTypeStruct 126 BTFTypeStruct(const DICompositeType *STy, bool IsStruct, bool HasBitField, 138 const DISubroutineType *STy; member in class:llvm::BTFTypeFuncProto 143 BTFTypeFuncProto(const DISubroutineType *STy, uint32_t NumParams, 274 const DISubroutineType *STy, bool ForSubprog, 280 void visitStructType(const DICompositeType *STy, bool IsStruct,
|
H A D | BTFDebug.cpp | 223 BTFTypeStruct::BTFTypeStruct(const DICompositeType *STy, bool IsStruct, argument 225 : STy(STy), HasBitField(HasBitField) { 227 BTFType.Size = roundupToBytes(STy->getSizeInBits()); 236 BTFType.NameOff = BDebug.addString(STy->getName()); 239 const DINodeArray Elements = STy->getElements(); 267 std::string BTFTypeStruct::getName() { return std::string(STy->getName()); } 275 const DISubroutineType *STy, uint32_t VLen, 277 : STy(STy), FuncArgName 274 BTFTypeFuncProto( const DISubroutineType *STy, uint32_t VLen, const std::unordered_map<uint32_t, StringRef> &FuncArgNames) argument 427 visitSubroutineType( const DISubroutineType *STy, bool ForSubprog, const std::unordered_map<uint32_t, StringRef> &FuncArgNames, uint32_t &TypeId) argument [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | SCCP.cpp | 231 if (auto *STy = dyn_cast<StructType>(F->getReturnType())) { 233 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 282 auto *STy = dyn_cast<StructType>(V->getType()); local 283 assert(STy && "getStructLatticeValueFor() can be called only on structs"); 284 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 330 if (auto *STy = dyn_cast<StructType>(V->getType())) 331 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 340 bool isStructLatticeConstant(Function *F, StructType *STy) { argument 341 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 794 if (auto *STy 866 auto *STy = dyn_cast<StructType>(IVI.getType()); local 2065 StructType *STy = cast<StructType>(F->getReturnType()); local [all...] |
H A D | SROA.cpp | 736 if (StructType *STy = GTI.getStructTypeOrNull()) { 738 const StructLayout *SL = DL.getStructLayout(STy); 1428 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { 1429 if (STy->element_begin() == STy->element_end()) 1431 ElementTy = *STy->element_begin(); 1495 StructType *STy = dyn_cast<StructType>(Ty); 1496 if (!STy) 1499 const StructLayout *SL = DL.getStructLayout(STy); 1505 Type *ElementTy = STy [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | Analysis.cpp | 45 if (StructType *STy = dyn_cast<StructType>(Ty)) { 46 for (StructType::element_iterator EB = STy->element_begin(), 48 EE = STy->element_end(); 90 if (StructType *STy = dyn_cast<StructType>(Ty)) { 91 const StructLayout *SL = DL.getStructLayout(STy); 92 for (StructType::element_iterator EB = STy->element_begin(), 94 EE = STy->element_end(); 133 if (StructType *STy = dyn_cast<StructType>(&Ty)) { 134 const StructLayout *SL = DL.getStructLayout(STy); 135 for (unsigned I = 0, E = STy [all...] |
H A D | ShadowStackGCLowering.cpp | 129 StructType *STy = StructType::create(EltTys, "gc_map." + utostr(NumMeta)); local 131 Constant *FrameMap = ConstantStruct::get(STy, DescriptorElts);
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Overload.h | 898 QualType STy = Surrogate->getConversionType(); local 899 while (STy->isPointerType() || STy->isReferenceType()) 900 STy = STy->getPointeeType(); 901 return STy->castAs<FunctionProtoType>()->getNumParams();
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | CoroInternal.h | 190 if (auto STy = dyn_cast<StructType>(FTy->getReturnType())) { 191 return STy->elements().slice(1);
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonTargetObjectFile.cpp | 299 const StructType *STy = cast<const StructType>(Ty); local 300 for (auto &E : STy->elements()) { 305 return (STy->getNumElements() == 0) ? 0 : SmallestElement;
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 492 llvm::StructType *STy = llvm::ConstantStruct::getTypeForElements( local 498 if (DesiredSTy->isLayoutIdentical(STy)) 499 STy = DesiredSTy; 502 return llvm::ConstantStruct::get(STy, Packed ? PackedElems : UnpackedElems); 527 auto *STy = dyn_cast<llvm::StructType>(DesiredTy); local 528 if (STy && STy->getNumElements() == 1 && 529 STy->getElementType(0) == Elems[First]->getType()) 530 Elems[First] = llvm::ConstantStruct::get(STy, Elems[First]); 1080 llvm::StructType *STy local 2047 llvm::StructType *STy = local 2070 llvm::StructType *STy = local [all...] |