Lines Matching defs:CurTy
2525 Type *CurTy = Type::getInt32Ty(Context);
2554 V = UndefValue::get(CurTy);
2561 CurTy = TypeList[Record[0]];
2564 V = Constant::getNullValue(CurTy);
2567 if (!CurTy->isIntegerTy() || Record.empty())
2569 V = ConstantInt::get(CurTy, decodeSignRotatedValue(Record[0]));
2572 if (!CurTy->isIntegerTy() || Record.empty())
2576 readWideAPInt(Record, cast<IntegerType>(CurTy)->getBitWidth());
2584 if (CurTy->isHalfTy())
2587 else if (CurTy->isFloatTy())
2590 else if (CurTy->isDoubleTy())
2593 else if (CurTy->isX86_FP80Ty()) {
2600 } else if (CurTy->isFP128Ty())
2603 else if (CurTy->isPPC_FP128Ty())
2607 V = UndefValue::get(CurTy);
2618 if (StructType *STy = dyn_cast<StructType>(CurTy)) {
2623 } else if (ArrayType *ATy = dyn_cast<ArrayType>(CurTy)) {
2628 } else if (VectorType *VTy = dyn_cast<VectorType>(CurTy)) {
2634 V = UndefValue::get(CurTy);
2652 Type *EltTy = cast<SequentialType>(CurTy)->getElementType();
2655 if (isa<VectorType>(CurTy))
2661 if (isa<VectorType>(CurTy))
2667 if (isa<VectorType>(CurTy))
2673 if (isa<VectorType>(CurTy))
2679 if (isa<VectorType>(CurTy))
2685 if (isa<VectorType>(CurTy))
2691 if (isa<VectorType>(CurTy))
2704 int Opc = getDecodedBinaryOpcode(Record[0], CurTy);
2706 V = UndefValue::get(CurTy); // Unknown binop.
2708 Constant *LHS = ValueList.getConstantFwdRef(Record[1], CurTy);
2709 Constant *RHS = ValueList.getConstantFwdRef(Record[2], CurTy);
2737 V = UndefValue::get(CurTy); // Unknown cast.
2743 V = UpgradeBitCastExpr(Opc, Op, CurTy);
2744 if (!V) V = ConstantExpr::getCast(Opc, Op, CurTy);
2783 if (VectorType *VTy = dyn_cast<VectorType>(CurTy))
2790 ValueList.getConstantFwdRef(Record[1],CurTy),
2791 ValueList.getConstantFwdRef(Record[2],CurTy));
2818 VectorType *OpTy = dyn_cast<VectorType>(CurTy);
2838 VectorType *OpTy = dyn_cast<VectorType>(CurTy);
2850 VectorType *RTy = dyn_cast<VectorType>(CurTy);
2897 PointerType *PTy = cast<PointerType>(CurTy);
2922 PointerType *PTy = cast<PointerType>(CurTy);
4199 Type *CurTy = Agg->getType();
4201 bool IsArray = CurTy->isArrayTy();
4202 bool IsStruct = CurTy->isStructTy();
4209 if (IsStruct && Index >= CurTy->subtypes().size())
4211 if (IsArray && Index >= CurTy->getArrayNumElements())
4216 CurTy = CurTy->subtypes()[Index];
4218 CurTy = CurTy->subtypes()[0];
4241 Type *CurTy = Agg->getType();
4243 bool IsArray = CurTy->isArrayTy();
4244 bool IsStruct = CurTy->isStructTy();
4251 if (IsStruct && Index >= CurTy->subtypes().size())
4253 if (IsArray && Index >= CurTy->getArrayNumElements())
4258 CurTy = CurTy->subtypes()[Index];
4260 CurTy = CurTy->subtypes()[0];
4263 if (CurTy != Val->getType())