LLVM  7.0.0
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 SymbolFlagsMap();
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:186
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
std::map< SymbolStringPtr, JITSymbolFlags > SymbolFlagsMap
A map from symbol names (as SymbolStringPtrs) to JITSymbolFlags.
Definition: Core.h:57
SymbolNameSet lookup(std::shared_ptr< AsynchronousSymbolQuery > Query, SymbolNameSet Symbols) override
For each symbol in Symbols that can be found, assigns that symbols value in Query.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
JITSymbol findSymbol(const std::string &Name) final
This method returns the address of the specified function or variable.
SymbolFlagsMap lookupFlags(const SymbolNameSet &Symbols) override
Returns the flags for each symbol in Symbols that can be found, along with the set of symbol that cou...
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())
std::set< SymbolStringPtr > SymbolNameSet
A set of symbol names (represented by SymbolStringPtrs for.
Definition: Core.h:44