LLVM: llvm::IRMutator Class Reference (original) (raw)
Entry point for configuring and running IR mutations. More...
#include "[llvm/FuzzMutate/IRMutator.h](IRMutator%5F8h%5Fsource.html)"
| Static Public Member Functions | |
|---|---|
| static LLVM_ABI 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 64 of file IRMutator.h.
| llvm::IRMutator::IRMutator ( std::vector< TypeGetter > && AllowedTypes, std::vector< std::unique_ptr< IRMutationStrategy > > && Strategies ) | inline |
|---|
◆ getModuleSize()
| size_t llvm::IRMutator::getModuleSize ( const Module & M) | static |
|---|
Calculate the size of module as the number of objects in it, i.e.
instructions, basic blocks, functions, and aliases.
Parameters
Returns
number of objects in module
Definition at line 62 of file IRMutator.cpp.
Referenced by mutateModule().
◆ mutateModule()
| void IRMutator::mutateModule | ( | Module & | M, |
|---|---|---|---|
| int | Seed, | ||
| size_t | MaxSize ) |
Mutate given module.
No change will be made if no strategy is selected.
Parameters
| M | module to mutate |
|---|---|
| Seed | seed for random mutation |
| MaxSize | max module size (see getModuleSize) |
Definition at line 66 of file IRMutator.cpp.
References getModuleSize(), llvm::makeSampler(), and Seed.
The documentation for this class was generated from the following files:
- include/llvm/FuzzMutate/IRMutator.h
- lib/FuzzMutate/IRMutator.cpp