1//===-- ObjectCache.h - Class definition for the ObjectCache ----*- C++ -*-===//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//===----------------------------------------------------------------------===//
9#ifndef LLVM_EXECUTIONENGINE_OBJECTCACHE_H
10#define LLVM_EXECUTIONENGINE_OBJECTCACHE_H
21/// This is the base ObjectCache type which can be provided to an
22/// ExecutionEngine for the purpose of avoiding compilation for Modules that
23/// have already been compiled and an object file is available.
25 virtual void anchor();
32 /// notifyObjectCompiled - Provides a pointer to compiled code for Module M.
35 /// Returns a pointer to a newly allocated MemoryBuffer that contains the
36 /// object which corresponds with Module M, or 0 if an object is not
41}
// end namespace llvm
43#endif // LLVM_EXECUTIONENGINE_OBJECTCACHE_H
This interface provides simple read-only access to a block of memory, and provides simple methods for...
A Module instance is used to store all the information related to an LLVM module.
virtual std::unique_ptr< MemoryBuffer > getObject(const Module *M)=0
Returns a pointer to a newly allocated MemoryBuffer that contains the object which corresponds with M...
virtual void notifyObjectCompiled(const Module *M, MemoryBufferRef Obj)=0
notifyObjectCompiled - Provides a pointer to compiled code for Module M.
virtual ~ObjectCache()=default
This is an optimization pass for GlobalISel generic memory operations.