LLVM 20.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 67 of file JITLink.h.

Member Typedef Documentation

◆ AddendT

Definition at line 79 of file JITLink.h.

◆ Kind

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

Definition at line 69 of file JITLink.h.

◆ OffsetT

Definition at line 78 of file JITLink.h.

Member Enumeration Documentation

◆ GenericEdgeKind

Enumerator
Invalid 
FirstKeepAlive 
KeepAlive 
FirstRelocation 

Definition at line 71 of file JITLink.h.

Constructor & Destructor Documentation

◆ Edge()

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

Definition at line 81 of file JITLink.h.

Member Function Documentation

◆ getAddend()

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

◆ getKind()

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

◆ getOffset()

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

◆ getRelocation()

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

Definition at line 89 of file JITLink.h.

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

◆ getTarget()

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

◆ isKeepAlive()

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

Definition at line 93 of file JITLink.h.

References FirstKeepAlive.

◆ isRelocation()

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

Definition at line 88 of file JITLink.h.

References FirstRelocation.

Referenced by getRelocation().

◆ setAddend()

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

Definition at line 97 of file JITLink.h.

◆ setKind()

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

Definition at line 87 of file JITLink.h.

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

◆ setOffset()

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

Definition at line 85 of file JITLink.h.

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

◆ setTarget()

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

Definition at line 95 of file JITLink.h.


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