Lines Matching refs:RS
40 auto RS = makeSampler<Function *>(IB.Rand); in mutate() local
43 RS.sample(&F, /*Weight=*/1); in mutate()
45 if (RS.isEmpty()) in mutate()
48 mutate(*RS.getSelection(), IB); in mutate()
66 auto RS = makeSampler<IRMutationStrategy *>(IB.Rand); in mutateModule() local
68 RS.sample(Strategy.get(), in mutateModule()
69 Strategy->getWeight(CurSize, MaxSize, RS.totalWeight())); in mutateModule()
70 auto Strategy = RS.getSelection(); in mutateModule()
105 auto RS = makeSampler(IB.Rand, make_filter_range(Operations, OpMatchesPred)); in chooseOperation() local
106 if (RS.isEmpty()) in chooseOperation()
108 return *RS; in chooseOperation()
162 auto RS = makeSampler<Instruction *>(IB.Rand); in mutate() local
169 RS.sample(&Inst, /*Weight=*/1); in mutate()
171 if (RS.isEmpty()) in mutate()
175 mutate(*RS.getSelection(), IB); in mutate()
193 auto RS = makeSampler<Value *>(IB.Rand); in mutate() local
199 RS.sample(&*I, /*Weight=*/1); in mutate()
202 if (!RS) in mutate()
203 RS.sample(IB.newSource(*BB, InstsBefore, {}, Pred), /*Weight=*/1); in mutate()
205 Inst.replaceAllUsesWith(RS.getSelection()); in mutate()
247 auto RS = makeSampler(IB.Rand, Modifications); in mutate() local
248 if (RS) in mutate()
249 RS.getSelection()(); in mutate()