Lines Matching refs:Rand
91 auto RS = makeSampler(Rand, make_filter_range(GlobalVars, MatchesPred)); in findOrCreateGlobalVariable()
97 auto TRS = makeSampler<Constant *>(Rand); in findOrCreateGlobalVariable()
123 std::shuffle(SrcTys.begin(), SrcTys.end(), Rand); in findOrCreateSource()
127 auto RS = makeSampler(Rand, make_filter_range(Insts, MatchesPred)); in findOrCreateSource()
139 auto RS = makeSampler(Rand, make_filter_range(Args, MatchesPred)); in findOrCreateSource()
147 std::shuffle(Dominators.begin(), Dominators.end(), Rand); in findOrCreateSource()
154 makeSampler(Rand, make_filter_range(Instructions, MatchesPred)); in findOrCreateSource()
202 auto RS = makeSampler<Value *>(Rand); in newSource()
296 std::shuffle(SinkTys.begin(), SinkTys.end(), Rand); in connectToSink()
299 auto RS = makeSampler<Use *>(Rand); in connectToSink()
324 std::shuffle(Dominators.begin(), Dominators.end(), Rand); in connectToSink()
335 std::shuffle(Dominatees.begin(), Dominatees.end(), Rand); in connectToSink()
368 if (uniform(Rand, 0, 1)) { in newSink()
389 if (auto RS = makeSampler(Rand, make_filter_range(Insts, IsMatchingPtr))) in findPointer()
395 uint64_t TyIdx = uniform<uint64_t>(Rand, 0, KnownTypes.size() - 1); in randomType()
415 M, uniform<uint64_t>(Rand, MinArgNum, MaxArgNum)); in createFunctionDeclaration()
441 M, uniform<uint64_t>(Rand, MinArgNum, MaxArgNum)); in createFunctionDefinition()