Rafael Espindola
6a86e25d90
Pass a reference to a module to the bitcode writer.
...
This simplifies most callers as they are already using references or
std::unique_ptr.
llvm-svn: 325155
2018-02-14 19:11:32 +00:00
Igor Laevsky
8bf95e250e
[llvm-opt-fuzzer] Fix build after rL324225
...
llvm-svn: 324232
2018-02-05 12:47:40 +00:00
Igor Laevsky
14c979da32
[llvm-opt-fuzzer] Avoid adding incorrect inputs to the fuzzer corpus
...
Differential Revision: https://reviews.llvm.org/D42414
llvm-svn: 324225
2018-02-05 11:05:47 +00:00
Michael Zolotukhin
62602a476a
Remove redundant includes from tools.
...
llvm-svn: 320631
2017-12-13 21:31:10 +00:00
David Blaikie
c14bfec487
Rename CommandFlags.h -> CommandFlags.def
...
Since this isn't a real header - it includes static functions and had
external linkage variables (though this change makes them static, since
that's what they should be) so can't be included more than once in a
program.
llvm-svn: 319082
2017-11-27 19:43:58 +00:00
Igor Laevsky
e714ef49af
[FuzzMutate] NFC. Move parseModule and writeModule from llvm-isel-fuzzer into FuzzMutate.
...
This is to be able to reuse them in the llvm-opt-fuzzer.
llvm-svn: 318407
2017-11-16 15:23:08 +00:00
Igor Laevsky
c262777ab0
[llvm-opt-fuzzer] Add missed library dependence. Fir for rL317883
...
Differential Revision: https://reviews.llvm.org/D39555
llvm-svn: 317889
2017-11-10 15:08:14 +00:00
Igor Laevsky
c05ee9d7f7
[llvm-opt-fuzzer] Fix unused variable warning after rL317883
...
Differential Revision: https://reviews.llvm.org/D39555
llvm-svn: 317887
2017-11-10 13:19:14 +00:00
Igor Laevsky
13cc995c3d
[llvm-opt-fuzzer] Introduce llvm-opt-fuzzer for fuzzing optimization passes
...
This change adds generic fuzzing tools capable of running libFuzzer tests on
any optimization pass or combination of them.
Differential Revision: https://reviews.llvm.org/D39555
llvm-svn: 317883
2017-11-10 12:19:08 +00:00