Lines Matching defs:Ty

59   Type *Ty = IntegerType::get(CV->getContext(), 32);
62 ConstantExpr::getExtractElement(CV, ConstantInt::get(Ty, i));
333 /// on Ty, with any known factors factored out. If Folded is false,
337 static Constant *getFoldedSizeOf(Type *Ty, Type *DestTy,
339 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
345 if (StructType *STy = dyn_cast<StructType>(Ty))
369 if (PointerType *PTy = dyn_cast<PointerType>(Ty))
382 Constant *C = ConstantExpr::getSizeOf(Ty);
390 /// on Ty, with any known factors factored out. If Folded is false,
394 static Constant *getFoldedAlignOf(Type *Ty, Type *DestTy,
398 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
407 if (StructType *STy = dyn_cast<StructType>(Ty)) {
434 if (PointerType *PTy = dyn_cast<PointerType>(Ty))
448 Constant *C = ConstantExpr::getAlignOf(Ty);
456 /// on Ty and FieldNo, with any known factors factored out. If Folded is false,
460 static Constant *getFoldedOffsetOf(Type *Ty, Constant *FieldNo,
463 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
471 if (StructType *STy = dyn_cast<StructType>(Ty))
503 Constant *C = ConstantExpr::getOffsetOf(Ty, FieldNo);
556 Type *Ty = IntegerType::get(V->getContext(), 32);
559 ConstantExpr::getExtractElement(V, ConstantInt::get(Ty, i));
613 Type *Ty =
619 if (Constant *C = getFoldedSizeOf(Ty, DestTy, !isOne)) {
628 if (StructType *STy = dyn_cast<StructType>(Ty))
638 if (Ty->isStructTy() || Ty->isArrayTy()) {
639 if (Constant *C = getFoldedOffsetOf(Ty, CE->getOperand(2),
706 Type *Ty = IntegerType::get(CondV->getContext(), 32);
712 Constant *Res = ConstantExpr::getExtractElement(V, ConstantInt::get(Ty, i));
771 Type *Ty = IntegerType::get(Val->getContext(), 32);
779 ConstantExpr::getExtractElement(Val, ConstantInt::get(Ty, i));
813 Type *Ty = IntegerType::get(V2->getContext(), 32);
816 ConstantInt::get(Ty, Elt - SrcNumElts));
818 Type *Ty = IntegerType::get(V1->getContext(), 32);
819 InElt = ConstantExpr::getExtractElement(V1, ConstantInt::get(Ty, Elt));
1028 // ashr (zext C to Ty), C2 -> lshr (zext C, CSA), C2
1141 Type *Ty = IntegerType::get(VTy->getContext(), 32);
1144 ConstantExpr::getExtractElement(C1, ConstantInt::get(Ty, i));
1146 ConstantExpr::getExtractElement(C2, ConstantInt::get(Ty, i));
1208 static bool isMaybeZeroSizedType(Type *Ty) {
1209 if (StructType *STy = dyn_cast<StructType>(Ty)) {
1217 } else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
1700 Type *Ty = IntegerType::get(C1->getContext(), 32);
1704 ConstantExpr::getExtractElement(C1, ConstantInt::get(Ty, i));
1706 ConstantExpr::getExtractElement(C2, ConstantInt::get(Ty, i));
1944 Type *Ty = GetElementPtrInst::getIndexedType(Ptr, Idxs);
1945 assert(Ty != 0 && "Invalid indices for GEP!");
1946 return UndefValue::get(PointerType::get(Ty, Ptr->getAddressSpace()));
1958 Type *Ty = GetElementPtrInst::getIndexedType(Ptr, Idxs);
1959 assert(Ty != 0 && "Invalid indices for GEP!");
1960 return ConstantPointerNull::get(PointerType::get(Ty,
2065 Type *Ty = C->getType();
2068 Prev = Ty, Ty = cast<CompositeType>(Ty)->getTypeAtIndex(Idxs[i]), ++i) {
2070 if (isa<ArrayType>(Ty) || isa<VectorType>(Ty))
2072 !isIndexInRangeOfSequentialType(cast<SequentialType>(Ty), CI)) {
2078 if (const ArrayType *ATy = dyn_cast<ArrayType>(Ty))
2081 NumElements = cast<VectorType>(Ty)->getNumElements();