LLVM  14.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

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. More...
virtual void handleDisconnect (Error Err)=0
 Handle a disconnection from the underlying transport. More...

Detailed Description

Definition at line 53 of file SimpleRemoteEPCUtils.h.

Member Enumeration Documentation

◆ HandleMessageAction


Definition at line 55 of file SimpleRemoteEPCUtils.h.

Constructor & Destructor Documentation

◆ ~SimpleRemoteEPCTransportClient()

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

Definition at line 46 of file SimpleRemoteEPCUtils.cpp.

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::SimpleRemoteEPCServer, and llvm::orc::SimpleRemoteEPC.

◆ 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::SimpleRemoteEPCServer, and llvm::orc::SimpleRemoteEPC.

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