LLVM 20.0.0git
|
Entry point for configuring and running IR mutations. More...
#include "llvm/FuzzMutate/IRMutator.h"
Public Member Functions | |
IRMutator (std::vector< TypeGetter > &&AllowedTypes, std::vector< std::unique_ptr< IRMutationStrategy > > &&Strategies) | |
void | mutateModule (Module &M, int Seed, size_t MaxSize) |
Mutate given module. | |
Static Public Member Functions | |
static size_t | getModuleSize (const Module &M) |
Calculate the size of module as the number of objects in it, i.e. | |
Entry point for configuring and running IR mutations.
Definition at line 63 of file IRMutator.h.
|
inline |
Definition at line 68 of file IRMutator.h.
Calculate the size of module as the number of objects in it, i.e.
instructions, basic blocks, functions, and aliases.
M | module |
Definition at line 60 of file IRMutator.cpp.
Referenced by mutateModule().
void IRMutator::mutateModule | ( | Module & | M, |
int | Seed, | ||
size_t | MaxSize | ||
) |
Mutate given module.
No change will be made if no strategy is selected.
M | module to mutate |
Seed | seed for random mutation |
MaxSize | max module size (see getModuleSize) |
Definition at line 64 of file IRMutator.cpp.
References getModuleSize(), and Seed.