LLVM: llvm::IRMutationStrategy Class Reference (original) (raw)
Base class for describing how to mutate a module. More...
#include "[llvm/FuzzMutate/IRMutator.h](IRMutator%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| virtual | ~IRMutationStrategy ()=default |
| virtual uint64_t | getWeight (size_t CurrentSize, size_t MaxSize, uint64_t CurrentWeight)=0 |
| Provide a weight to bias towards choosing this strategy for a mutation. | |
| virtual void | mutate (Module &M, RandomIRBuilder &IB) |
| virtual void | mutate (Function &F, RandomIRBuilder &IB) |
| virtual void | mutate (BasicBlock &BB, RandomIRBuilder &IB) |
| virtual void | mutate (Instruction &I, RandomIRBuilder &IB) |
Base class for describing how to mutate a module.
mutation functions for each IR unit forward to the contained unit.
Definition at line 36 of file IRMutator.h.
| virtual llvm::IRMutationStrategy::~IRMutationStrategy ( ) | virtualdefault |
|---|
◆ getWeight()
| virtual uint64_t llvm::IRMutationStrategy::getWeight ( size_t CurrentSize, size_t MaxSize, uint64_t CurrentWeight ) | pure virtual |
|---|
◆ mutate() [1/4]
◆ mutate() [2/4]
◆ mutate() [3/4]
◆ mutate() [4/4]
The documentation for this class was generated from the following files:
- include/llvm/FuzzMutate/IRMutator.h
- lib/FuzzMutate/IRMutator.cpp