[PATCH] D94905: [FuzzMutate] Add mutator to modify instruction flags.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 18 03:39:32 PST 2021
fhahn created this revision.
fhahn added reviewers: kcc, bogner, igor-laevsky.
Herald added a subscriber: hiraditya.
fhahn requested review of this revision.
Herald added a project: LLVM.
This patch adds a new InstModificationIRStrategy to mutate flags/options
for instructions. For example, it may add or remove nuw/nsw flags from
add, mul, sub, shl instructions or change the predicate for icmp
instructions.
Subtle changes such as those mentioned above should lead to a more
interesting range of inputs. The presence or absence of overflow flags
can expose subtle bugs, for example.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D94905
Files:
llvm/include/llvm/FuzzMutate/IRMutator.h
llvm/lib/FuzzMutate/IRMutator.cpp
llvm/tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp
llvm/unittests/FuzzMutate/StrategiesTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94905.317320.patch
Type: text/x-patch
Size: 7191 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210118/1fd46c00/attachment.bin>
More information about the llvm-commits
mailing list