diff options
| author | Michael Kruse <llvm-project@meinersbur.de> | 2025-01-03 10:22:51 +0100 |
|---|---|---|
| committer | Michael Kruse <llvm-project@meinersbur.de> | 2025-01-03 10:22:51 +0100 |
| commit | 38500d63e14ce340236840f60d356cdefb56a52c (patch) | |
| tree | 17edbec446ce9b50d2f215a483b83afb293a635d /libc/benchmarks/automemcpy/lib/CodeGenMain.cpp | |
| parent | 1a3d5daaef7a6a63448a497da3eff7fc9e23df26 (diff) | |
| parent | 27f30029741ecf023baece7b3dde1ff9011ffefc (diff) | |
Merge branch 'main' into users/meinersbur/flang_runtime_split-headersusers/meinersbur/flang_runtime_split-headers
Diffstat (limited to 'libc/benchmarks/automemcpy/lib/CodeGenMain.cpp')
| -rw-r--r-- | libc/benchmarks/automemcpy/lib/CodeGenMain.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libc/benchmarks/automemcpy/lib/CodeGenMain.cpp b/libc/benchmarks/automemcpy/lib/CodeGenMain.cpp deleted file mode 100644 index 3f4e6fc0423a..000000000000 --- a/libc/benchmarks/automemcpy/lib/CodeGenMain.cpp +++ /dev/null @@ -1,29 +0,0 @@ -#include "automemcpy/CodeGen.h" -#include "automemcpy/RandomFunctionGenerator.h" -#include <optional> -#include <unordered_set> - -namespace llvm { -namespace automemcpy { - -std::vector<FunctionDescriptor> generateFunctionDescriptors() { - std::unordered_set<FunctionDescriptor, FunctionDescriptor::Hasher> Seen; - std::vector<FunctionDescriptor> FunctionDescriptors; - RandomFunctionGenerator P; - while (std::optional<FunctionDescriptor> MaybeFD = P.next()) { - FunctionDescriptor FD = *MaybeFD; - if (Seen.count(FD)) // FIXME: Z3 sometimes returns twice the same object. - continue; - Seen.insert(FD); - FunctionDescriptors.push_back(std::move(FD)); - } - return FunctionDescriptors; -} - -} // namespace automemcpy -} // namespace llvm - -int main(int, char **) { - llvm::automemcpy::Serialize(llvm::outs(), - llvm::automemcpy::generateFunctionDescriptors()); -} |
