Nico Weber
d92ec5fa04
make add_llvm_fuzzer calls slightly more consisten with other cmake
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332112 91177308-0d34-0410-b5e6-96231b3b80d8
2018-05-11 17:58:52 +00:00
Roman Lebedev
c3aaa9b38e
Link to AggressiveInstCombine in a few places. Unbreaks build for me.
...
/usr/local/bin/ld.lld: error: undefined symbol: llvm::createAggressiveInstCombinerPass()
>>> referenced by cc1_main.cpp
>>> tools/clang/tools/driver/CMakeFiles/clang.dir/cc1_main.cpp.o:(_GLOBAL__sub_I_cc1_main.cpp)
And so on
The bot coverage is clearly missing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330693 91177308-0d34-0410-b5e6-96231b3b80d8
2018-04-24 08:40:37 +00:00
Craig Topper
043b23526d
[AggressiveInstCombine] Add library initializer routine for AggressiveInstCombine library. Use it in bugpoint and llvm-opt-fuzzer to match regular InstCombine.
...
This should make aggressive instcombine usable with these tools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330663 91177308-0d34-0410-b5e6-96231b3b80d8
2018-04-24 00:05:21 +00:00
David Blaikie
461bf527e5
Rename *CommandFlags.def to *CommandFlags.inc
...
These aren't the .def style files used in LLVM that require a macro
defined before their inclusion - they're just basic non-modular includes
to stamp out command line flag variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329840 91177308-0d34-0410-b5e6-96231b3b80d8
2018-04-11 18:49:37 +00:00
Rafael Espindola
06d6207c1c
Pass a reference to a module to the bitcode writer.
...
This simplifies most callers as they are already using references or
std::unique_ptr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325155 91177308-0d34-0410-b5e6-96231b3b80d8
2018-02-14 19:11:32 +00:00
Igor Laevsky
8b61abeffd
[llvm-opt-fuzzer] Fix build after rL324225
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324232 91177308-0d34-0410-b5e6-96231b3b80d8
2018-02-05 12:47:40 +00:00
Igor Laevsky
a32887991d
[llvm-opt-fuzzer] Avoid adding incorrect inputs to the fuzzer corpus
...
Differential Revision: https://reviews.llvm.org/D42414
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324225 91177308-0d34-0410-b5e6-96231b3b80d8
2018-02-05 11:05:47 +00:00
Michael Zolotukhin
d770752b5c
Remove redundant includes from tools.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320631 91177308-0d34-0410-b5e6-96231b3b80d8
2017-12-13 21:31:10 +00:00
David Blaikie
d7eaf516d4
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319082 91177308-0d34-0410-b5e6-96231b3b80d8
2017-11-27 19:43:58 +00:00
Igor Laevsky
1404e4cc81
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318407 91177308-0d34-0410-b5e6-96231b3b80d8
2017-11-16 15:23:08 +00:00
Igor Laevsky
68960b1207
[llvm-opt-fuzzer] Add missed library dependence. Fir for rL317883
...
Differential Revision: https://reviews.llvm.org/D39555
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317889 91177308-0d34-0410-b5e6-96231b3b80d8
2017-11-10 15:08:14 +00:00
Igor Laevsky
224217d714
[llvm-opt-fuzzer] Fix unused variable warning after rL317883
...
Differential Revision: https://reviews.llvm.org/D39555
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317887 91177308-0d34-0410-b5e6-96231b3b80d8
2017-11-10 13:19:14 +00:00
Igor Laevsky
089f886ad9
[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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317883 91177308-0d34-0410-b5e6-96231b3b80d8
2017-11-10 12:19:08 +00:00