Lines Matching refs:Tp
170 Constant *getRandomConstant(Type *Tp) { in getRandomConstant()
171 if (Tp->isIntegerTy()) { in getRandomConstant()
173 return ConstantInt::getAllOnesValue(Tp); in getRandomConstant()
174 return ConstantInt::getNullValue(Tp); in getRandomConstant()
175 } else if (Tp->isFloatingPointTy()) { in getRandomConstant()
177 return ConstantFP::getAllOnesValue(Tp); in getRandomConstant()
178 return ConstantFP::getNullValue(Tp); in getRandomConstant()
180 return UndefValue::get(Tp); in getRandomConstant()
184 Value *getRandomValue(Type *Tp) { in getRandomValue()
188 if (V->getType() == Tp) in getRandomValue()
193 if (Tp->isIntegerTy()) { in getRandomValue()
195 return ConstantInt::getAllOnesValue(Tp); in getRandomValue()
196 return ConstantInt::getNullValue(Tp); in getRandomValue()
197 } else if (Tp->isFloatingPointTy()) { in getRandomValue()
199 return ConstantFP::getAllOnesValue(Tp); in getRandomValue()
200 return ConstantFP::getNullValue(Tp); in getRandomValue()
201 } else if (Tp->isVectorTy()) { in getRandomValue()
202 VectorType *VTp = cast<VectorType>(Tp); in getRandomValue()
213 return UndefValue::get(Tp); in getRandomValue()
312 Type *Tp = Ptr->getType(); in Act() local
313 Value *Val = getRandomValue(Tp->getContainedType(0)); in Act()
419 Type *Tp = pickType(); in Act() local
420 PT->push_back(new AllocaInst(Tp, "A", BB->getFirstNonPHI())); in Act()