Lines Matching defs:RS
37 auto RS = makeSampler<Function *>(IB.Rand);
40 RS.sample(&F, /*Weight=*/1);
42 while (RS.totalWeight() < IB.MinFunctionNum) {
44 RS.sample(F, /*Weight=*/1);
46 mutate(*RS.getSelection(), IB);
71 auto RS = makeSampler<IRMutationStrategy *>(IB.Rand);
73 RS.sample(Strategy.get(),
74 Strategy->getWeight(CurSize, MaxSize, RS.totalWeight()));
75 if (RS.totalWeight() == 0)
77 auto Strategy = RS.getSelection();
112 auto RS = makeSampler(IB.Rand, make_filter_range(Operations, OpMatchesPred));
113 if (RS.isEmpty())
115 return *RS;
175 auto RS = makeSampler<Instruction *>(IB.Rand);
182 RS.sample(&Inst, /*Weight=*/1);
184 if (RS.isEmpty())
188 mutate(*RS.getSelection(), IB);
206 auto RS = makeSampler<Value *>(IB.Rand);
212 RS.sample(&*I, /*Weight=*/1);
215 if (!RS)
216 RS.sample(IB.newSource(*BB, InstsBefore, {}, Pred), /*Weight=*/1);
218 Inst.replaceAllUsesWith(RS.getSelection());
343 auto RS = makeSampler(IB.Rand, Modifications);
344 if (RS)
345 RS.getSelection()();
368 auto RS = makeSampler(IB.Rand, Functions);
369 Function *F = RS.getSelection();
459 auto RS =
463 assert(RS && "There is no integer type in all allowed types, is the "
465 Type *Ty = RS.getSelection();
642 auto RS = makeSampler<size_t>(IB.Rand);
644 RS.sample(RootIdx, 1);
645 size_t RootIdx = RS.getSelection();