LLVM
17.0.0git
include
llvm
ExecutionEngine
Orc
ObjectFileInterface.h
Go to the documentation of this file.
1
//===-- ObjectFileInterface.h - MU interface utils for objects --*- C++ -*-===//
2
//
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
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
// Utilities for building MaterializationUnit::Interface objects from
10
// object files.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#ifndef LLVM_EXECUTIONENGINE_ORC_OBJECTFILEINTERFACE_H
15
#define LLVM_EXECUTIONENGINE_ORC_OBJECTFILEINTERFACE_H
16
17
#include "
llvm/ExecutionEngine/Orc/Core.h
"
18
#include "
llvm/Support/MemoryBuffer.h
"
19
20
namespace
llvm
{
21
namespace
orc {
22
23
/// Adds an initializer symbol to the given MU interface.
24
/// The init symbol's name is guaranteed to be unique within I, and will be of
25
/// the form $.<ObjFileName>.__inits.<N>, where N is some integer.
26
void
addInitSymbol
(MaterializationUnit::Interface &
I
, ExecutionSession &ES,
27
StringRef ObjFileName);
28
29
/// Returns a MaterializationUnit::Interface for the object file contained in
30
/// the given buffer, or an error if the buffer does not contain a valid object
31
/// file.
32
Expected<MaterializationUnit::Interface>
33
getObjectFileInterface
(ExecutionSession &ES, MemoryBufferRef ObjBuffer);
34
35
bool
hasInitializerSection
(jitlink::LinkGraph &
G
);
36
37
}
// End namespace orc
38
}
// End namespace llvm
39
40
#endif // LLVM_EXECUTIONENGINE_ORC_OBJECTFILEINTERFACE_H
MemoryBuffer.h
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
G
const DataFlowGraph & G
Definition:
RDFGraph.cpp:200
I
#define I(x, y, z)
Definition:
MD5.cpp:58
llvm::orc::hasInitializerSection
bool hasInitializerSection(jitlink::LinkGraph &G)
Definition:
ObjectFileInterface.cpp:290
llvm::orc::addInitSymbol
void addInitSymbol(MaterializationUnit::Interface &I, ExecutionSession &ES, StringRef ObjFileName)
Adds an initializer symbol to the given MU interface.
Definition:
ObjectFileInterface.cpp:25
Core.h
llvm::orc::getObjectFileInterface
Expected< MaterializationUnit::Interface > getObjectFileInterface(ExecutionSession &ES, MemoryBufferRef ObjBuffer)
Returns a MaterializationUnit::Interface for the object file contained in the given buffer,...
Definition:
ObjectFileInterface.cpp:274
Generated on Fri Jan 27 2023 11:46:52 for LLVM by
1.8.17