LLVM  8.0.1
NullResolver.cpp
Go to the documentation of this file.
1 //===---------- NullResolver.cpp - Reject symbol lookup requests ----------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
11 
13 
14 namespace llvm {
15 namespace orc {
16 
18  return Symbols;
19 }
20 
22 NullResolver::lookup(std::shared_ptr<AsynchronousSymbolQuery> Query,
23  SymbolNameSet Symbols) {
24  assert(Symbols.empty() && "Null resolver: Symbols must be empty");
25  return Symbols;
26 }
27 
29  llvm_unreachable("Unexpected cross-object symbol reference");
30 }
31 
34  llvm_unreachable("Unexpected cross-object symbol reference");
35 }
36 
37 } // End namespace orc.
38 } // End namespace llvm.
Represents a symbol in the JIT.
Definition: JITSymbol.h:238
This class represents lattice values for constants.
Definition: AllocatorList.h:24
amdgpu Simplify well known AMD library false Value 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...
static void Query(const MachineInstr &MI, AliasAnalysis &AA, bool &Read, bool &Write, bool &Effects, bool &StackPointer)
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.