LLVM  14.0.0git
Public Types | Public Member Functions | List of all members
llvm::jitlink::Edge Class Reference

Represents fixups and constraints in the LinkGraph. More...

#include "llvm/ExecutionEngine/JITLink/JITLink.h"

Public Types

enum  GenericEdgeKind : Kind { Invalid, FirstKeepAlive, KeepAlive = FirstKeepAlive, FirstRelocation }
 
using Kind = uint8_t
 
using OffsetT = uint32_t
 
using AddendT = int64_t
 

Public Member Functions

 Edge (Kind K, OffsetT Offset, Symbol &Target, AddendT Addend)
 
OffsetT getOffset () const
 
void setOffset (OffsetT Offset)
 
Kind getKind () const
 
void setKind (Kind K)
 
bool isRelocation () const
 
Kind getRelocation () const
 
bool isKeepAlive () const
 
SymbolgetTarget () const
 
void setTarget (Symbol &Target)
 
AddendT getAddend () const
 
void setAddend (AddendT Addend)
 

Detailed Description

Represents fixups and constraints in the LinkGraph.

Definition at line 59 of file JITLink.h.

Member Typedef Documentation

◆ AddendT

Definition at line 71 of file JITLink.h.

◆ Kind

using llvm::jitlink::Edge::Kind = uint8_t

Definition at line 61 of file JITLink.h.

◆ OffsetT

Definition at line 70 of file JITLink.h.

Member Enumeration Documentation

◆ GenericEdgeKind

Enumerator
Invalid 
FirstKeepAlive 
KeepAlive 
FirstRelocation 

Definition at line 63 of file JITLink.h.

Constructor & Destructor Documentation

◆ Edge()

llvm::jitlink::Edge::Edge ( Kind  K,
OffsetT  Offset,
Symbol Target,
AddendT  Addend 
)
inline

Definition at line 73 of file JITLink.h.

Member Function Documentation

◆ getAddend()

AddendT llvm::jitlink::Edge::getAddend ( ) const
inline

Definition at line 88 of file JITLink.h.

◆ getKind()

Kind llvm::jitlink::Edge::getKind ( ) const
inline

Definition at line 78 of file JITLink.h.

◆ getOffset()

OffsetT llvm::jitlink::Edge::getOffset ( ) const
inline

Definition at line 76 of file JITLink.h.

Referenced by llvm::jitlink::getRISCVPCRelHi20().

◆ getRelocation()

Kind llvm::jitlink::Edge::getRelocation ( ) const
inline

Definition at line 81 of file JITLink.h.

References assert(), FirstRelocation, and isRelocation().

◆ getTarget()

Symbol& llvm::jitlink::Edge::getTarget ( ) const
inline

Definition at line 86 of file JITLink.h.

◆ isKeepAlive()

bool llvm::jitlink::Edge::isKeepAlive ( ) const
inline

Definition at line 85 of file JITLink.h.

References FirstKeepAlive.

◆ isRelocation()

bool llvm::jitlink::Edge::isRelocation ( ) const
inline

Definition at line 80 of file JITLink.h.

References FirstRelocation.

Referenced by getRelocation().

◆ setAddend()

void llvm::jitlink::Edge::setAddend ( AddendT  Addend)
inline

Definition at line 89 of file JITLink.h.

◆ setKind()

void llvm::jitlink::Edge::setKind ( Kind  K)
inline

Definition at line 79 of file JITLink.h.

◆ setOffset()

void llvm::jitlink::Edge::setOffset ( OffsetT  Offset)
inline

Definition at line 77 of file JITLink.h.

◆ setTarget()

void llvm::jitlink::Edge::setTarget ( Symbol Target)
inline

Definition at line 87 of file JITLink.h.


The documentation for this class was generated from the following file: