|
LLVM
10.0.0
|
An Addressable with content and edges. More...
#include "llvm/ExecutionEngine/JITLink/JITLink.h"
Public Types | |
| using | EdgeVector = std::vector< Edge > |
| using | edge_iterator = EdgeVector::iterator |
| using | const_edge_iterator = EdgeVector::const_iterator |
Public Member Functions | |
| Block (const Block &)=delete | |
| Block & | operator= (const Block &)=delete |
| Block (Block &&)=delete | |
| Block & | operator= (Block &&)=delete |
| Section & | getSection () const |
| Return the parent section for this block. More... | |
| bool | isZeroFill () const |
| Returns true if this is a zero-fill block. More... | |
| size_t | getSize () const |
| Returns the size of this defined addressable. More... | |
| StringRef | getContent () const |
| Get the content for this block. Block must not be a zero-fill block. More... | |
| void | setContent (StringRef Content) |
| Set the content for this block. More... | |
| uint64_t | getAlignment () const |
| Get the alignment for this content. More... | |
| void | setAlignment (uint64_t Alignment) |
| Set the alignment for this content. More... | |
| uint64_t | getAlignmentOffset () const |
| Get the alignment offset for this content. More... | |
| void | setAlignmentOffset (uint64_t AlignmentOffset) |
| Set the alignment offset for this content. More... | |
| void | addEdge (Edge::Kind K, Edge::OffsetT Offset, Symbol &Target, Edge::AddendT Addend) |
| Add an edge to this block. More... | |
| void | addEdge (const Edge &E) |
| Add an edge by copying an existing one. More... | |
| iterator_range< edge_iterator > | edges () |
| Return the list of edges attached to this content. More... | |
| iterator_range< const_edge_iterator > | edges () const |
| Returns the list of edges attached to this content. More... | |
| size_t | edges_size () const |
| Return the size of the edges list. More... | |
| bool | edges_empty () const |
| Returns true if the list of edges is empty. More... | |
| void | removeEdge (const_edge_iterator I) |
| Remove the edge pointed to by the given iterator. More... | |
Public Member Functions inherited from llvm::jitlink::Addressable | |
| Addressable (const Addressable &)=delete | |
| Addressable & | operator= (const Addressable &)=default |
| Addressable (Addressable &&)=delete | |
| Addressable & | operator= (Addressable &&)=default |
| JITTargetAddress | getAddress () const |
| void | setAddress (JITTargetAddress Address) |
| bool | isDefined () const |
| Returns true if this is a defined addressable, in which case you can downcast this to a . More... | |
| bool | isAbsolute () const |
Friends | |
| class | LinkGraph |
Additional Inherited Members | |
Protected Member Functions inherited from llvm::jitlink::Addressable | |
| Addressable (JITTargetAddress Address, bool IsDefined) | |
| Addressable (JITTargetAddress Address) | |
An Addressable with content and edges.
| using llvm::jitlink::Block::const_edge_iterator = EdgeVector::const_iterator |
| using llvm::jitlink::Block::edge_iterator = EdgeVector::iterator |
| using llvm::jitlink::Block::EdgeVector = std::vector<Edge> |
|
delete |
|
inline |
|
inline |
Return the list of edges attached to this content.
Definition at line 234 of file JITLink.h.
References llvm::make_range().
Referenced by llvm::jitlink::LinkGraph::splitBlock().
|
inline |
Returns the list of edges attached to this content.
Definition at line 239 of file JITLink.h.
References llvm::make_range().
|
inline |
|
inline |
|
inline |
Get the alignment for this content.
Definition at line 205 of file JITLink.h.
Referenced by llvm::jitlink::JITLinkerBase::alignToBlock(), llvm::jitlink::operator<<(), and llvm::jitlink::LinkGraph::splitBlock().
|
inline |
Get the alignment offset for this content.
Definition at line 214 of file JITLink.h.
Referenced by llvm::jitlink::JITLinkerBase::alignToBlock(), llvm::jitlink::operator<<(), and llvm::jitlink::LinkGraph::splitBlock().
|
inline |
Get the content for this block. Block must not be a zero-fill block.
Definition at line 191 of file JITLink.h.
References assert(), and llvm::Data.
Referenced by llvm::jitlink::LinkGraph::splitBlock().
|
inline |
Return the parent section for this block.
Definition at line 179 of file JITLink.h.
Referenced by llvm::jitlink::LinkGraph::addAnonymousSymbol(), llvm::jitlink::LinkGraph::addDefinedSymbol(), llvm::jitlink::LinkGraph::makeExternal(), llvm::jitlink::operator<<(), llvm::jitlink::LinkGraph::removeBlock(), llvm::jitlink::LinkGraph::removeDefinedSymbol(), and llvm::jitlink::LinkGraph::splitBlock().
|
inline |
Returns the size of this defined addressable.
Definition at line 188 of file JITLink.h.
References Size.
Referenced by llvm::jitlink::BlockAddressMap::addBlock(), llvm::jitlink::BlockAddressMap::getBlockCovering(), llvm::jitlink::operator<<(), and llvm::jitlink::LinkGraph::splitBlock().
|
inline |
Returns true if this is a zero-fill block.
If true, getSize is callable but getContent is not (the content is defined to be a sequence of zero bytes of length Size).
Definition at line 185 of file JITLink.h.
References llvm::Data.
Referenced by llvm::jitlink::operator<<(), and llvm::jitlink::LinkGraph::splitBlock().
|
inline |
Remove the edge pointed to by the given iterator.
Invalidates all iterators that point to or past the given one.
Definition at line 251 of file JITLink.h.
References llvm::Data.
Referenced by llvm::jitlink::LinkGraph::splitBlock().
|
inline |
Set the alignment for this content.
Definition at line 208 of file JITLink.h.
References assert(), llvm::countTrailingZeros(), and llvm::isPowerOf2_64().
|
inline |
Set the alignment offset for this content.
Definition at line 217 of file JITLink.h.
References assert().
Referenced by llvm::jitlink::LinkGraph::splitBlock().
|
inline |
Set the content for this block.
Caller is responsible for ensuring the underlying bytes are not deallocated while pointed to by this block.
Definition at line 199 of file JITLink.h.
References llvm::Data, llvm::StringRef::data(), and llvm::StringRef::size().
Referenced by llvm::jitlink::LinkGraph::splitBlock().
1.8.13