1. Sep 04, 2020
  2. Sep 03, 2020
    • Dokyung Song's avatar
      [libFuzzer] Add an option to keep initial seed inputs around. · 62673c43
      Dokyung Song authored
      This patch adds an option "keep_seed" to keep all initial seed inputs in the
      corpus. Previously, only the initial seed inputs that find new coverage were
      added to the corpus, and all the other initial inputs were discarded. We
      observed in some circumstances that useful initial seed inputs are discarded as
      they find no new coverage, even though they contain useful fragments in them
      (e.g., SQLITE3 FuzzBench benchmark). This newly added option provides a way to
      keeping seed inputs in the corpus for those circumstances. With this patch, and
      with -keep_seed=1, all initial seed inputs are kept in the corpus regardless of
      whether they find new coverage or not. Further, these seed inputs are not
      replaced with smaller inputs even if -reduce_inputs=1.
      
      Differential Revision: https://reviews.llvm.org/D86577
      62673c43
    • Jamie Schmeiser's avatar
      Add new hidden option -print-changed which only reports changes to IR · 7bc9924c
      Jamie Schmeiser authored
      A new hidden option -print-changed is added along with code to support
      printing the IR as it passes through the opt pipeline in the new pass
      manager. Only those passes that change the IR are reported, with others
      only having the banner reported, indicating that they did not change the
      IR, were filtered out or ignored. Filtering of output via the
      -filter-print-funcs is supported and a new supporting hidden option
      -filter-passes is added. The latter takes a comma separated list of pass
      names and filters the output to only show those passes in the list that
      change the IR. The output can also be modified via the -print-module-scope
      function.
      
      The code introduces a template base class that generalizes the comparison
      of IRs that takes an IR representation as template parameter. The
      constructor takes a series of lambdas that provide an event based API
      for generalized reporting of IRs as they are changed in the opt pipeline
      through the new pass manager.
      
      The first of several instantiations is provided that prints the IR
      in a form similar to that produced by -print-after-all with the above
      mentioned filtering capabilities. This version, and the others to
      follow will be introduced at the upcoming developer's conference.
      See https://hotcrp.llvm.org/usllvm2020/paper/29 for more information.
      
      Reviewed By: yrouban (Yevgeny Rouban)
      
      Differential Revision: https://reviews.llvm.org/D86360
      7bc9924c
    • JF Bastien's avatar
      Step down from security group · baa74e01
      JF Bastien authored
      Propose Ahmed as a replacement. He's fixed many security issues in LLVM for Apple in the last few years, as such he'll fit the "Individual contributors" description.
      
      Differential Revision: https://reviews.llvm.org/D86742
      baa74e01
    • Matt Morehouse's avatar
      [fuzzer] Create user provided fuzzer writeable directories when requested if they dont exist · 711b9806
      Matt Morehouse authored
      Currently, libFuzzer will exit with an error message if a non-existent
      directory is provided for any of the appropriate arguments. For cases
      where libFuzzer is used in a specialized embedded environment, it would
      be much easier to have libFuzzer create the directories for the user.
      
      This patch accommodates for this scenario by allowing the user to provide
      the argument `-create_missing_dirs=1` which makes libFuzzer attempt to
      create the `artifact_prefix`, `exact_artifact_path`,
      `features_dir` and/or corpus directory if they don't already exist rather
      than throw an error and exit.
      
      Split off from D84808 as requested [here](https://reviews.llvm.org/D84808#2208546).
      
      Reviewed By: morehouse
      
      Differential Revision: https://reviews.llvm.org/D86733
      711b9806
    • Simon Pilgrim's avatar
      GlobalISel/Utils.h - remove unused includes. NFCI. · 898e42db
      Simon Pilgrim authored
      Twine is unused, and TargetLowering can be reduced to a forward declaration and moved to Utils.cpp
      898e42db
    • Yitzhak Mandelbaum's avatar
      [libTooling] Provide overloads of `rewriteDescendants` that operate directly on an AST node. · d4f39031
      Yitzhak Mandelbaum authored
      The new overloads apply directly to a node, like the
      `clang::ast_matchers::match` functions, Rather than generating an
      `EditGenerator` combinator.
      
      Differential Revision: https://reviews.llvm.org/D87031
      d4f39031
    • Simon Pilgrim's avatar
    • Simon Pilgrim's avatar
      Fix spelling mistake. NFC. · 0563cd67
      Simon Pilgrim authored
      0563cd67
    • Sanjay Patel's avatar
      [IR][GVN] add/allow commutative intrinsics with >2 args · bdd5bfd0
      Sanjay Patel authored
      Follow-up to D86798 and rGe25449ff.
      bdd5bfd0