[PATCH] D140239: [llvm-stress] Add a mutation fuzzing mode
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 16 11:45:10 PST 2022
reames added a comment.
In D140239#4002162 <https://reviews.llvm.org/D140239#4002162>, @nikic wrote:
> Is there much overlap between `llvm-stress generate` and `llvm-stress mutate`? Maybe that should just be a separate `llvm-mutate` tool? (Just throwing this out there, not advocating for anything in particular...)
I'm open to either option here.
My thinking went as follows:
1. They both related to generating test cases for fuzzing. (i.e the "stress" part of the name)
2. The generate mode is simply a mutator starting with an empty function. At the moment, the code is separate, but it might make sense to merge parts. (Or not, no concrete plans here.) From a usage perspective, a user might want to use both llvm-stress generate, and llvm-stress mutate (on an empty input) at some experimentally established frequency. (As right now, the two modes generate different patterns at different frequencies.)
3. As we adjust control knobs (i.e size, types, enable-disable flags), we're more likely to have a consistent interface if the tools in the same source.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140239/new/
https://reviews.llvm.org/D140239
More information about the llvm-commits
mailing list