Lines Matching defs:Tp
215 Constant *getRandomConstant(Type *Tp) {
216 if (Tp->isIntegerTy()) {
218 return ConstantInt::getAllOnesValue(Tp);
219 return ConstantInt::getNullValue(Tp);
220 } else if (Tp->isFloatingPointTy()) {
222 return ConstantFP::getAllOnesValue(Tp);
223 return ConstantFP::getZero(Tp);
225 return UndefValue::get(Tp);
229 Value *getRandomValue(Type *Tp) {
233 if (V->getType() == Tp)
238 if (Tp->isIntegerTy()) {
240 return ConstantInt::getAllOnesValue(Tp);
241 return ConstantInt::getNullValue(Tp);
242 } else if (Tp->isFloatingPointTy()) {
244 return ConstantFP::getAllOnesValue(Tp);
245 return ConstantFP::getZero(Tp);
246 } else if (auto *VTp = dyn_cast<FixedVectorType>(Tp)) {
256 return UndefValue::get(Tp);
458 Type *Tp = pickType();
460 PT->push_back(new AllocaInst(Tp, DL.getAllocaAddrSpace(), "A",