[llvm-branch-commits] [llvm] [BOLT] Add binary introspection/JIT manager (PR #81346)

Amir Ayupov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Feb 9 20:40:29 PST 2024


================
@@ -0,0 +1,105 @@
+//===- bolt/Rewrite/JITRewriteInstance.h - in-memory rewriter ---*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Interface to control BOLT as JIT library
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef BOLT_JIT_REWRITE_REWRITE_INSTANCE_H
+#define BOLT_JIT_REWRITE_REWRITE_INSTANCE_H
+
+#include "bolt/Utils/NameResolver.h"
+#include "llvm/Support/Error.h"
+#include "llvm/Support/StringSaver.h"
+#include <memory>
+
+namespace llvm {
+
+namespace object {
+class ObjectFile;
+}
+
+namespace bolt {
+
+class BinaryContext;
+class ProfileReaderBase;
+struct JournalingStreams;
+
+/// Allows a process to instrospect itself by running BOLT to disassemble its
+/// its own address space.
----------------
aaupov wrote:

> introspect

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


More information about the llvm-branch-commits mailing list