Files
llvm/orc-rt/lib/executor/ResourceManager.cpp
Lang Hames deef49e472 [orc-rt] Add ResourceManager interface.
The ResourceManager interface can be used to implement ownership for resources
allocated to JIT'd code, e.g. memory and metadata registrations (frame info,
language runtime metadata, etc.).

Resources can be *deallocated*, meaning that they should be cleaned up (memory
released, registrations deregistered, etc.), or they can be *detached*, meaning
that cleanup should be performed automatically when the ResourceManager itself
is destroyed.

The intent is to allow JIT'd code to continue running after the
llvm::orc::ExecutionSession that produced it is disconnected / destroyed.
2025-10-09 11:58:40 +11:00

20 lines
663 B
C++

//===- ResourceManager.cpp ------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
// Contains the implementation of APIs in the orc-rt/ResourceManager.h header.
//
//===----------------------------------------------------------------------===//
#include "orc-rt/ResourceManager.h"
namespace orc_rt {
ResourceManager::~ResourceManager() = default;
} // namespace orc_rt