1//===-- ObjectFileInterface.h - MU interface utils for objects --*- 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// Utilities for building MaterializationUnit::Interface objects from
12//===----------------------------------------------------------------------===//
14#ifndef LLVM_EXECUTIONENGINE_ORC_OBJECTFILEINTERFACE_H
15#define LLVM_EXECUTIONENGINE_ORC_OBJECTFILEINTERFACE_H
24/// Adds an initializer symbol to the given MU interface.
25/// The init symbol's name is guaranteed to be unique within I, and will be of
26/// the form $.<ObjFileName>.__inits.<N>, where N is some integer.
30/// Returns a MaterializationUnit::Interface for the object file contained in
31/// the given buffer, or an error if the buffer does not contain a valid object
33LLVM_ABI Expected<MaterializationUnit::Interface>
37}
// End namespace llvm
39#endif // LLVM_EXECUTIONENGINE_ORC_OBJECTFILEINTERFACE_H
An ExecutionSession represents a running JIT program.
LLVM_ABI void addInitSymbol(MaterializationUnit::Interface &I, ExecutionSession &ES, StringRef ObjFileName)
Adds an initializer symbol to the given MU interface.
LLVM_ABI Expected< MaterializationUnit::Interface > getObjectFileInterface(ExecutionSession &ES, MemoryBufferRef ObjBuffer)
Returns a MaterializationUnit::Interface for the object file contained in the given buffer,...
This is an optimization pass for GlobalISel generic memory operations.