Lines Matching defs:Tp
209 Constant *getRandomConstant(Type *Tp) {
210 if (Tp->isIntegerTy()) {
212 return ConstantInt::getAllOnesValue(Tp);
213 return ConstantInt::getNullValue(Tp);
214 } else if (Tp->isFloatingPointTy()) {
216 return ConstantFP::getAllOnesValue(Tp);
217 return ConstantFP::getNullValue(Tp);
219 return UndefValue::get(Tp);
223 Value *getRandomValue(Type *Tp) {
227 if (V->getType() == Tp)
232 if (Tp->isIntegerTy()) {
234 return ConstantInt::getAllOnesValue(Tp);
235 return ConstantInt::getNullValue(Tp);
236 } else if (Tp->isFloatingPointTy()) {
238 return ConstantFP::getAllOnesValue(Tp);
239 return ConstantFP::getNullValue(Tp);
240 } else if (Tp->isVectorTy()) {
241 VectorType *VTp = cast<VectorType>(Tp);
252 return UndefValue::get(Tp);
358 PointerType *Tp = cast<PointerType>(Ptr->getType());
359 Value *Val = getRandomValue(Tp->getElementType());
471 Type *Tp = pickType();
473 PT->push_back(new AllocaInst(Tp, DL.getAllocaAddrSpace(),