summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.cpp
blob: d1a021aee3ab867388e8dfda89d324f0ee528c15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//===------- OrcRemoteTargetRPCAPI.cpp - ORC Remote API utilities ---------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h"

namespace llvm {
namespace orc {
namespace remote {

#define FUNCNAME(X) \
  case X ## Id: \
  return #X

const char *OrcRemoteTargetRPCAPI::getJITFuncIdName(JITFuncId Id) {
  switch (Id) {
  case InvalidId:
    return "*** Invalid JITFuncId ***";
  FUNCNAME(CallIntVoid);
  FUNCNAME(CallMain);
  FUNCNAME(CallVoidVoid);
  FUNCNAME(CreateRemoteAllocator);
  FUNCNAME(CreateIndirectStubsOwner);
  FUNCNAME(DeregisterEHFrames);
  FUNCNAME(DestroyRemoteAllocator);
  FUNCNAME(DestroyIndirectStubsOwner);
  FUNCNAME(EmitIndirectStubs);
  FUNCNAME(EmitResolverBlock);
  FUNCNAME(EmitTrampolineBlock);
  FUNCNAME(GetSymbolAddress);
  FUNCNAME(GetRemoteInfo);
  FUNCNAME(ReadMem);
  FUNCNAME(RegisterEHFrames);
  FUNCNAME(ReserveMem);
  FUNCNAME(RequestCompile);
  FUNCNAME(SetProtections);
  FUNCNAME(TerminateSession);
  FUNCNAME(WriteMem);
  FUNCNAME(WritePtr);
  };
  return nullptr;
}

#undef FUNCNAME

} // end namespace remote
} // end namespace orc
} // end namespace llvm
OpenPOWER on IntegriCloud