Lines Matching refs:Insts
22 ArrayRef<Instruction *> Insts) { in findOrCreateSource() argument
23 return findOrCreateSource(BB, Insts, {}, anyType()); in findOrCreateSource()
27 ArrayRef<Instruction *> Insts, in findOrCreateSource() argument
33 auto RS = makeSampler(Rand, make_filter_range(Insts, MatchesPred)); in findOrCreateSource()
38 return newSource(BB, Insts, Srcs, Pred); in findOrCreateSource()
41 Value *RandomIRBuilder::newSource(BasicBlock &BB, ArrayRef<Instruction *> Insts, in newSource() argument
48 Value *Ptr = findPointer(BB, Insts, Srcs, Pred); in newSource()
96 ArrayRef<Instruction *> Insts, Value *V) { in connectToSink() argument
98 for (auto &I : Insts) { in connectToSink()
117 newSink(BB, Insts, V); in connectToSink()
120 void RandomIRBuilder::newSink(BasicBlock &BB, ArrayRef<Instruction *> Insts, in newSink() argument
122 Value *Ptr = findPointer(BB, Insts, {V}, matchFirstType()); in newSink()
130 new StoreInst(V, Ptr, Insts.back()); in newSink()
134 ArrayRef<Instruction *> Insts, in findPointer() argument
153 if (auto RS = makeSampler(Rand, make_filter_range(Insts, IsMatchingPtr))) in findPointer()