LLVM  10.0.0svn
NullResolver.h
Go to the documentation of this file.
1 //===------ NullResolver.h - Reject symbol lookup requests ------*- 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 // Defines a RuntimeDyld::SymbolResolver subclass that rejects all symbol
10 // resolution requests, for clients that have no cross-object fixups.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H
15 #define LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H
16 
19 
20 namespace llvm {
21 namespace orc {
22 
23 class NullResolver : public SymbolResolver {
24 public:
25  SymbolNameSet getResponsibilitySet(const SymbolNameSet &Symbols) final;
26 
27  SymbolNameSet lookup(std::shared_ptr<AsynchronousSymbolQuery> Query,
28  SymbolNameSet Symbols) final;
29 };
30 
31 /// SymbolResolver impliementation that rejects all resolution requests.
32 /// Useful for clients that have no cross-object fixups.
34 public:
35  JITSymbol findSymbol(const std::string &Name) final;
36 
37  JITSymbol findSymbolInLogicalDylib(const std::string &Name) final;
38 };
39 
40 } // End namespace orc.
41 } // End namespace llvm.
42 
43 #endif // LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H
Represents a symbol in the JIT.
Definition: JITSymbol.h:218
This class represents lattice values for constants.
Definition: AllocatorList.h:23
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
Legacy symbol resolution interface.
Definition: JITSymbol.h:351
SymbolNameSet getResponsibilitySet(const SymbolNameSet &Symbols) final
Returns the subset of the given symbols that the caller is responsible for materializing.
SymbolResolver impliementation that rejects all resolution requests.
Definition: NullResolver.h:33
SymbolResolver is a composable interface for looking up symbol flags and addresses using the Asynchro...
Definition: Legacy.h:29
SymbolNameSet lookup(std::shared_ptr< AsynchronousSymbolQuery > Query, SymbolNameSet Symbols) final
For each symbol in Symbols that can be found, assigns that symbols value in Query.