Lines Matching refs:CurTy

2342   Type *CurTy = Type::getInt32Ty(Context);  in parseConstants()  local
2411 V = UndefValue::get(CurTy); in parseConstants()
2414 V = PoisonValue::get(CurTy); in parseConstants()
2423 CurTy = TypeList[Record[0]]; in parseConstants()
2426 if (CurTy->isVoidTy() || CurTy->isFunctionTy() || CurTy->isLabelTy()) in parseConstants()
2428 V = Constant::getNullValue(CurTy); in parseConstants()
2431 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants()
2433 V = ConstantInt::get(CurTy, decodeSignRotatedValue(Record[0])); in parseConstants()
2436 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants()
2440 readWideAPInt(Record, cast<IntegerType>(CurTy)->getBitWidth()); in parseConstants()
2448 if (CurTy->isHalfTy()) in parseConstants()
2451 else if (CurTy->isBFloatTy()) in parseConstants()
2454 else if (CurTy->isFloatTy()) in parseConstants()
2457 else if (CurTy->isDoubleTy()) in parseConstants()
2460 else if (CurTy->isX86_FP80Ty()) { in parseConstants()
2467 } else if (CurTy->isFP128Ty()) in parseConstants()
2470 else if (CurTy->isPPC_FP128Ty()) in parseConstants()
2474 V = UndefValue::get(CurTy); in parseConstants()
2485 if (StructType *STy = dyn_cast<StructType>(CurTy)) { in parseConstants()
2490 } else if (ArrayType *ATy = dyn_cast<ArrayType>(CurTy)) { in parseConstants()
2495 } else if (VectorType *VTy = dyn_cast<VectorType>(CurTy)) { in parseConstants()
2501 V = UndefValue::get(CurTy); in parseConstants()
2520 if (auto *Array = dyn_cast<ArrayType>(CurTy)) in parseConstants()
2523 EltTy = cast<VectorType>(CurTy)->getElementType(); in parseConstants()
2526 if (isa<VectorType>(CurTy)) in parseConstants()
2532 if (isa<VectorType>(CurTy)) in parseConstants()
2538 if (isa<VectorType>(CurTy)) in parseConstants()
2544 if (isa<VectorType>(CurTy)) in parseConstants()
2550 if (isa<VectorType>(CurTy)) in parseConstants()
2556 if (isa<VectorType>(CurTy)) in parseConstants()
2562 if (isa<VectorType>(CurTy)) in parseConstants()
2568 if (isa<VectorType>(CurTy)) in parseConstants()
2580 int Opc = getDecodedUnaryOpcode(Record[0], CurTy); in parseConstants()
2582 V = UndefValue::get(CurTy); // Unknown unop. in parseConstants()
2584 Constant *LHS = ValueList.getConstantFwdRef(Record[1], CurTy); in parseConstants()
2593 int Opc = getDecodedBinaryOpcode(Record[0], CurTy); in parseConstants()
2595 V = UndefValue::get(CurTy); // Unknown binop. in parseConstants()
2597 Constant *LHS = ValueList.getConstantFwdRef(Record[1], CurTy); in parseConstants()
2598 Constant *RHS = ValueList.getConstantFwdRef(Record[2], CurTy); in parseConstants()
2626 V = UndefValue::get(CurTy); // Unknown cast. in parseConstants()
2632 V = UpgradeBitCastExpr(Opc, Op, CurTy); in parseConstants()
2633 if (!V) V = ConstantExpr::getCast(Opc, Op, CurTy); in parseConstants()
2690 if (VectorType *VTy = dyn_cast<VectorType>(CurTy)) in parseConstants()
2698 ValueList.getConstantFwdRef(Record[1],CurTy), in parseConstants()
2699 ValueList.getConstantFwdRef(Record[2],CurTy)); in parseConstants()
2728 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in parseConstants()
2750 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in parseConstants()
2759 VectorType *RTy = dyn_cast<VectorType>(CurTy); in parseConstants()
2805 cast<FunctionType>(cast<PointerType>(CurTy)->getElementType()), in parseConstants()
2831 cast<FunctionType>(cast<PointerType>(CurTy)->getElementType()), in parseConstants()
2858 cast<FunctionType>(cast<PointerType>(CurTy)->getElementType()), in parseConstants()
4217 Type *CurTy = Agg->getType(); in parseFunctionBody() local
4219 bool IsArray = CurTy->isArrayTy(); in parseFunctionBody()
4220 bool IsStruct = CurTy->isStructTy(); in parseFunctionBody()
4227 if (IsStruct && Index >= CurTy->getStructNumElements()) in parseFunctionBody()
4229 if (IsArray && Index >= CurTy->getArrayNumElements()) in parseFunctionBody()
4234 CurTy = CurTy->getStructElementType(Index); in parseFunctionBody()
4236 CurTy = CurTy->getArrayElementType(); in parseFunctionBody()
4239 if (CurTy != Val->getType()) in parseFunctionBody()