Lines Matching refs:Tp
148 Constant *getRandomConstant(Type *Tp) { in getRandomConstant()
149 if (Tp->isIntegerTy()) { in getRandomConstant()
151 return ConstantInt::getAllOnesValue(Tp); in getRandomConstant()
152 return ConstantInt::getNullValue(Tp); in getRandomConstant()
153 } else if (Tp->isFloatingPointTy()) { in getRandomConstant()
155 return ConstantFP::getAllOnesValue(Tp); in getRandomConstant()
156 return ConstantFP::getNullValue(Tp); in getRandomConstant()
158 return UndefValue::get(Tp); in getRandomConstant()
162 Value *getRandomValue(Type *Tp) { in getRandomValue()
166 if (V->getType() == Tp) in getRandomValue()
171 if (Tp->isIntegerTy()) { in getRandomValue()
173 return ConstantInt::getAllOnesValue(Tp); in getRandomValue()
174 return ConstantInt::getNullValue(Tp); in getRandomValue()
175 } else if (Tp->isFloatingPointTy()) { in getRandomValue()
177 return ConstantFP::getAllOnesValue(Tp); in getRandomValue()
178 return ConstantFP::getNullValue(Tp); in getRandomValue()
179 } else if (Tp->isVectorTy()) { in getRandomValue()
180 VectorType *VTp = cast<VectorType>(Tp); in getRandomValue()
191 return UndefValue::get(Tp); in getRandomValue()
303 Type *Tp = Ptr->getType(); in Act() local
304 Value *Val = getRandomValue(Tp->getContainedType(0)); in Act()
410 Type *Tp = pickType(); in Act() local
411 PT->push_back(new AllocaInst(Tp, "A", BB->getFirstNonPHI())); in Act()