[clang] [llvm] [libcxx] [mlir] [mlir][sparse][CRunnerUtils] Add shuffle in CRunnerUtils (PR #77124)

Aart Bik via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 5 11:03:32 PST 2024


================
@@ -486,6 +486,10 @@ extern "C" MLIR_CRUNNERUTILS_EXPORT void *rtsrand(uint64_t s);
 extern "C" MLIR_CRUNNERUTILS_EXPORT uint64_t rtrand(void *, uint64_t m);
 // Deletes the random number generator.
 extern "C" MLIR_CRUNNERUTILS_EXPORT void rtdrand(void *);
+// Returns a pointer to an array of random numbers in the range of [0, s).
----------------
aartbik wrote:

please document that it needs the generator as parameter (looking at L486, using "g" as name and documenting it would have been helpful, but that is of course not your change)

https://github.com/llvm/llvm-project/pull/77124


More information about the cfe-commits mailing list