LLVM  10.0.0svn
NullResolver.cpp
Go to the documentation of this file.
1 //===---------- NullResolver.cpp - Reject symbol lookup requests ----------===//
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 
10 
12 
13 namespace llvm {
14 namespace orc {
15 
17  return Symbols;
18 }
19 
21 NullResolver::lookup(std::shared_ptr<AsynchronousSymbolQuery> Query,
22  SymbolNameSet Symbols) {
23  assert(Symbols.empty() && "Null resolver: Symbols must be empty");
24  return Symbols;
25 }
26 
28  llvm_unreachable("Unexpected cross-object symbol reference");
29 }
30 
33  llvm_unreachable("Unexpected cross-object symbol reference");
34 }
35 
36 } // End namespace orc.
37 } // End namespace llvm.
Represents a symbol in the JIT.
Definition: JITSymbol.h:219
This class represents lattice values for constants.
Definition: AllocatorList.h:23
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
SymbolNameSet getResponsibilitySet(const SymbolNameSet &Symbols) final
Returns the subset of the given symbols that the caller is responsible for materializing.
JITSymbol findSymbol(const std::string &Name) final
This method returns the address of the specified function or variable.
JITSymbol findSymbolInLogicalDylib(const std::string &Name) final
This method returns the address of the specified symbol if it exists within the logical dynamic libra...
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
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.