Home | History | Annotate | Download | only in llvm-stress

Lines Matching defs:Tp

150   Constant *getRandomConstant(Type *Tp) {
151 if (Tp->isIntegerTy()) {
153 return ConstantInt::getAllOnesValue(Tp);
154 return ConstantInt::getNullValue(Tp);
155 } else if (Tp->isFloatingPointTy()) {
157 return ConstantFP::getAllOnesValue(Tp);
158 return ConstantFP::getNullValue(Tp);
160 return UndefValue::get(Tp);
164 Value *getRandomValue(Type *Tp) {
168 if (V->getType() == Tp)
173 if (Tp->isIntegerTy()) {
175 return ConstantInt::getAllOnesValue(Tp);
176 return ConstantInt::getNullValue(Tp);
177 } else if (Tp->isFloatingPointTy()) {
179 return ConstantFP::getAllOnesValue(Tp);
180 return ConstantFP::getNullValue(Tp);
181 } else if (Tp->isVectorTy()) {
182 VectorType *VTp = cast<VectorType>(Tp);
193 return UndefValue::get(Tp);
305 Type *Tp = Ptr->getType();
306 Value *Val = getRandomValue(Tp->getContainedType(0));
412 Type *Tp = pickType();
413 PT->push_back(new AllocaInst(Tp, "A", BB->getFirstNonPHI()));