Lines Matching refs:PT
129 Modifier(BasicBlock *Block, PieceTable *PT, Random *R):
130 BB(Block),PT(PT),Ran(R),Context(BB->getContext()) {}
146 assert(PT->size());
147 return PT->at(Ran->Rand() % PT->size());
166 for (unsigned i=0; i<PT->size(); ++i) {
167 Value *V = PT->at((index + i) % PT->size());
199 for (unsigned i=0; i<PT->size(); ++i) {
200 Value *V = PT->at((index + i) % PT->size());
210 for (unsigned i=0; i<PT->size(); ++i) {
211 Value *V = PT->at((index + i) % PT->size());
283 PieceTable *PT;
291 LoadModifier(BasicBlock *BB, PieceTable *PT, Random *R):Modifier(BB, PT, R) {}
296 PT->push_back(V);
301 StoreModifier(BasicBlock *BB, PieceTable *PT, Random *R):Modifier(BB, PT, R) {}
319 BinModifier(BasicBlock *BB, PieceTable *PT, Random *R):Modifier(BB, PT, R) {}
357 PT->push_back(BinaryOperator::Create(Op, Val0, Val1, "B", Term));
363 ConstModifier(BasicBlock *BB, PieceTable *PT, Random *R):Modifier(BB, PT, R) {}
370 return PT->push_back(ConstantVector::getAllOnesValue(Ty));
372 return PT->push_back(ConstantVector::getNullValue(Ty));
387 return PT->push_back(ConstantFP::getNullValue(Ty));
388 return PT->push_back(ConstantFP::get(Ty->getContext(), RandomFloat));
394 return PT->push_back(ConstantInt::get(Ty,
397 return PT->push_back(ConstantInt::get(Ty,
401 PT->push_back(ConstantInt::get(Ty, Ran->Rand()));
409 AllocaModifier(BasicBlock *BB, PieceTable *PT, Random *R):Modifier(BB, PT, R){}
413 PT->push_back(new AllocaInst(Tp, "A", BB->getFirstNonPHI()));
418 ExtractElementModifier(BasicBlock *BB, PieceTable *PT, Random *R):
419 Modifier(BB, PT, R) {}
427 return PT->push_back(V);
432 ShuffModifier(BasicBlock *BB, PieceTable *PT, Random *R):Modifier(BB, PT, R) {}
454 PT->push_back(V);
459 InsertElementModifier(BasicBlock *BB, PieceTable *PT, Random *R):
460 Modifier(BB, PT, R) {}
470 return PT->push_back(V);
476 CastModifier(BasicBlock *BB, PieceTable *PT, Random *R):Modifier(BB, PT, R) {}
496 return PT->push_back(
505 return PT->push_back(
513 return PT->push_back(
518 return PT->push_back(
520 return PT->push_back(new SExtInst(V, DestTy, "Se", BB->getTerminator()));
528 return PT->push_back(
530 return PT->push_back(new FPToUIInst(V, DestTy, "FC", BB->getTerminator()));
537 return PT->push_back(
539 return PT->push_back(new UIToFPInst(V, DestTy, "FC", BB->getTerminator()));
547 return PT->push_back(
550 return PT->push_back(
561 SelectModifier(BasicBlock *BB, PieceTable *PT, Random *R):
562 Modifier(BB, PT, R) {}
580 return PT->push_back(V);
586 CmpModifier(BasicBlock *BB, PieceTable *PT, Random *R):Modifier(BB, PT, R) {}
608 return PT->push_back(V);
620 Modifier::PieceTable PT;
625 PT.push_back(it);
629 std::unique_ptr<Modifier> LM(new LoadModifier(BB, &PT, &R));
630 std::unique_ptr<Modifier> SM(new StoreModifier(BB, &PT, &R));
631 std::unique_ptr<Modifier> EE(new ExtractElementModifier(BB, &PT, &R));
632 std::unique_ptr<Modifier> SHM(new ShuffModifier(BB, &PT, &R));
633 std::unique_ptr<Modifier> IE(new InsertElementModifier(BB, &PT, &R));
634 std::unique_ptr<Modifier> BM(new BinModifier(BB, &PT, &R));
635 std::unique_ptr<Modifier> CM(new CastModifier(BB, &PT, &R));
636 std::unique_ptr<Modifier> SLM(new SelectModifier(BB, &PT, &R));
637 std::unique_ptr<Modifier> PM(new CmpModifier(BB, &PT, &R));
649 AllocaModifier AM(BB, &PT, &R); AM.ActN(5); // Throw in a few allocas
650 ConstModifier COM(BB, &PT, &R); COM.ActN(40); // Throw in a few constants