[PATCH] D37495: llvm-isel-fuzzer: Handle a subset of backend flags in the executable name

Justin Bogner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 5 16:06:12 PDT 2017


bogner created this revision.
Herald added subscribers: kristof.beyls, igorb, mcrosier, aemerson.

Here we add a secondary option parser to llvm-isel-fuzzer (and provide
it for use with other fuzzers). With this, you can copy the fuzzer to
a name like llvm-isel-fuzzer:aarch64-gisel for a fuzzer that fuzzer
AArch64 with GlobalISel enabled, or fuzzer:x86_64 to fuzz x86, with no
flags required. This should be useful for running these in OSS-Fuzz.

Note that this handrolls a subset of cl::opts to recognize, rather
than embedding a complete command parser for argv[0]. If we find we
really need the flexibility of handling arbitrary options at some
point we can rethink this.


Repository:
  rL LLVM

https://reviews.llvm.org/D37495

Files:
  include/llvm/FuzzMutate/FuzzerCLI.h
  lib/FuzzMutate/FuzzerCLI.cpp
  test/tools/llvm-isel-fuzzer/execname-options.ll
  tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37495.113927.patch
Type: text/x-patch
Size: 4401 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170905/7f59284f/attachment.bin>


More information about the llvm-commits mailing list