Lines Matching refs:RS

36   auto RS = makeSampler<Function *>(IB.Rand);  in mutate()  local
39 RS.sample(&F, /*Weight=*/1); in mutate()
41 while (RS.totalWeight() < IB.MinFunctionNum) { in mutate()
43 RS.sample(F, /*Weight=*/1); in mutate()
45 mutate(*RS.getSelection(), IB); in mutate()
70 auto RS = makeSampler<IRMutationStrategy *>(IB.Rand); in mutateModule() local
72 RS.sample(Strategy.get(), in mutateModule()
73 Strategy->getWeight(CurSize, MaxSize, RS.totalWeight())); in mutateModule()
74 if (RS.totalWeight() == 0) in mutateModule()
76 auto Strategy = RS.getSelection(); in mutateModule()
111 auto RS = makeSampler(IB.Rand, make_filter_range(Operations, OpMatchesPred)); in chooseOperation() local
112 if (RS.isEmpty()) in chooseOperation()
114 return *RS; in chooseOperation()
174 auto RS = makeSampler<Instruction *>(IB.Rand); in mutate() local
181 RS.sample(&Inst, /*Weight=*/1); in mutate()
183 if (RS.isEmpty()) in mutate()
187 mutate(*RS.getSelection(), IB); in mutate()
205 auto RS = makeSampler<Value *>(IB.Rand); in mutate() local
211 RS.sample(&*I, /*Weight=*/1); in mutate()
214 if (!RS) in mutate()
215 RS.sample(IB.newSource(*BB, InstsBefore, {}, Pred), /*Weight=*/1); in mutate()
217 Inst.replaceAllUsesWith(RS.getSelection()); in mutate()
342 auto RS = makeSampler(IB.Rand, Modifications); in mutate() local
343 if (RS) in mutate()
344 RS.getSelection()(); in mutate()
367 auto RS = makeSampler(IB.Rand, Functions); in mutate() local
368 Function *F = RS.getSelection(); in mutate()
458 auto RS = in mutate() local
462 assert(RS && "There is no integer type in all allowed types, is the " in mutate()
464 Type *Ty = RS.getSelection(); in mutate()
639 auto RS = makeSampler<size_t>(IB.Rand); in mutate() local
641 RS.sample(RootIdx, 1); in mutate()
642 size_t RootIdx = RS.getSelection(); in mutate()