• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===------- OrcRemoteTargetRPCAPI.cpp - ORC Remote API utilities ---------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include "llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h"
11 
12 namespace llvm {
13 namespace orc {
14 namespace remote {
15 
16 #define FUNCNAME(X) \
17   case X ## Id: \
18   return #X
19 
getJITFuncIdName(JITFuncId Id)20 const char *OrcRemoteTargetRPCAPI::getJITFuncIdName(JITFuncId Id) {
21   switch (Id) {
22   case InvalidId:
23     return "*** Invalid JITFuncId ***";
24   FUNCNAME(CallIntVoid);
25   FUNCNAME(CallMain);
26   FUNCNAME(CallVoidVoid);
27   FUNCNAME(CreateRemoteAllocator);
28   FUNCNAME(CreateIndirectStubsOwner);
29   FUNCNAME(DeregisterEHFrames);
30   FUNCNAME(DestroyRemoteAllocator);
31   FUNCNAME(DestroyIndirectStubsOwner);
32   FUNCNAME(EmitIndirectStubs);
33   FUNCNAME(EmitResolverBlock);
34   FUNCNAME(EmitTrampolineBlock);
35   FUNCNAME(GetSymbolAddress);
36   FUNCNAME(GetRemoteInfo);
37   FUNCNAME(ReadMem);
38   FUNCNAME(RegisterEHFrames);
39   FUNCNAME(ReserveMem);
40   FUNCNAME(RequestCompile);
41   FUNCNAME(SetProtections);
42   FUNCNAME(TerminateSession);
43   FUNCNAME(WriteMem);
44   FUNCNAME(WritePtr);
45   };
46   return nullptr;
47 }
48 
49 #undef FUNCNAME
50 
51 } // end namespace remote
52 } // end namespace orc
53 } // end namespace llvm
54