14 #ifndef LLVM_FUZZMUTATE_RANDOMIRBUILDER_H 15 #define LLVM_FUZZMUTATE_RANDOMIRBUILDER_H 31 : Rand(Seed), KnownTypes(AllowedTypes.
begin(), AllowedTypes.
end()) {}
62 #endif // LLVM_FUZZMUTATE_RANDOMIRBUILDER_H const_iterator end(StringRef path)
Get end iterator over path.
const_iterator begin(StringRef path, Style style=Style::native)
Get begin iterator over path.
This class represents lattice values for constants.
Value * findPointer(BasicBlock &BB, ArrayRef< Instruction *> Insts, ArrayRef< Value *> Srcs, fuzzerop::SourcePred Pred)
SmallVector< Type *, 16 > KnownTypes
Value * newSource(BasicBlock &BB, ArrayRef< Instruction *> Insts, ArrayRef< Value *> Srcs, fuzzerop::SourcePred Pred)
Create some Value suitable as a source for some operation.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
RandomIRBuilder(int Seed, ArrayRef< Type *> AllowedTypes)
Value * findOrCreateSource(BasicBlock &BB, ArrayRef< Instruction *> Insts)
Find a "source" for some operation, which will be used in one of the operation's operands.
LLVM Basic Block Representation.
The instances of the Type class are immutable: once they are created, they are never changed...
This is an important class for using LLVM in a threaded context.
void connectToSink(BasicBlock &BB, ArrayRef< Instruction *> Insts, Value *V)
Find a viable user for V in Insts, which should all be contained in BB.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
Type * chooseType(LLVMContext &Context, ArrayRef< Value *> Srcs, fuzzerop::SourcePred Pred)
A matcher/generator for finding suitable values for the next source in an operation's partially compl...
void newSink(BasicBlock &BB, ArrayRef< Instruction *> Insts, Value *V)
Create a user for V in BB.
std::mt19937 RandomEngine
LLVM Value Representation.
static cl::opt< unsigned long long > Seed("rng-seed", cl::value_desc("seed"), cl::Hidden, cl::desc("Seed for the random number generator"), cl::init(0))