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