LLVM 19.0.0git
Public Types | Public Member Functions | List of all members
llvm::orc::SimpleRemoteEPCTransportClient Class Referenceabstract

#include "llvm/ExecutionEngine/Orc/Shared/SimpleRemoteEPCUtils.h"

Inheritance diagram for llvm::orc::SimpleRemoteEPCTransportClient:
Inheritance graph
[legend]

Public Types

enum  HandleMessageAction { ContinueSession , EndSession }
 

Public Member Functions

virtual ~SimpleRemoteEPCTransportClient ()
 
virtual Expected< HandleMessageActionhandleMessage (SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, ExecutorAddr TagAddr, SimpleRemoteEPCArgBytesVector ArgBytes)=0
 Handle receipt of a message.
 
virtual void handleDisconnect (Error Err)=0
 Handle a disconnection from the underlying transport.
 

Detailed Description

Definition at line 54 of file SimpleRemoteEPCUtils.h.

Member Enumeration Documentation

◆ HandleMessageAction

Enumerator
ContinueSession 
EndSession 

Definition at line 56 of file SimpleRemoteEPCUtils.h.

Constructor & Destructor Documentation

◆ ~SimpleRemoteEPCTransportClient()

llvm::orc::SimpleRemoteEPCTransportClient::~SimpleRemoteEPCTransportClient ( )
virtualdefault

Member Function Documentation

◆ handleDisconnect()

virtual void llvm::orc::SimpleRemoteEPCTransportClient::handleDisconnect ( Error  Err)
pure virtual

Handle a disconnection from the underlying transport.

No further messages should be sent to handleMessage after this is called. Err may contain an Error value indicating unexpected disconnection. This allows clients to log such errors, but no attempt should be made at recovery (which should be handled inside the transport class, if it is supported at all).

Implemented in llvm::orc::SimpleRemoteEPC, and llvm::orc::SimpleRemoteEPCServer.

◆ handleMessage()

virtual Expected< HandleMessageAction > llvm::orc::SimpleRemoteEPCTransportClient::handleMessage ( SimpleRemoteEPCOpcode  OpC,
uint64_t  SeqNo,
ExecutorAddr  TagAddr,
SimpleRemoteEPCArgBytesVector  ArgBytes 
)
pure virtual

Handle receipt of a message.

Returns an Error if the message cannot be handled, 'EndSession' if the client will not accept any further messages, and 'ContinueSession' otherwise.

Implemented in llvm::orc::SimpleRemoteEPC, and llvm::orc::SimpleRemoteEPCServer.


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