Go to the documentation of this file.
15 #ifndef LLVM_SUPPORT_RANDOMNUMBERGENERATOR_H_
16 #define LLVM_SUPPORT_RANDOMNUMBERGENERATOR_H_
21 #include <system_error>
38 using generator_type = std::mt19937_64;
56 generator_type Generator;
This is an optimization pass for GlobalISel generic memory operations.
result_type operator()()
Returns a random number in the range [0, Max).
std::error_code getRandomBytes(void *Buffer, size_t Size)
Expected< ExpressionValue > max(const ExpressionValue &Lhs, const ExpressionValue &Rhs)
A random number generator.
generator_type::result_type result_type
static constexpr result_type max()
static constexpr result_type min()
A Module instance is used to store all the information related to an LLVM module.
Expected< ExpressionValue > min(const ExpressionValue &Lhs, const ExpressionValue &Rhs)
StringRef - Represent a constant reference to a string, i.e.