Lines Matching refs:STy
142 StructType *STy = cast<StructType>(Ty);
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 = cast<StructType>(MAT);
1327 for (unsigned FieldNo = 0, e = STy->getNumElements(); FieldNo != e;++FieldNo){
1328 Type *FieldTy = STy->getElementType(FieldNo);
1877 auto *STy = S->getValueOperand()->getType();
1882 DL.getTypeStoreSize(LTy) <= DL.getTypeStoreSize(STy);
2546 if (StructType *STy = dyn_cast<StructType>(Init->getType())) {
2548 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i)
2554 assert(Idx < STy->getNumElements() && "Struct index out of range!");
2558 return ConstantStruct::get(STy, Elts);
2684 if (StructType *STy = dyn_cast<StructType>(CurrentInitTy))
2685 CurrentGV->setInitializer(ConstantStruct::get(STy, Elts));
2697 if (auto *STy = dyn_cast<StructType>(Ty))
2698 NumElts = STy->getNumElements();