Home
last modified time | relevance | path

Searched full:random (Results 1 – 25 of 1295) sorted by relevance

12345678910>>...52

/llvm-project/clang-tools-extra/test/clang-tidy/checkers/cert/
H A Dmsc51-cpp.cpp74 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: random number generator seeded with a constant value w… in f()
76 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: random number generator seeded with a constant value w… in f()
78 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: random number generator seeded with a disallowed sourc… in f()
82 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: random number generator seeded with a default argumen… in f()
84 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: random number generator seeded with a constant value … in f()
86 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: random number generator seeded with a constant value … in f()
88 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: random number generator seeded with a disallowed sour… in f()
90 …// CHECK-MESSAGES: :[[@LINE-1]]:11: warning: random number generator seeded with a default argumen… in f()
92 …// CHECK-MESSAGES: :[[@LINE-1]]:11: warning: random number generator seeded with a constant value … in f()
94 …// CHECK-MESSAGES: :[[@LINE-1]]:11: warning: random number generator seeded with a constant value … in f()
[all …]
/llvm-project/llvm/test/Analysis/BasicAA/
H A Dnegoffset.ll6 declare ptr @random.i32(ptr %ptr)
7 declare ptr @random.i8(ptr %ptr)
14 %random = call ptr @random.i32(ptr %alloca)
15 %p0 = getelementptr inbounds i32, ptr %random, i32 0
16 %p1 = getelementptr inbounds i32, ptr %random, i32 1
27 %random = call ptr @random.i32(ptr %arg)
28 %p0 = getelementptr inbounds i32, ptr %random, i32 0
29 %p1 = getelementptr inbounds i32, ptr %random, i32 1
38 ; CHECK-DAG: MayAlias: i32* %random, i32* @gv
41 %random = call ptr @random.i32(ptr @gv)
[all …]
/llvm-project/polly/lib/External/isl/imath/tests/
H A Dimath-test.scm3 ;;; Purpose: Code to generate random rational number test cases.
8 ;; Generate a random natural number with the specified number of digits.
9 (define (random-big-natural digits)
13 (let ((rnd (random 10)))
21 ;; Generate a random integer with the specified number of digits and
23 (define (random-big-integer digits pneg)
24 (let ((base (random-big-natural digits)))
25 (if (< (random-real) pneg)
29 ;; Generate a random rational number with the specified number of numerator and
31 (define (random-big-rational n-digits d-digits pneg)
[all …]
/llvm-project/clang/lib/Headers/
H A Drdseedintrin.h20 /// Stores a hardware-generated 16-bit random value in the memory at \a __p.
22 /// The random number generator complies with NIST SP800-90B and SP800-90C.
39 /// Pointer to memory for storing the 16-bit random number.
40 /// \returns 1 if a random number was generated, 0 if not.
47 /// Stores a hardware-generated 32-bit random value in the memory at \a __p.
49 /// The random number generator complies with NIST SP800-90B and SP800-90C.
66 /// Pointer to memory for storing the 32-bit random number.
67 /// \returns 1 if a random number was generated, 0 if not.
75 /// Stores a hardware-generated 64-bit random value in the memory at \a __p.
77 /// The random number generator complies with NIST SP800-90B and SP800-90C.
[all …]
/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp1 //===- llvm-stress.cpp - Generate random LL files to stress-test LLVM -----===//
9 // This program is a utility that generates random .ll files to stress-test
82 /// A utility class to provide a pseudo-random number generator which is
86 class Random { class
89 Random(unsigned _seed):Seed(_seed) {} in Random() function in llvm::__anon707eaac40111::Random
91 /// Return a random integer, up to a
96 // Only lowest 19 bits are random-ish. in Rand()
100 /// Return a random 64 bit integer.
114 /// Make this like a C++11 random device
122 assert(Val <= max() && "Random valu in operator ()()
[all...]
/llvm-project/llvm/utils/
H A Dshuffle_select_fuzz_tester.py6 instructions. It generates a function with a random sequnece of shufflevectors
18 import random
236 # Returns a random vector type to be tested
264 num_elts = random.choice(range(2, 65))
268 if random.randint(0, 1):
270 width = random.choice(int_elt_widths)
273 width = random.choice(float_elt_widths)
283 if SHUF_UNDEF_POS / ty.elt_num > random.random():
286 mask.append(random
[all...]
/llvm-project/lld/test/MachO/tools/
H A Dgenerate-cfi-funcs.py8 import random
24 have_lsda = random.random() < lsda_odds
25 frame_size = random.randint(4, 64) * 16
26 frame_offset = -random.randint(0, int(frame_size / 16 - 4)) * 16
28 func_size = random.randint(func_size_low, func_size_high) * 0x10
86 return "".join(random.choice(string.ascii_lowercase) for i in range(10))
108 help="Seed the random number generator",
129 random.seed(args.seed)
/llvm-project/libcxx/test/libcxx/transitive_includes/
H A Dcxx11.csv1623 random algorithm
1624 random array
1625 random atomic
1626 random bit
1627 random cctype
1628 random cerrno
1629 random climits
1630 random clocale
1631 random cmath
1632 random compar
[all...]
H A Dcxx03.csv1623 random algorithm
1624 random array
1625 random atomic
1626 random bit
1627 random cctype
1628 random cerrno
1629 random climits
1630 random clocale
1631 random cmath
1632 random compar
[all...]
H A Dcxx14.csv1657 random algorithm
1658 random array
1659 random atomic
1660 random bit
1661 random cctype
1662 random cerrno
1663 random climits
1664 random clocale
1665 random cmath
1666 random compar
[all...]
H A Dcxx17.csv1676 random algorithm
1677 random array
1678 random atomic
1679 random bit
1680 random cctype
1681 random cerrno
1682 random climits
1683 random clocale
1684 random cmath
1685 random compar
[all...]
H A Dcxx20.csv1670 random algorithm
1671 random array
1672 random atomic
1673 random bit
1674 random cctype
1675 random cerrno
1676 random climits
1677 random clocale
1678 random cmath
1679 random compar
[all...]
H A Dcxx23.csv775 random cctype
776 random climits
777 random cmath
778 random compare
779 random cstdint
780 random cstdio
781 random cstring
782 random ctime
783 random cwchar
784 random cwctyp
[all...]
H A Dcxx26.csv773 random cctype
774 random climits
775 random cmath
776 random compare
777 random cstdint
778 random cstdio
779 random cstring
780 random ctime
781 random cwchar
782 random cwctyp
[all...]
/llvm-project/libcxx/src/
H A Drandom.cpp18 #include <random>
25 # include <sys/random.h>
29 # if __has_include(<sys/ioctl.h>) && __has_include(<linux/random.h>)
30 # include <linux/random.h>
45 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str()); in random_device()
99 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());
102 __throw_system_error(error, ("random device failed to open " + __token).c_str());
123 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());
140 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());
158 # error "Random devic
[all...]
/llvm-project/llvm/include/llvm/Support/
H A DRandomNumberGenerator.h9 // This file defines an abstraction for deterministic random number
11 // cryptographically secure as it uses the C++11 <random> facilities.
20 #include <random>
26 /// A random number generator.
35 // http://en.cppreference.com/w/cpp/numeric/random/mersenne_twister_engine
43 /// Returns a random number in the range [0, Max).
65 // Get random vector of specified size
/llvm-project/llvm/tools/llvm-exegesis/lib/
H A DSnippetGenerator.h84 // A global Random Number Generator to randomize configurations.
85 // FIXME: Move random number generation into an object and make it seedable for
89 // Picks a random unsigned integer from 0 to Max (inclusive).
92 // Picks a random bit among the bits set in Vector and returns its index.
99 // Picks a random configuration, then selects a random def and a random use from
104 // Assigns a Random Value to all Variables in IT that are still Invalid.
/llvm-project/llvm/examples/Kaleidoscope/MCJIT/cached/
H A Dgenk-timing.py6 import random
51 """Used to generate random Kaleidoscope code"""
138 shouldCallFunc = self.lastFuncNum > 2 and random.random() < self.callWeighting
140 funcToCall = random.randrange(1, self.lastFuncNum - 1)
145 operation = random.choice(possibleOperations)
156 % (LValue, LHS, operation, random.uniform(1, 100))
178 # Write some random operations
191 arg1 = random.uniform(1, 100)
192 arg2 = random.uniform(1, 100)
209 """Generate a random Kaleidoscope script based on the given parameters"""
[all …]
/llvm-project/llvm/examples/Kaleidoscope/MCJIT/lazy/
H A Dgenk-timing.py6 import random
51 """Used to generate random Kaleidoscope code"""
138 shouldCallFunc = self.lastFuncNum > 2 and random.random() < self.callWeighting
140 funcToCall = random.randrange(1, self.lastFuncNum - 1)
145 operation = random.choice(possibleOperations)
156 % (LValue, LHS, operation, random.uniform(1, 100))
178 # Write some random operations
191 arg1 = random.uniform(1, 100)
192 arg2 = random.uniform(1, 100)
209 """Generate a random Kaleidoscope script based on the given parameters"""
[all …]
/llvm-project/polly/lib/External/isl/imath/tests/gmp-compat-test/
H A DREADME3 This directory contains a random test generator for the gmp
28 $ make TESTS=random.tests
32 random.tests file. The tests can be run by hand using the following
35 $ ./runtest random.tests
53 methodolgy. We want to test both random data and important values such
64 random long values
66 random unsigned long values
98 gendata.py ~~generates~~> random.tests
/llvm-project/llvm/test/Transforms/Attributor/reduced/
H A Dmissed_cached_entry_for_intra_reachability.ll10 @random = external global i1, align 4
13 ; CHECK: @random = external global i1, align 4
25 ; CHECK-NEXT: [[C1:%.*]] = load volatile i1, ptr @random, align 4
35 ; CHECK-NEXT: [[C2:%.*]] = load volatile i1, ptr @random, align 4
46 ; CHECK-NEXT: [[C3:%.*]] = load volatile i1, ptr @random, align 4
56 ; CHECK-NEXT: [[C4:%.*]] = load volatile i1, ptr @random, align 4
75 %c1 = load volatile i1, ptr @random
89 %c2 = load volatile i1, ptr @random
103 %c3 = load volatile i1, ptr @random
116 %c4 = load volatile i1, ptr @random
[all...]
/llvm-project/llvm/examples/Kaleidoscope/MCJIT/complete/
H A Dgenk-timing.py6 import random
61 """Used to generate random Kaleidoscope code"""
148 shouldCallFunc = self.lastFuncNum > 2 and random.random() < self.callWeighting
150 funcToCall = random.randrange(1, self.lastFuncNum - 1)
155 operation = random.choice(possibleOperations)
166 % (LValue, LHS, operation, random.uniform(1, 100))
188 # Write some random operations
201 arg1 = random.uniform(1, 100)
202 arg2 = random.uniform(1, 100)
219 """Generate a random Kaleidoscope script based on the given parameters"""
[all …]
/llvm-project/libc/test/src/__support/HashTable/
H A Dgroup_test.cpp37 uintptr_t random = cpp::bit_cast<uintptr_t>(data); in TEST()
40 size_t choice = random % 4; in TEST()
41 random /= 4; in TEST()
70 uintptr_t random = cpp::bit_cast<uintptr_t>(data); in TEST()
79 size_t choice = random % sample_space; in TEST()
80 random /= sizeof(values); in TEST()
31 uintptr_t random; TEST() member
65 uintptr_t random; TEST() member
/llvm-project/libcxx/test/std/numerics/rand/rand.device/
H A Dctor.pass.cpp13 // UNSUPPORTED: no-random-device
15 // <random>
28 #include <random>
67 check_random_device_valid("/dev/random"); in main()
73 check_random_device_valid("/dev/random"); in main()
79 check_random_device_invalid("/dev/random"); in main()
/llvm-project/llvm/include/llvm/FuzzMutate/
H A DRandom.h1 //===--- Random.h - Utilities for random sampling -------------------------===//
9 // Utilities for random sampling.
17 #include <random>
20 /// Return a uniformly distributed random value between \c Min and \c Max
25 /// Return a uniformly distributed random value of type \c T

12345678910>>...52