|
LLVM
10.0.0
|
Public Member Functions | |
| ObjectLinkingLayerJITLinkContext (ObjectLinkingLayer &Layer, MaterializationResponsibility MR, std::unique_ptr< MemoryBuffer > ObjBuffer) | |
| ~ObjectLinkingLayerJITLinkContext () | |
| JITLinkMemoryManager & | getMemoryManager () override |
| Return the MemoryManager to be used for this link. More... | |
| MemoryBufferRef | getObjectBuffer () const override |
| Returns a StringRef for the object buffer. More... | |
| void | notifyFailed (Error Err) override |
| Notify this context that linking failed. More... | |
| void | lookup (const LookupMap &Symbols, std::unique_ptr< JITLinkAsyncLookupContinuation > LC) override |
| Called by JITLink to resolve external symbols. More... | |
| void | notifyResolved (LinkGraph &G) override |
| Called by JITLink once all defined symbols in the graph have been assigned their final memory locations in the target process. More... | |
| void | notifyFinalized (std::unique_ptr< JITLinkMemoryManager::Allocation > A) override |
| Called by JITLink to notify the context that the object has been finalized (i.e. More... | |
| LinkGraphPassFunction | getMarkLivePass (const Triple &TT) const override |
| Returns the mark-live pass to be used for this link. More... | |
| Error | modifyPassConfig (const Triple &TT, PassConfiguration &Config) override |
| Called by JITLink to modify the pass pipeline prior to linking. More... | |
Public Member Functions inherited from llvm::jitlink::JITLinkContext | |
| virtual | ~JITLinkContext () |
| Destroy a JITLinkContext. More... | |
| virtual bool | shouldAddDefaultTargetPasses (const Triple &TT) const |
| Called by JITLink prior to linking to determine whether default passes for the target should be added. More... | |
Additional Inherited Members | |
Public Types inherited from llvm::jitlink::JITLinkContext | |
| using | LookupMap = DenseMap< StringRef, SymbolLookupFlags > |
Definition at line 25 of file ObjectLinkingLayer.cpp.
|
inline |
Definition at line 27 of file ObjectLinkingLayer.cpp.
|
inline |
Definition at line 32 of file ObjectLinkingLayer.cpp.
|
inlineoverridevirtual |
Returns the mark-live pass to be used for this link.
If no pass is returned (the default) then the target-specific linker implementation will choose a conservative default (usually marking all symbols live). This function is only called if shouldAddDefaultTargetPasses returns true, otherwise the JITContext is responsible for adding a mark-live pass in modifyPassConfig.
Reimplemented from llvm::jitlink::JITLinkContext.
Definition at line 162 of file ObjectLinkingLayer.cpp.
References G.
|
inlineoverridevirtual |
Return the MemoryManager to be used for this link.
Implements llvm::jitlink::JITLinkContext.
Definition at line 39 of file ObjectLinkingLayer.cpp.
|
inlineoverridevirtual |
Returns a StringRef for the object buffer.
This method can not be called once takeObjectBuffer has been called.
Implements llvm::jitlink::JITLinkContext.
Definition at line 41 of file ObjectLinkingLayer.cpp.
|
inlineoverridevirtual |
Called by JITLink to resolve external symbols.
This method is passed a lookup continutation which it must call with a result to continue the linking process.
Implements llvm::jitlink::JITLinkContext.
Definition at line 50 of file ObjectLinkingLayer.cpp.
References llvm::orc::SymbolLookupSet::add(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::lookup(), llvm::RISCVFenceField::O, llvm::orc::RequiredSymbol, llvm::jitlink::RequiredSymbol, llvm::Reloc::Static, llvm::orc::WeaklyReferencedSymbol, and llvm::jitlink::WeaklyReferencedSymbol.
|
inlineoverridevirtual |
Called by JITLink to modify the pass pipeline prior to linking.
The default version performs no modification.
Reimplemented from llvm::jitlink::JITLinkContext.
Definition at line 166 of file ObjectLinkingLayer.cpp.
References llvm::jitlink::LinkGraph::absolute_symbols(), assert(), llvm::jitlink::LinkGraph::defined_symbols(), E, llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::empty(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::erase(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), G, I, llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::insert(), llvm::jitlink::Local, llvm::jitlink::LinkGraph::makeExternal(), Name, llvm::jitlink::PassConfiguration::PostPrunePasses, llvm::jitlink::PassConfiguration::PrePrunePasses, llvm::Error::success(), and llvm::jitlink::Weak.
|
inlineoverridevirtual |
Notify this context that linking failed.
Called by JITLink if linking cannot be completed.
Implements llvm::jitlink::JITLinkContext.
Definition at line 45 of file ObjectLinkingLayer.cpp.
|
inlineoverridevirtual |
Called by JITLink to notify the context that the object has been finalized (i.e.
emitted to memory and memory permissions set). If all of this objects dependencies have also been finalized then the code is ready to run.
Implements llvm::jitlink::JITLinkContext.
Definition at line 149 of file ObjectLinkingLayer.cpp.
|
inlineoverridevirtual |
Called by JITLink once all defined symbols in the graph have been assigned their final memory locations in the target process.
At this point the LinkGraph can be inspected to build a symbol table, however the block content will not generally have been copied to the target location yet.
Implements llvm::jitlink::JITLinkContext.
Definition at line 94 of file ObjectLinkingLayer.cpp.
References llvm::JITSymbolFlags::Absolute, llvm::jitlink::LinkGraph::absolute_symbols(), assert(), llvm::JITSymbolFlags::Callable, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::count(), llvm::jitlink::Default, llvm::jitlink::LinkGraph::defined_symbols(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::empty(), llvm::JITSymbolFlags::Exported, llvm::jitlink::Local, llvm::JITSymbolFlags::Weak, and llvm::jitlink::Weak.
1.8.13