Lines Matching refs:CurTy

2158   Type *CurTy = Type::getInt32Ty(Context);  in parseConstants()  local
2187 V = UndefValue::get(CurTy); in parseConstants()
2194 CurTy = TypeList[Record[0]]; in parseConstants()
2197 V = Constant::getNullValue(CurTy); in parseConstants()
2200 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants()
2202 V = ConstantInt::get(CurTy, decodeSignRotatedValue(Record[0])); in parseConstants()
2205 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants()
2209 readWideAPInt(Record, cast<IntegerType>(CurTy)->getBitWidth()); in parseConstants()
2217 if (CurTy->isHalfTy()) in parseConstants()
2220 else if (CurTy->isFloatTy()) in parseConstants()
2223 else if (CurTy->isDoubleTy()) in parseConstants()
2226 else if (CurTy->isX86_FP80Ty()) { in parseConstants()
2233 } else if (CurTy->isFP128Ty()) in parseConstants()
2236 else if (CurTy->isPPC_FP128Ty()) in parseConstants()
2240 V = UndefValue::get(CurTy); in parseConstants()
2251 if (StructType *STy = dyn_cast<StructType>(CurTy)) { in parseConstants()
2256 } else if (ArrayType *ATy = dyn_cast<ArrayType>(CurTy)) { in parseConstants()
2261 } else if (VectorType *VTy = dyn_cast<VectorType>(CurTy)) { in parseConstants()
2267 V = UndefValue::get(CurTy); in parseConstants()
2285 Type *EltTy = cast<SequentialType>(CurTy)->getElementType(); in parseConstants()
2290 if (isa<VectorType>(CurTy)) in parseConstants()
2296 if (isa<VectorType>(CurTy)) in parseConstants()
2302 if (isa<VectorType>(CurTy)) in parseConstants()
2308 if (isa<VectorType>(CurTy)) in parseConstants()
2315 if (isa<VectorType>(CurTy)) in parseConstants()
2323 if (isa<VectorType>(CurTy)) in parseConstants()
2336 int Opc = getDecodedBinaryOpcode(Record[0], CurTy); in parseConstants()
2338 V = UndefValue::get(CurTy); // Unknown binop. in parseConstants()
2340 Constant *LHS = ValueList.getConstantFwdRef(Record[1], CurTy); in parseConstants()
2341 Constant *RHS = ValueList.getConstantFwdRef(Record[2], CurTy); in parseConstants()
2369 V = UndefValue::get(CurTy); // Unknown cast. in parseConstants()
2375 V = UpgradeBitCastExpr(Opc, Op, CurTy); in parseConstants()
2376 if (!V) V = ConstantExpr::getCast(Opc, Op, CurTy); in parseConstants()
2415 if (VectorType *VTy = dyn_cast<VectorType>(CurTy)) in parseConstants()
2421 ValueList.getConstantFwdRef(Record[1],CurTy), in parseConstants()
2422 ValueList.getConstantFwdRef(Record[2],CurTy)); in parseConstants()
2449 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in parseConstants()
2469 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in parseConstants()
2481 VectorType *RTy = dyn_cast<VectorType>(CurTy); in parseConstants()
2528 PointerType *PTy = cast<PointerType>(CurTy); in parseConstants()
2553 PointerType *PTy = cast<PointerType>(CurTy); in parseConstants()
3580 Type *CurTy = Agg->getType(); in parseFunctionBody() local
3582 bool IsArray = CurTy->isArrayTy(); in parseFunctionBody()
3583 bool IsStruct = CurTy->isStructTy(); in parseFunctionBody()
3590 if (IsStruct && Index >= CurTy->subtypes().size()) in parseFunctionBody()
3592 if (IsArray && Index >= CurTy->getArrayNumElements()) in parseFunctionBody()
3597 CurTy = CurTy->subtypes()[Index]; in parseFunctionBody()
3599 CurTy = CurTy->subtypes()[0]; in parseFunctionBody()
3622 Type *CurTy = Agg->getType(); in parseFunctionBody() local
3624 bool IsArray = CurTy->isArrayTy(); in parseFunctionBody()
3625 bool IsStruct = CurTy->isStructTy(); in parseFunctionBody()
3632 if (IsStruct && Index >= CurTy->subtypes().size()) in parseFunctionBody()
3634 if (IsArray && Index >= CurTy->getArrayNumElements()) in parseFunctionBody()
3639 CurTy = CurTy->subtypes()[Index]; in parseFunctionBody()
3641 CurTy = CurTy->subtypes()[0]; in parseFunctionBody()
3644 if (CurTy != Val->getType()) in parseFunctionBody()