Lines Matching refs:CurTy

3000   Type *CurTy = Type::getInt32Ty(Context);  in parseConstants()  local
3001 unsigned Int32TyID = getVirtualTypeID(CurTy); in parseConstants()
3035 V = UndefValue::get(CurTy); in parseConstants()
3038 V = PoisonValue::get(CurTy); in parseConstants()
3048 CurTy = TypeList[CurTyID]; in parseConstants()
3052 if (CurTy->isVoidTy() || CurTy->isFunctionTy() || CurTy->isLabelTy()) in parseConstants()
3054 if (auto *TETy = dyn_cast<TargetExtType>(CurTy)) in parseConstants()
3057 V = Constant::getNullValue(CurTy); in parseConstants()
3060 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants()
3062 V = ConstantInt::get(CurTy, decodeSignRotatedValue(Record[0])); in parseConstants()
3065 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants()
3069 readWideAPInt(Record, cast<IntegerType>(CurTy)->getBitWidth()); in parseConstants()
3077 if (CurTy->isHalfTy()) in parseConstants()
3080 else if (CurTy->isBFloatTy()) in parseConstants()
3083 else if (CurTy->isFloatTy()) in parseConstants()
3086 else if (CurTy->isDoubleTy()) in parseConstants()
3089 else if (CurTy->isX86_FP80Ty()) { in parseConstants()
3096 } else if (CurTy->isFP128Ty()) in parseConstants()
3099 else if (CurTy->isPPC_FP128Ty()) in parseConstants()
3103 V = UndefValue::get(CurTy); in parseConstants()
3116 if (isa<StructType>(CurTy)) { in parseConstants()
3118 Alloc, CurTy, BitcodeConstant::ConstantStructOpcode, Elts); in parseConstants()
3119 } else if (isa<ArrayType>(CurTy)) { in parseConstants()
3120 V = BitcodeConstant::create(Alloc, CurTy, in parseConstants()
3122 } else if (isa<VectorType>(CurTy)) { in parseConstants()
3124 Alloc, CurTy, BitcodeConstant::ConstantVectorOpcode, Elts); in parseConstants()
3126 V = UndefValue::get(CurTy); in parseConstants()
3145 if (auto *Array = dyn_cast<ArrayType>(CurTy)) in parseConstants()
3148 EltTy = cast<VectorType>(CurTy)->getElementType(); in parseConstants()
3151 if (isa<VectorType>(CurTy)) in parseConstants()
3157 if (isa<VectorType>(CurTy)) in parseConstants()
3163 if (isa<VectorType>(CurTy)) in parseConstants()
3169 if (isa<VectorType>(CurTy)) in parseConstants()
3175 if (isa<VectorType>(CurTy)) in parseConstants()
3181 if (isa<VectorType>(CurTy)) in parseConstants()
3187 if (isa<VectorType>(CurTy)) in parseConstants()
3193 if (isa<VectorType>(CurTy)) in parseConstants()
3205 int Opc = getDecodedUnaryOpcode(Record[0], CurTy); in parseConstants()
3207 V = UndefValue::get(CurTy); // Unknown unop. in parseConstants()
3209 V = BitcodeConstant::create(Alloc, CurTy, Opc, (unsigned)Record[1]); in parseConstants()
3216 int Opc = getDecodedBinaryOpcode(Record[0], CurTy); in parseConstants()
3218 V = UndefValue::get(CurTy); // Unknown binop. in parseConstants()
3238 V = BitcodeConstant::create(Alloc, CurTy, {(uint8_t)Opc, Flags}, in parseConstants()
3248 V = UndefValue::get(CurTy); // Unknown cast. in parseConstants()
3254 V = BitcodeConstant::create(Alloc, CurTy, Opc, (unsigned)Record[2]); in parseConstants()
3308 V = BitcodeConstant::create(Alloc, CurTy, in parseConstants()
3319 Alloc, CurTy, Instruction::Select, in parseConstants()
3343 V = BitcodeConstant::create(Alloc, CurTy, Instruction::ExtractElement, in parseConstants()
3349 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in parseConstants()
3364 Alloc, CurTy, Instruction::InsertElement, in parseConstants()
3369 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in parseConstants()
3373 Alloc, CurTy, Instruction::ShuffleVector, in parseConstants()
3378 VectorType *RTy = dyn_cast<VectorType>(CurTy); in parseConstants()
3384 Alloc, CurTy, Instruction::ShuffleVector, in parseConstants()
3396 Alloc, CurTy, in parseConstants()
3530 Alloc, CurTy, in parseConstants()
3543 Alloc, CurTy, BitcodeConstant::DSOLocalEquivalentOpcode, Record[1]); in parseConstants()
3553 V = BitcodeConstant::create(Alloc, CurTy, BitcodeConstant::NoCFIOpcode, in parseConstants()
5092 Type *CurTy = Agg->getType(); in parseFunctionBody() local
5094 bool IsArray = CurTy->isArrayTy(); in parseFunctionBody()
5095 bool IsStruct = CurTy->isStructTy(); in parseFunctionBody()
5102 if (IsStruct && Index >= CurTy->getStructNumElements()) in parseFunctionBody()
5104 if (IsArray && Index >= CurTy->getArrayNumElements()) in parseFunctionBody()
5109 CurTy = CurTy->getStructElementType(Index); in parseFunctionBody()
5111 CurTy = CurTy->getArrayElementType(); in parseFunctionBody()
5114 if (CurTy != Val->getType()) in parseFunctionBody()