Lines Matching refs:STy
1278 if (llvm::StructType *STy = dyn_cast<llvm::StructType>(Val->getType())) {
1279 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) {
1464 llvm::StructType *STy = dyn_cast<llvm::StructType>(AI.getCoerceToType());
1465 if (AI.isDirect() && AI.getCanBeFlattened() && STy) {
1466 IRArgs.NumberOfArgs = STy->getNumElements();
2607 llvm::StructType *STy = dyn_cast<llvm::StructType>(ArgI.getCoerceToType());
2608 if (ArgI.isDirect() && ArgI.getCanBeFlattened() && STy &&
2609 STy->getNumElements() > 1) {
2610 uint64_t SrcSize = CGM.getDataLayout().getTypeAllocSize(STy);
2616 AddrToStoreInto = Builder.CreateElementBitCast(Ptr, STy);
2619 CreateTempAlloca(STy, Alloca.getAlignment(), "coerce");
2622 assert(STy->getNumElements() == NumIRArgs);
2623 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) {
4573 llvm::StructType *STy =
4575 if (STy && ArgInfo.isDirect() && ArgInfo.getCanBeFlattened()) {
4578 uint64_t DstSize = CGM.getDataLayout().getTypeAllocSize(STy);
4586 = CreateTempAlloca(STy, Src.getAlignment(),
4592 STy->getPointerTo(Src.getAddressSpace()));
4595 assert(NumIRArgs == STy->getNumElements());
4596 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) {