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

Edge class. More...

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

Public Types

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

Public Member Functions

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

Detailed Description

Edge class.

Represents both object file relocations, as well as layout and keep-alive constraints.

Definition at line 58 of file JITLink.h.

Member Typedef Documentation

◆ AddendT

Definition at line 71 of file JITLink.h.

◆ GenericEdgeKind

using llvm::jitlink::Edge::GenericEdgeKind = enum : Kind { Invalid, FirstKeepAlive, KeepAlive = FirstKeepAlive, LayoutNext, FirstRelocation }

Definition at line 68 of file JITLink.h.

◆ Kind

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

Definition at line 60 of file JITLink.h.

◆ OffsetT

Definition at line 70 of file JITLink.h.

Constructor & Destructor Documentation

◆ Edge()

llvm::jitlink::Edge::Edge ( Kind  K,
OffsetT  Offset,
Atom Target,
AddendT  Addend 

Definition at line 73 of file JITLink.h.

Member Function Documentation

◆ getAddend()

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

◆ getKind()

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

◆ getOffset()

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

◆ getRelocation()

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

Definition at line 80 of file JITLink.h.

References assert().

◆ getTarget()

Atom& llvm::jitlink::Edge::getTarget ( ) const

◆ isKeepAlive()

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

Definition at line 84 of file JITLink.h.

◆ isRelocation()

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

Definition at line 79 of file JITLink.h.

◆ setAddend()

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

Definition at line 88 of file JITLink.h.

◆ setKind()

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

Definition at line 78 of file JITLink.h.

◆ setTarget()

void llvm::jitlink::Edge::setTarget ( Atom Target)

Definition at line 86 of file JITLink.h.

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