Lines Matching refs:CurTy

2340   Type *CurTy = Type::getInt32Ty(Context);  in parseConstants()  local
2411 V = UndefValue::get(CurTy); in parseConstants()
2414 V = PoisonValue::get(CurTy); in parseConstants()
2424 CurTy = flattenPointerTypes(CurFullTy); in parseConstants()
2427 if (CurTy->isVoidTy() || CurTy->isFunctionTy() || CurTy->isLabelTy()) in parseConstants()
2429 V = Constant::getNullValue(CurTy); in parseConstants()
2432 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants()
2434 V = ConstantInt::get(CurTy, decodeSignRotatedValue(Record[0])); in parseConstants()
2437 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants()
2441 readWideAPInt(Record, cast<IntegerType>(CurTy)->getBitWidth()); in parseConstants()
2449 if (CurTy->isHalfTy()) in parseConstants()
2452 else if (CurTy->isBFloatTy()) in parseConstants()
2455 else if (CurTy->isFloatTy()) in parseConstants()
2458 else if (CurTy->isDoubleTy()) in parseConstants()
2461 else if (CurTy->isX86_FP80Ty()) { in parseConstants()
2468 } else if (CurTy->isFP128Ty()) in parseConstants()
2471 else if (CurTy->isPPC_FP128Ty()) in parseConstants()
2475 V = UndefValue::get(CurTy); in parseConstants()
2486 if (StructType *STy = dyn_cast<StructType>(CurTy)) { in parseConstants()
2491 } else if (ArrayType *ATy = dyn_cast<ArrayType>(CurTy)) { in parseConstants()
2496 } else if (VectorType *VTy = dyn_cast<VectorType>(CurTy)) { in parseConstants()
2502 V = UndefValue::get(CurTy); in parseConstants()
2521 if (auto *Array = dyn_cast<ArrayType>(CurTy)) in parseConstants()
2524 EltTy = cast<VectorType>(CurTy)->getElementType(); in parseConstants()
2527 if (isa<VectorType>(CurTy)) in parseConstants()
2533 if (isa<VectorType>(CurTy)) in parseConstants()
2539 if (isa<VectorType>(CurTy)) in parseConstants()
2545 if (isa<VectorType>(CurTy)) in parseConstants()
2551 if (isa<VectorType>(CurTy)) in parseConstants()
2557 if (isa<VectorType>(CurTy)) in parseConstants()
2563 if (isa<VectorType>(CurTy)) in parseConstants()
2569 if (isa<VectorType>(CurTy)) in parseConstants()
2581 int Opc = getDecodedUnaryOpcode(Record[0], CurTy); in parseConstants()
2583 V = UndefValue::get(CurTy); // Unknown unop. in parseConstants()
2585 Constant *LHS = ValueList.getConstantFwdRef(Record[1], CurTy); in parseConstants()
2594 int Opc = getDecodedBinaryOpcode(Record[0], CurTy); in parseConstants()
2596 V = UndefValue::get(CurTy); // Unknown binop. in parseConstants()
2598 Constant *LHS = ValueList.getConstantFwdRef(Record[1], CurTy); in parseConstants()
2599 Constant *RHS = ValueList.getConstantFwdRef(Record[2], CurTy); in parseConstants()
2627 V = UndefValue::get(CurTy); // Unknown cast. in parseConstants()
2633 V = UpgradeBitCastExpr(Opc, Op, CurTy); in parseConstants()
2634 if (!V) V = ConstantExpr::getCast(Opc, Op, CurTy); in parseConstants()
2692 if (VectorType *VTy = dyn_cast<VectorType>(CurTy)) in parseConstants()
2700 ValueList.getConstantFwdRef(Record[1],CurTy), in parseConstants()
2701 ValueList.getConstantFwdRef(Record[2],CurTy)); in parseConstants()
2730 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in parseConstants()
2752 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in parseConstants()
2761 VectorType *RTy = dyn_cast<VectorType>(CurTy); in parseConstants()
4152 Type *CurTy = Agg->getType(); in parseFunctionBody() local
4154 bool IsArray = CurTy->isArrayTy(); in parseFunctionBody()
4155 bool IsStruct = CurTy->isStructTy(); in parseFunctionBody()
4162 if (IsStruct && Index >= CurTy->getStructNumElements()) in parseFunctionBody()
4164 if (IsArray && Index >= CurTy->getArrayNumElements()) in parseFunctionBody()
4169 CurTy = CurTy->getStructElementType(Index); in parseFunctionBody()
4171 CurTy = CurTy->getArrayElementType(); in parseFunctionBody()
4174 if (CurTy != Val->getType()) in parseFunctionBody()