Lines Matching refs:CurTy
2846 Type *CurTy = Type::getInt32Ty(Context); in parseConstants() local
2847 unsigned Int32TyID = getVirtualTypeID(CurTy); in parseConstants()
2881 V = UndefValue::get(CurTy); in parseConstants()
2884 V = PoisonValue::get(CurTy); in parseConstants()
2894 CurTy = TypeList[CurTyID]; in parseConstants()
2898 if (CurTy->isVoidTy() || CurTy->isFunctionTy() || CurTy->isLabelTy()) in parseConstants()
2900 V = Constant::getNullValue(CurTy); in parseConstants()
2903 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants()
2905 V = ConstantInt::get(CurTy, decodeSignRotatedValue(Record[0])); in parseConstants()
2908 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants()
2912 readWideAPInt(Record, cast<IntegerType>(CurTy)->getBitWidth()); in parseConstants()
2920 if (CurTy->isHalfTy()) in parseConstants()
2923 else if (CurTy->isBFloatTy()) in parseConstants()
2926 else if (CurTy->isFloatTy()) in parseConstants()
2929 else if (CurTy->isDoubleTy()) in parseConstants()
2932 else if (CurTy->isX86_FP80Ty()) { in parseConstants()
2939 } else if (CurTy->isFP128Ty()) in parseConstants()
2942 else if (CurTy->isPPC_FP128Ty()) in parseConstants()
2946 V = UndefValue::get(CurTy); in parseConstants()
2959 if (isa<StructType>(CurTy)) { in parseConstants()
2961 Alloc, CurTy, BitcodeConstant::ConstantStructOpcode, Elts); in parseConstants()
2962 } else if (isa<ArrayType>(CurTy)) { in parseConstants()
2963 V = BitcodeConstant::create(Alloc, CurTy, in parseConstants()
2965 } else if (isa<VectorType>(CurTy)) { in parseConstants()
2967 Alloc, CurTy, BitcodeConstant::ConstantVectorOpcode, Elts); in parseConstants()
2969 V = UndefValue::get(CurTy); in parseConstants()
2988 if (auto *Array = dyn_cast<ArrayType>(CurTy)) in parseConstants()
2991 EltTy = cast<VectorType>(CurTy)->getElementType(); in parseConstants()
2994 if (isa<VectorType>(CurTy)) in parseConstants()
3000 if (isa<VectorType>(CurTy)) in parseConstants()
3006 if (isa<VectorType>(CurTy)) in parseConstants()
3012 if (isa<VectorType>(CurTy)) in parseConstants()
3018 if (isa<VectorType>(CurTy)) in parseConstants()
3024 if (isa<VectorType>(CurTy)) in parseConstants()
3030 if (isa<VectorType>(CurTy)) in parseConstants()
3036 if (isa<VectorType>(CurTy)) in parseConstants()
3048 int Opc = getDecodedUnaryOpcode(Record[0], CurTy); in parseConstants()
3050 V = UndefValue::get(CurTy); // Unknown unop. in parseConstants()
3052 V = BitcodeConstant::create(Alloc, CurTy, Opc, (unsigned)Record[1]); in parseConstants()
3059 int Opc = getDecodedBinaryOpcode(Record[0], CurTy); in parseConstants()
3061 V = UndefValue::get(CurTy); // Unknown binop. in parseConstants()
3081 V = BitcodeConstant::create(Alloc, CurTy, {(uint8_t)Opc, Flags}, in parseConstants()
3091 V = UndefValue::get(CurTy); // Unknown cast. in parseConstants()
3097 V = BitcodeConstant::create(Alloc, CurTy, Opc, (unsigned)Record[2]); in parseConstants()
3153 V = BitcodeConstant::create(Alloc, CurTy, in parseConstants()
3164 Alloc, CurTy, Instruction::Select, in parseConstants()
3188 V = BitcodeConstant::create(Alloc, CurTy, Instruction::ExtractElement, in parseConstants()
3194 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in parseConstants()
3209 Alloc, CurTy, Instruction::InsertElement, in parseConstants()
3214 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in parseConstants()
3218 Alloc, CurTy, Instruction::ShuffleVector, in parseConstants()
3223 VectorType *RTy = dyn_cast<VectorType>(CurTy); in parseConstants()
3229 Alloc, CurTy, Instruction::ShuffleVector, in parseConstants()
3241 Alloc, CurTy, in parseConstants()
3375 Alloc, CurTy, in parseConstants()
3388 Alloc, CurTy, BitcodeConstant::DSOLocalEquivalentOpcode, Record[1]); in parseConstants()
3398 V = BitcodeConstant::create(Alloc, CurTy, BitcodeConstant::NoCFIOpcode, in parseConstants()
4888 Type *CurTy = Agg->getType(); in parseFunctionBody() local
4890 bool IsArray = CurTy->isArrayTy(); in parseFunctionBody()
4891 bool IsStruct = CurTy->isStructTy(); in parseFunctionBody()
4898 if (IsStruct && Index >= CurTy->getStructNumElements()) in parseFunctionBody()
4900 if (IsArray && Index >= CurTy->getArrayNumElements()) in parseFunctionBody()
4905 CurTy = CurTy->getStructElementType(Index); in parseFunctionBody()
4907 CurTy = CurTy->getArrayElementType(); in parseFunctionBody()
4910 if (CurTy != Val->getType()) in parseFunctionBody()