[all-commits] [llvm/llvm-project] 6998b3: [FuzzMutate] InsertFunctionStrategy

Peter Rong via All-commits all-commits at lists.llvm.org
Wed Apr 19 20:09:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6998b34c7ac889a586d22b4aa69580899b716452
      https://github.com/llvm/llvm-project/commit/6998b34c7ac889a586d22b4aa69580899b716452
  Author: Peter Rong <PeterRong96 at gmail.com>
  Date:   2023-04-19 (Wed, 19 Apr 2023)

  Changed paths:
    M llvm/include/llvm/FuzzMutate/IRMutator.h
    M llvm/include/llvm/FuzzMutate/RandomIRBuilder.h
    M llvm/lib/FuzzMutate/IRMutator.cpp
    M llvm/lib/FuzzMutate/RandomIRBuilder.cpp
    M llvm/unittests/FuzzMutate/StrategiesTest.cpp

  Log Message:
  -----------
  [FuzzMutate] InsertFunctionStrategy

InsertFunctionStrategy does two things:

1. Add a random function declaration or definition to the module. This would replace previously used `createEmptyFunction`.
2. Add a random function call between instructions.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D148568




More information about the All-commits mailing list