[llvm] [EXEGESIS][NFC] Remove unused 'ExecJIT' (PR #98119)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 23:53:05 PDT 2024
https://github.com/lifengxiang1025 created https://github.com/llvm/llvm-project/pull/98119
Remove unused 'ExecJIT'.
>From 9bb6dce56fe61facf5ec4a6fa404dc1325bd2d27 Mon Sep 17 00:00:00 2001
From: lifengxiang <lifengxiang at kuaishou.com>
Date: Tue, 9 Jul 2024 06:46:04 +0000
Subject: [PATCH] [EXEGESIS][NFC] Remove unused 'ExecJIT'
---
llvm/tools/llvm-exegesis/lib/Assembler.cpp | 5 ++---
llvm/tools/llvm-exegesis/lib/Assembler.h | 4 +---
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/llvm/tools/llvm-exegesis/lib/Assembler.cpp b/llvm/tools/llvm-exegesis/lib/Assembler.cpp
index 92ab3a96d91e6..c6f8397b339fd 100644
--- a/llvm/tools/llvm-exegesis/lib/Assembler.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Assembler.cpp
@@ -401,13 +401,12 @@ Expected<ExecutableFunction> ExecutableFunction::create(
StringRef FBytes =
StringRef(reinterpret_cast<const char *>(FunctionAddress), CodeSize);
- return ExecutableFunction(std::move(Ctx), std::move(EJIT), FBytes);
+ return ExecutableFunction(std::move(Ctx), FBytes);
}
ExecutableFunction::ExecutableFunction(std::unique_ptr<LLVMContext> Ctx,
- std::unique_ptr<orc::LLJIT> EJIT,
StringRef FB)
- : FunctionBytes(FB), Context(std::move(Ctx)), ExecJIT(std::move(EJIT)) {}
+ : FunctionBytes(FB), Context(std::move(Ctx)) {}
Error getBenchmarkFunctionBytes(const StringRef InputData,
std::vector<uint8_t> &Bytes) {
diff --git a/llvm/tools/llvm-exegesis/lib/Assembler.h b/llvm/tools/llvm-exegesis/lib/Assembler.h
index d85d7fdcf04f5..e01f55392f98e 100644
--- a/llvm/tools/llvm-exegesis/lib/Assembler.h
+++ b/llvm/tools/llvm-exegesis/lib/Assembler.h
@@ -121,11 +121,9 @@ class ExecutableFunction {
StringRef FunctionBytes;
private:
- ExecutableFunction(std::unique_ptr<LLVMContext> Ctx,
- std::unique_ptr<orc::LLJIT> EJIT, StringRef FunctionBytes);
+ ExecutableFunction(std::unique_ptr<LLVMContext> Ctx, StringRef FunctionBytes);
std::unique_ptr<LLVMContext> Context;
- std::unique_ptr<orc::LLJIT> ExecJIT;
};
// Copies benchmark function's bytes from benchmark object.
More information about the llvm-commits
mailing list